/* Design System & Global Variables */
:root {
    --bg-dark: #070a13;
    --sidebar-bg: #0d1222;
    --card-bg: rgba(20, 28, 51, 0.6);
    --card-hover: rgba(28, 38, 69, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(59, 130, 246, 0.4);
    
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.35);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.35);
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.35);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-header: #ffffff;
    --text: var(--text-main);
    --border: var(--border-color);
    
    --sidebar-width: 280px;
    --header-height: 80px;
    --font-stack: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.12) 0%, transparent 40%);
}

/* Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    height: 100vh;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.brand {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    position: relative;
    height: 80px; /* aligns with top-header */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    width: 100%;
}

.logo-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: rotate(5deg) scale(1.05);
}

.brand-info {
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s ease, max-width 0.2s ease;
    opacity: 1;
    overflow: hidden;
    max-width: 200px;
}

.btn-toggle-sidebar {
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: absolute;
    right: -12px;
    top: 28px;
    z-index: 1010;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-toggle-sidebar:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: scale(1.1);
}

.btn-toggle-sidebar svg {
    transition: transform 0.3s ease;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: transparent;
    background: linear-gradient(90deg, var(--primary), var(--success));
    -webkit-background-clip: text;
    line-height: 1;
}

.sub-brand {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
    line-height: 1;
}

.nav-menu {
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-stack);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;
    position: relative;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    transform: translateX(4px);
}

.nav-btn.active {
    background-color: rgba(59, 130, 246, 0.08);
    color: #ffffff;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.12);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.03);
}

/* Active indicator bar on the left edge */
.nav-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--success));
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 8px var(--primary-glow);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.online {
    background-color: var(--success);
    box-shadow: 0 0 10px var(--success-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 40px;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.page-title-section h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-header);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.page-title-section p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Buttons */
.btn {
    font-family: var(--font-stack);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-pancake {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-pancake:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Tab panes handling */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
    display: block;
}

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

/* Alerts */
.alert {
    display: flex;
    gap: 16px;
    padding: 16px 24px;
    border-radius: 14px;
    margin-bottom: 30px;
    align-items: center;
    font-size: 0.95rem;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    box-shadow: 0 4px 20px var(--danger-glow);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 35px;
}

.stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    position: relative;
    backdrop-filter: blur(10px);
}

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

.stat-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.stat-value.text-danger {
    color: #f87171;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

.stat-value.text-success {
    color: #34d399;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.stat-value.text-primary {
    color: #60a5fa;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Dashboard Details Grid */
.dashboard-details-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.details-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px;
    backdrop-filter: blur(10px);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-header);
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

/* Table styling */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-main);
}

.data-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

.font-bold {
    font-weight: 600;
}

/* Recommendation list */
.rec-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
}

.rec-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    align-items: flex-start;
    border: 1px solid transparent;
}

.rec-danger {
    background-color: rgba(239, 68, 68, 0.03);
    border-color: rgba(239, 68, 68, 0.1);
}

.rec-success {
    background-color: rgba(16, 185, 129, 0.03);
    border-color: rgba(16, 185, 129, 0.1);
}

.rec-warning {
    background-color: rgba(245, 158, 11, 0.03);
    border-color: rgba(245, 158, 11, 0.1);
}

.rec-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-main);
}

/* Customer Personas Styles */
.personas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.persona-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.persona-header {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    background-size: cover;
}

.persona-header.vy {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(20, 28, 51, 0.4) 100%);
}

.persona-header.mai {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(20, 28, 51, 0.4) 100%);
}

.persona-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
}

.persona-header.vy .persona-avatar {
    background-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.persona-header.mai .persona-avatar {
    background-color: var(--success);
    box-shadow: 0 0 15px var(--success-glow);
}

.persona-meta h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.persona-meta p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.persona-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.persona-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-header);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.persona-section p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

.persona-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.persona-section li {
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    padding-left: 20px;
    line-height: 1.4;
}

.persona-section li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.persona-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Strategy Map Styles */
.strategy-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(10px);
}

.strategy-header {
    text-align: center;
    margin-bottom: 35px;
}

.strategy-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.strategy-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.strategy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.strat-column {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.column-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.strat-column.mkt .column-title { color: #60a5fa; }
.strat-column.sales .column-title { color: #34d399; }

.strat-node {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    position: relative;
}

.node-badge {
    position: absolute;
    top: -10px;
    left: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.node-badge.green {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.strat-node h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    margin-top: 4px;
}

.strat-node p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============================================
   OPTIMIZATION MAP - EXPANDED SECTIONS
   ============================================ */

/* Section wrapper */
.optmap-section {
    margin-bottom: 40px;
}

.optmap-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.optmap-section-icon {
    font-size: 1.4rem;
}

.optmap-section-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* Two-stream layout */
.optmap-streams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: start;
}

.stream-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-top: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

/* Individual stream */
.optmap-stream {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.optmap-stream.academy {
    border-color: rgba(99, 102, 241, 0.3);
}

.optmap-stream.lashes {
    border-color: rgba(236, 72, 153, 0.3);
}

.stream-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.stream-logo {
    font-size: 2rem;
}

.stream-header h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px;
}

.optmap-stream.academy .stream-header h4 { color: #818cf8; }
.optmap-stream.lashes .stream-header h4 { color: #f472b6; }

.stream-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.stream-block {
    margin-bottom: 16px;
}

.stream-block-title {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 8px;
}

.marketing-block .stream-block-title {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.sales-block .stream-block-title {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stream-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    padding: 8px 0;
    margin: 4px 0 12px;
}

/* Optmap nodes (different from strat-node) */
.optmap-node {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 14px 14px 14px;
    position: relative;
    margin-bottom: 10px;
}

.optmap-node .node-badge {
    position: absolute;
    top: -9px;
    left: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.optmap-node .node-badge.green {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.optmap-node h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 4px 0 6px;
}

.optmap-node p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0 0 4px;
}

.node-metric {
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 6px;
    padding: 3px 8px;
    display: inline-block;
}

.optmap-node.status-updating {
    opacity: 0.6;
    border-style: dashed;
}

/* ============================================
   LEARNINGS TABLE
   ============================================ */

.learnings-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.learnings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.learnings-table thead tr {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border-color);
}

.learnings-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
}

.learnings-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.learnings-table tbody tr:last-child {
    border-bottom: none;
}

.learnings-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.learnings-table td {
    padding: 14px 16px;
    color: var(--text-muted);
    vertical-align: top;
    line-height: 1.5;
}

.learnings-table td strong {
    color: #ffffff;
}

.learnings-table td code {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: #a5b4fc;
}

.learning-date {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #60a5fa !important;
    white-space: nowrap;
    font-weight: 600;
}

.learnings-author {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.learnings-author.ai {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

/* ============================================
   CASE STUDY CARD
   ============================================ */

.casestudy-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 20px;
    overflow: hidden;
    margin: 24px 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.casestudy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -8px rgba(239, 68, 68, 0.15), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    border-color: rgba(239, 68, 68, 0.35);
}

.casestudy-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.01) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.casestudy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 6px;
    flex-shrink: 0;
}

.casestudy-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.casestudy-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

.casestudy-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    padding: 28px;
    align-items: stretch;
    position: relative;
}

.casestudy-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.casestudy-col.before {
    background: rgba(239, 68, 68, 0.015);
    border: 1px solid rgba(239, 68, 68, 0.06);
}

.casestudy-col.after {
    background: rgba(16, 185, 129, 0.015);
    border: 1px solid rgba(16, 185, 129, 0.06);
}

.col-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-icon {
    font-size: 1.1rem;
}

.col-title {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.casestudy-col.before .col-title { color: #f87171; }
.casestudy-col.after .col-title { color: #34d399; }

.casestudy-quote {
    position: relative;
    font-size: 0.92rem;
    line-height: 1.6;
    padding: 16px 20px;
    border-radius: 12px;
    font-style: italic;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.casestudy-quote.bad {
    background: rgba(239, 68, 68, 0.06);
    border-left: 4px solid #ef4444;
    color: #fca5a5;
}

.casestudy-quote.good {
    background: rgba(16, 185, 129, 0.06);
    border-left: 4px solid #10b981;
    color: #a7f3d0;
}

.quote-highlight {
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
}

.quote-highlight.bad {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
}

.quote-highlight.good {
    background: rgba(16, 185, 129, 0.25);
    color: #ffffff;
}

.casestudy-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-row.outcome {
    margin-top: 4px;
}

.detail-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
}

.detail-text {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.55;
}

.emotion-avatar {
    font-size: 1.3rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.emotion-bad .emotion-avatar {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.emotion-good .emotion-avatar {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.outcome-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    align-self: flex-start;
}

.outcome-tag.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.outcome-tag.success {
    background: rgba(16, 185, 129, 0.12);
    color: #a7f3d0;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.casestudy-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    z-index: 10;
    position: relative;
}

.divider-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.casestudy-card:hover .divider-circle {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.1) rotate(180deg);
}

.casestudy-lesson {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(251, 191, 36, 0.01) 100%);
    border-top: 1px solid rgba(251, 191, 36, 0.12);
    border-left: 4px solid #fbbf24;
}

.lesson-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fbbf24;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.lesson-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.lesson-icon {
    font-size: 1rem;
}

.casestudy-lesson p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.lesson-highlight {
    color: #fbbf24;
    font-weight: 700;
    background: rgba(251, 191, 36, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

.lesson-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(251, 191, 36, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.lesson-note strong {
    color: #fbbf24;
}

.note-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.text-danger { color: #f87171; }
.text-success { color: #34d399; }

/* ============================================
   BENCHMARK METRICS GRID
   ============================================ */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #818cf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.3;
}

.metric-note {
    font-size: 0.72rem;
    font-weight: 600;
    color: #34d399;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}

.metric-note.warning {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.15);
}


.playbook-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(10px);
}

.playbook-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.pb-tab-btn {
    background: none;
    border: none;
    font-family: var(--font-stack);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pb-tab-btn:hover {
    color: #ffffff;
}

.pb-tab-btn.active {
    background-color: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.playbook-content {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

.playbook-content.active {
    display: block;
}

.script-card {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

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

.script-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.badge-primary {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-secondary {
    background-color: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-warning {
    background-color: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-info {
    background-color: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.script-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.script-scene {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Chat bubble styling */
.chat-flow {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-bubble {
    max-width: 80%;
    padding: 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-bubble.left {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    align-self: flex-start;
    border-top-left-radius: 4px;
}

.chat-bubble strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--success);
    margin-bottom: 6px;
}

/* Billing Audit Tab Styles */
.billing-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(10px);
}

.billing-header {
    margin-bottom: 30px;
}

.billing-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.billing-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.billing-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

/* Toast message style */
.toast-msg {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #10b981;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    animation: slideUp 0.3s ease forwards;
}

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

/* Authentication Overlay & Styles */
/* ===== LOGIN SCREEN - Light theme first ===== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f4f8;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: #111827;
    margin-bottom: 24px;
}

.login-logo .logo-dot {
    width: 12px;
    height: 12px;
    background-color: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.login-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.login-card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn-google:hover {
    background-color: #f9fafb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9ca3af;
    font-size: 0.8rem;
    margin: 10px 0;
    width: 100%;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.separator:not(:empty)::before {
    margin-right: 15px;
}

.separator:not(:empty)::after {
    margin-left: 15px;
}

.login-msg {
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.login-msg.success {
    color: #059669;
}

.login-msg.error {
    color: #dc2626;
}

.login-msg.info {
    color: #2563eb;
}

/* Dark mode overrides for login screen */
body:not(.light-theme) .login-overlay {
    background-color: rgba(5, 5, 10, 0.95);
}
body:not(.light-theme) .login-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
body:not(.light-theme) .login-logo {
    color: #ffffff;
}
body:not(.light-theme) .login-card h2 {
    color: #ffffff;
}
body:not(.light-theme) .login-card p {
    color: rgba(255,255,255,0.5);
}
body:not(.light-theme) .btn-google {
    border: none;
}
body:not(.light-theme) .separator::before,
body:not(.light-theme) .separator::after {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
body:not(.light-theme) .login-msg.success { color: #10b981; }
body:not(.light-theme) .login-msg.error   { color: #ef4444; }
body:not(.light-theme) .login-msg.info    { color: #3b82f6; }


/* User profile display and specific styling */
.delete-btn-staff {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.delete-btn-staff:hover {
    background: rgba(239, 68, 68, 0.2);
}

.user-profile-section button:hover {
    color: #ffffff !important;
}

/* CRM Leads & Modal styles */
.badge-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-status-new {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-status-contacted {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-status-consulted {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status-registered {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status-lost {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.crm-chat-link {
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    gap: 4px;
    transition: color 0.2s;
    /* Button reset */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.crm-chat-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.crm-notes-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    cursor: default;
    position: relative;
}

/* Tooltip ổn định - luôn hiện sát phía trên text, không theo chuột */
.crm-notes-text[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);   /* hiện ngay phía trên element */
    left: 0;
    background: rgba(20, 22, 38, 0.97);
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.5;
    max-width: 320px;
    min-width: 160px;
    white-space: pre-wrap;
    word-break: break-word;
    z-index: 9999;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    pointer-events: none;
    animation: fadeInTooltip 0.12s ease;
}

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

.btn-crm-action {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 4px;
}

.btn-crm-action:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255,255,255,0.2);
}

.btn-crm-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-crm-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239,68,68,0.3);
}

/* Modal form style overrides */
.modal-overlay {
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

#lead-manual-form select,
#lead-manual-form input,
#lead-manual-form textarea {
    font-family: var(--font-stack);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#lead-manual-form select:focus,
#lead-manual-form input:focus,
#lead-manual-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}


/* Consultation history log styles */
.lead-modal-card {
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.consultation-notes-panel {
    display: flex;
    flex-direction: column;
    width: 440px;
    border-left: 1px solid var(--border-color);
    padding-left: 24px;
    height: 100%;
}

.consultation-notes-header {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--text-main);
}

.consultation-notes-scroll {
    flex: 1;
    max-height: 380px;
    overflow-y: auto;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 8px;
}

/* Custom scrollbar for notes list */
.consultation-notes-scroll::-webkit-scrollbar {
    width: 6px;
}
.consultation-notes-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
    border-radius: 3px;
}
.consultation-notes-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}
.consultation-notes-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

.consultation-note-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.2s;
}
.consultation-note-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.consultation-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.consultation-note-author {
    font-weight: 600;
    color: var(--primary);
}

.consultation-note-time {
    font-family: monospace;
}

.consultation-note-content {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.consultation-note-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 40px 10px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}


/* ═══════════════════════════════════════════════════════════════════
   CRM BRAND SUBTABS
═══════════════════════════════════════════════════════════════════ */
.crm-subtabs {
    display: flex; gap: 8px; margin-bottom: 20px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 6px; width: fit-content;
}
.crm-subtab {
    padding: 8px 20px; border-radius: 8px; border: none;
    background: transparent; color: var(--text-muted); font-size: 0.9rem;
    font-weight: 500; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.crm-subtab:hover { color: var(--text-main); background: rgba(255,255,255,0.06); }
.crm-subtab.active {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff; font-weight: 600; box-shadow: 0 2px 10px rgba(99,102,241,0.4);
}

/* ═══════════════════════════════════════════════════════════════════
   CRM FILTER BAR
═══════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════
   CRM FILTER BAR
   ═══════════════════════════════════════════════════════════════════ */
.crm-filter-bar { 
    background: rgba(255, 255, 255, 0.02) !important; 
    border: 1px solid var(--border-color) !important; 
    border-radius: 12px !important; 
}
.crm-filter-row { 
    display: flex; 
    gap: 12px; 
    flex-wrap: wrap; 
    align-items: center; 
    width: 100%;
}
.crm-filter-input {
    padding: 10px 14px; 
    background: rgba(0, 0, 0, 0.2); 
    border: 1px solid var(--border-color);
    border-radius: 8px; 
    color: var(--text-main); 
    outline: none; 
    font-size: 0.88rem; 
    transition: all 0.2s ease;
}
.crm-filter-input:focus { 
    border-color: var(--primary); 
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 2px var(--primary-glow); 
}
.crm-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 32px 10px 12px; 
    background: rgba(0, 0, 0, 0.2); 
    border: 1px solid var(--border-color);
    border-radius: 8px; 
    color: var(--text-main); 
    outline: none; 
    font-size: 0.88rem; 
    cursor: pointer; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 11px;
    transition: all 0.2s ease;
}
.crm-filter-select:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
}
.crm-filter-select:focus { 
    border-color: var(--primary); 
}

/* Search wrapper & icon */
.crm-search-wrapper {
    position: relative;
    flex: 1.5;
    min-width: 250px;
}
.crm-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    opacity: 0.5;
    transition: color 0.2s;
}
.crm-search-wrapper:focus-within .crm-search-icon {
    color: var(--primary);
    opacity: 0.8;
}
.crm-search-wrapper .crm-filter-input {
    width: 100%;
    padding-left: 36px;
}

/* Inline Date Range Picker */
.crm-date-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 8px;
    gap: 4px;
}
.crm-date-input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 4px !important;
    font-size: 0.85rem;
    color: var(--text-main);
    cursor: pointer;
}
.crm-date-input::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s;
}
.crm-date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 0.9;
}
.crm-date-separator {
    color: var(--text-muted);
    font-size: 0.85rem;
    user-select: none;
}

/* Reset button styling */
.crm-btn-reset {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px; 
    background: rgba(255, 255, 255, 0.04); 
    border: 1px solid var(--border-color);
    border-radius: 8px; 
    color: var(--text-muted); 
    cursor: pointer; 
    font-size: 0.88rem; 
    transition: all 0.2s ease;
    white-space: nowrap;
}
.crm-btn-reset:hover { 
    background: rgba(239, 68, 68, 0.1); 
    border-color: rgba(239, 68, 68, 0.3); 
    color: #f87171; 
}

/* Active filter visual indicators */
.crm-filter-active {
    border-color: rgba(99, 102, 241, 0.75) !important;
    background: rgba(99, 102, 241, 0.08) !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15) !important;
    color: var(--text-main) !important;
}

.crm-search-wrapper.crm-filter-active .crm-filter-input {
    border-color: rgba(99, 102, 241, 0.75) !important;
    background: rgba(99, 102, 241, 0.08) !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15) !important;
}

.crm-search-wrapper.crm-filter-active .crm-search-icon {
    color: var(--primary) !important;
    opacity: 0.9 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   SORTABLE COLUMN HEADERS
═══════════════════════════════════════════════════════════════════ */
#crm-leads-table th.sortable { cursor: pointer; user-select: none; transition: color 0.15s, background 0.15s; white-space: nowrap; }
#crm-leads-table th.sortable:hover { color: var(--primary); background: rgba(99,102,241,0.08); }
#crm-leads-table th.sort-asc, #crm-leads-table th.sort-desc { color: var(--primary); border-bottom: 2px solid var(--primary); }
#crm-leads-table th .sort-icon { font-size: 0.7rem; opacity: 0.6; margin-left: 4px; }
#crm-leads-table th.sort-asc .sort-icon, #crm-leads-table th.sort-desc .sort-icon { opacity: 1; color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════════════ */
.crm-pager { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--border-color); }
.crm-pagination:first-of-type .crm-pager { border-top: none; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; margin-bottom: 8px; }
.crm-pager-info { font-size: 0.85rem; color: var(--text-muted); flex: 1; }
.crm-pager-info strong { color: var(--text-main); }
.crm-pager-btns { display: flex; gap: 4px; }
.crm-page-btn {
    padding: 6px 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
    border-radius: 6px; color: var(--text-main); cursor: pointer; font-size: 0.85rem; transition: all 0.15s; white-space: nowrap;
}
.crm-page-btn:hover:not(:disabled) { background: rgba(99,102,241,0.2); border-color: var(--primary); color: var(--primary); }
.crm-page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.crm-perpage-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 6px 26px 6px 8px;
    background: rgba(0,0,0,0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 8px center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    outline: none;
}

/* ═══════════════════════════════════════════════════════════════════
   STATUS SELECT — dropdown styled as badge (no separate badge)
═══════════════════════════════════════════════════════════════════ */
.crm-status-select {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 20px;
    padding: 5px 28px 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    outline: none;
    /* arrow icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 11px;
    transition: opacity 0.15s, transform 0.1s;
}
.crm-status-select:hover { opacity: 0.85; transform: scale(1.03); }

/* Per-status colors */
.crm-status-select.crm-status-new {
    background-color: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.35);
}
.crm-status-select.crm-status-contacted {
    background-color: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,0.35);
}
.crm-status-select.crm-status-consulted {
    background-color: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
    border: 1px solid rgba(99,102,241,0.35);
}
.crm-status-select.crm-status-registered {
    background-color: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16,185,129,0.35);
}
.crm-status-select.crm-status-lost {
    background-color: rgba(107, 114, 128, 0.18);
    color: #9ca3af;
    border: 1px solid rgba(107,114,128,0.35);
}
.crm-status-select.crm-status-scheduled {
    background-color: rgba(139, 92, 246, 0.18);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.35);
}
.crm-status-select.crm-status-visited {
    background-color: rgba(236, 72, 153, 0.18);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.35);
}
.crm-status-select.crm-status-deposited {
    background-color: rgba(20, 184, 166, 0.18);
    color: #2dd4bf;
    border: 1px solid rgba(20, 184, 166, 0.35);
}
.crm-status-select.crm-status-studied {
    background-color: rgba(14, 165, 233, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.35);
}
.crm-status-select.crm-status-spam {
    background-color: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    text-decoration: line-through;
    opacity: 0.6;
}
.crm-status-select.crm-status-unqualified {
    background-color: rgba(217, 119, 6, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(217, 119, 6, 0.2);
    opacity: 0.7;
}

/* Option colors (best-effort, some browsers ignore) */
.crm-status-select option { background: #1a1d2e; color: #e2e8f0; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   CRM HOVER NOTES POPOVER
   ═══════════════════════════════════════════════════════════════════ */
.btn-crm-notes-popover {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.btn-crm-notes-popover.has-notes {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.55);
    color: #818cf8;
}

.btn-crm-notes-popover .notes-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #6366f1;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    line-height: 1;
}

.btn-crm-notes-popover:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--primary);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.crm-notes-popover-card {
    position: absolute;
    width: 320px;
    height: 300px;
    min-width: 280px;
    min-height: 220px;
    max-width: 600px;
    max-height: 550px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0,0,0,0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1010;
    resize: both;
    overflow: hidden;
}

.crm-notes-popover-card .popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 6px;
}

.crm-notes-popover-card .popover-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}

.crm-notes-popover-card .popover-close-btn:hover {
    color: var(--text-main);
}

.crm-notes-popover-card .popover-notes-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 2px;
}

/* Scrollbar styles inside popover */
.crm-notes-popover-card .popover-notes-list::-webkit-scrollbar {
    width: 4px;
}
.crm-notes-popover-card .popover-notes-list::-webkit-scrollbar-track {
    background: transparent;
}
.crm-notes-popover-card .popover-notes-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}
.crm-notes-popover-card .popover-notes-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.crm-notes-popover-card .popover-note-item {
    padding: 6px 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.15s;
}

.crm-notes-popover-card .popover-note-item:hover {
    background: rgba(255,255,255,0.05);
}

.crm-notes-popover-card .popover-input-container {
    display: flex;
    gap: 6px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 8px;
}

.crm-notes-popover-card .popover-new-note-input {
    flex: 1;
    padding: 6px 8px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s;
}

.crm-notes-popover-card .popover-new-note-input:focus {
    border-color: var(--primary);
}

/* Custom Multiselect Dropdown for Status Filter */
.crm-multiselect-dropdown {
    position: relative;
    display: inline-block;
}

.crm-multiselect-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 190px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    padding: 8px 12px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}

.crm-multiselect-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.crm-multiselect-trigger.crm-filter-active {
    border-color: var(--primary-glow);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.05);
}

.crm-multiselect-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 240px;
    background: rgba(13, 18, 34, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1020;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
    margin-bottom: 2px;
}

.btn-menu-action {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.btn-menu-action:hover {
    background: rgba(99, 102, 241, 0.1);
}

.dropdown-menu-options {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}

.dropdown-menu-options::-webkit-scrollbar {
    width: 4px;
}
.dropdown-menu-options::-webkit-scrollbar-track {
    background: transparent;
}
.dropdown-menu-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.multiselect-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-main);
    transition: background 0.15s;
    user-select: none;
}

.multiselect-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.multiselect-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.15s;
}

.multiselect-option input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.multiselect-option input[type="checkbox"]:checked::after {
    content: "";
    width: 6px;
    height: 3px;
    border-left: 2.2px solid white;
    border-bottom: 2.2px solid white;
    transform: rotate(-45deg);
    position: absolute;
    top: 3.5px;
}

/* Wings Academy Course Tab Styling */
.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.course-card.border-immigration:hover,
.course-card.border-basic:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
}

.course-card.border-local:hover,
.course-card.border-advanced:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
}

.course-card.border-fan:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.15);
}

.course-card.border-design:hover {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.15);
}

.course-card.border-trial:hover {
    border-color: rgba(234, 179, 8, 0.5);
    box-shadow: 0 12px 30px rgba(234, 179, 8, 0.15);
}

.course-header-tag {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 14px;
    border-bottom-left-radius: 12px;
    letter-spacing: 0.05em;
}

.course-header-tag.immigration,
.course-header-tag.basic {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-left: 1px solid rgba(59, 130, 246, 0.3);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.course-header-tag.local,
.course-header-tag.advanced {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-left: 1px solid rgba(16, 185, 129, 0.3);
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}

.course-header-tag.fan {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-left: 1px solid rgba(245, 158, 11, 0.3);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.course-header-tag.design {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
    border-left: 1px solid rgba(236, 72, 153, 0.3);
    border-bottom: 1px solid rgba(236, 72, 153, 0.3);
}

.course-header-tag.trial {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border-left: 1px solid rgba(234, 179, 8, 0.3);
    border-bottom: 1px solid rgba(234, 179, 8, 0.3);
}

.faq-trigger:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: #ffffff;
}

.faq-item.active {
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.btn-copy-script:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

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

/* Syllabus Drawer Styles */
.drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1100;
    justify-content: flex-end;
    align-items: stretch;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.drawer-overlay.active {
    display: flex !important;
    opacity: 1;
}

.drawer-overlay.active .drawer-content {
    transform: translateX(0) !important;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 16px;
    background: rgba(15, 18, 36, 0.5);
}

.drawer-header > div:first-child {
    flex: 1;
    min-width: 0;
}

#btn-close-drawer {
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

#drawer-course-title {
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.drawer-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

/* Custom Scrollbar for Drawer Body */
.drawer-body::-webkit-scrollbar {
    width: 6px;
}

.drawer-body::-webkit-scrollbar-track {
    background: transparent;
}

.drawer-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.drawer-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Vertical Timeline */
.timeline-container {
    position: relative;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-container::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 11px;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}

.timeline-node {
    position: absolute;
    left: -30px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.25);
    color: #a78bfa;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-node {
    background: #8b5cf6;
    border-color: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    color: #ffffff;
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

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

.btn-view-syllabus {
    cursor: pointer;
    transition: opacity 0.2s, text-decoration 0.2s;
}

.btn-view-syllabus:hover {
    opacity: 0.8;
}

#btn-close-drawer:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
}

#btn-copy-full-syllabus:hover {
    background: rgba(139, 92, 246, 0.18) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
}

#btn-copy-full-syllabus:active {
    transform: scale(0.98);
}

#btn-copy-drawer-pitch:hover {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #10b981 !important;
}

#btn-copy-drawer-pitch:active {
    transform: scale(0.98);
}

/* Timeline Session Copy Button */
.btn-copy-session {
    opacity: 0.35;
    transition: all 0.2s ease;
}

.timeline-item:hover .btn-copy-session {
    opacity: 0.85;
}

.btn-copy-session:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.btn-copy-session:active {
    transform: scale(0.9);
}

/* Eyelash Service Menu & Price Calculator Styles */
.salon-menu-container {
    display: flex;
    gap: 28px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.salon-menu-main {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.salon-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px;
    background: rgba(15, 10, 25, 0.4);
    border-radius: 14px;
    border: 1px solid rgba(236, 72, 153, 0.1);
    scrollbar-width: none;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}
.salon-tabs::-webkit-scrollbar {
    display: none;
}

.salon-tab-btn {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-family: var(--font-stack);
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.salon-tab-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
    transform: translateY(-1px);
}

.salon-tab-btn.active {
    background: linear-gradient(135deg, #ec4899, #be185d) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4) !important;
}

.salon-table-wrapper {
    background: rgba(15, 10, 25, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
}

.salon-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
    text-align: left;
}

.salon-table th {
    background: rgba(255, 255, 255, 0.02) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.75rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.salon-table td {
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.9);
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.salon-table tr:last-child td {
    border-bottom: none !important;
}

.salon-table tr:hover td {
    background: rgba(236, 72, 153, 0.04) !important;
}

.salon-header-classic {
    text-align: center !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    letter-spacing: 2px !important;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.12)) !important;
    color: #818cf8 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.salon-header-volume {
    text-align: center !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    letter-spacing: 2px !important;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.12)) !important;
    color: #34d399 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.salon-border-right {
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.badge-bestseller {
    background: linear-gradient(135deg, #f43f5e, #be185d) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px;
    padding: 3px 8px !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 10px rgba(244, 63, 94, 0.4) !important;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
}

.badge-popular {
    background: linear-gradient(135deg, #10b981, #047857) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px;
    padding: 3px 8px !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4) !important;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
}

.calculator-card {
    width: 320px;
    background: linear-gradient(135deg, rgba(20, 15, 30, 0.8) 0%, rgba(10, 10, 15, 0.95) 100%) !important;
    border: 1px solid rgba(236, 72, 153, 0.15) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.calculator-card:hover {
    border-color: rgba(236, 72, 153, 0.3) !important;
    box-shadow: 0 12px 48px 0 rgba(236, 72, 153, 0.1), 0 10px 40px 0 rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 900px) {
    .calculator-card {
        width: 100% !important;
    }
}

.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-label {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.calc-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: rgba(15, 10, 25, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ec4899' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 12px 36px 12px 14px !important;
    border-radius: 12px !important;
    font-family: var(--font-stack);
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.calc-select:hover {
    border-color: rgba(236, 72, 153, 0.4) !important;
    background-color: rgba(15, 10, 25, 0.8) !important;
}

.calc-select:focus {
    border-color: #ec4899 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.25), 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.calc-result-panel {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 14px !important;
    padding: 18px !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.calc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.calc-result-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.calc-result-value {
    font-weight: 700 !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
}

.calc-price {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #f472b6, #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-stack) !important;
    text-shadow: 0 2px 10px rgba(236, 72, 153, 0.15);
}

.btn-calc-copy {
    background: linear-gradient(135deg, #ec4899, #be185d) !important;
    border: none !important;
    color: #ffffff !important;
    font-family: var(--font-stack);
    font-weight: 700 !important;
    padding: 14px !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-calc-copy:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.45) !important;
    filter: brightness(1.05);
}

.btn-calc-copy:active {
    transform: translateY(1px) scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2) !important;
}

.salon-price-normal {
    color: var(--text-header) !important;
    font-weight: 600 !important;
}

.salon-price-highlight {
    color: #ec4899 !important;
    font-weight: 700 !important;
}

.salon-price-popular {
    color: #10b981 !important;
    font-weight: 700 !important;
}

.salon-price-muted {
    color: var(--text-muted) !important;
    font-weight: 400 !important;
}

/* Talent Assessment Modal and Controls */
#talent-assessment-modal select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 30px 8px 10px;
    background: rgba(0, 0, 0, 0.4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 6px;
    outline: none;
    font-family: var(--font-stack);
    transition: all 0.2s ease;
    cursor: pointer;
}

#talent-assessment-modal input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 10px;
    border-radius: 6px;
    outline: none;
    font-family: var(--font-stack);
    transition: all 0.2s ease;
}

#talent-assessment-modal select:focus,
#talent-assessment-modal input:focus {
    border-color: #ffbc42;
    box-shadow: 0 0 6px rgba(255, 188, 66, 0.25);
}

/* Premium Redesign for Talent Discovery Close Sales Section */
.rank-badge-glow {
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

/* Rank Glow States */
.rank-glow-genius {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 188, 66, 0.12));
    border: 1px solid rgba(255, 188, 66, 0.4) !important;
    box-shadow: 0 0 16px rgba(255, 188, 66, 0.15), inset 0 0 10px rgba(255, 188, 66, 0.05);
}

.rank-glow-star {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.15), inset 0 0 10px rgba(16, 185, 129, 0.05);
}

.rank-glow-qualified {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(29, 78, 216, 0.12));
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.15), inset 0 0 10px rgba(59, 130, 246, 0.05);
}

.rank-glow-level3 {
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.05), rgba(113, 113, 122, 0.12));
    border: 1px solid rgba(161, 161, 170, 0.4) !important;
    box-shadow: 0 0 16px rgba(161, 161, 170, 0.15), inset 0 0 10px rgba(161, 161, 170, 0.05);
}

.rank-glow-unqualified {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.1);
}

/* Visual Pricing Card */
.pricing-visual-card {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.8), rgba(15, 15, 15, 0.95)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.pricing-visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

/* Badges and tags */
.course-badge-premium {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 188, 66, 0.25));
    border: 1px solid rgba(255, 188, 66, 0.4);
    color: #ffbc42;
    padding: 3px 8px;
    border-radius: 4px;
}

.scholarship-tag-emerald {
    color: #059669;
}
body.dark-theme .scholarship-tag-emerald {
    color: #10b981;
}

@keyframes pulse-emerald {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.price-crossed {
    text-decoration: line-through;
    color: #f25757;
    font-family: monospace;
    font-size: 0.95rem;
    opacity: 0.85;
}

.final-price-glow-text {
    font-size: 1.55rem;
    font-weight: 900;
    color: #ffbc42;
    text-shadow: 0 0 15px rgba(255, 188, 66, 0.5), 0 0 30px rgba(255, 188, 66, 0.2);
    font-family: monospace;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffd700, #ffbc42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Countdown Pill Banner */
.countdown-pill-banner {
    background: linear-gradient(90deg, rgba(242, 87, 87, 0.08), rgba(242, 87, 87, 0.03)) !important;
    border: 1px solid rgba(242, 87, 87, 0.25) !important;
    box-shadow: 0 0 10px rgba(242, 87, 87, 0.05);
    border-radius: 30px !important;
    padding: 10px 18px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #f87171;
    font-weight: 500;
}

.pulse-timer {
    animation: clock-pulse 1.5s infinite alternate;
    color: #ef4444;
}

@keyframes clock-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.6)); }
}

.time-numbers {
    font-family: monospace;
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(242, 87, 87, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(242, 87, 87, 0.2);
}

/* Guarantees List */
.premium-guarantees-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.01);
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.guarantee-item-premium {
    display: flex;
    gap: 10px;
    line-height: 1.4;
    align-items: flex-start;
}

.guarantee-icon-wrapper {
    background: rgba(255, 188, 66, 0.1);
    color: #ffbc42;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 188, 66, 0.2);
}

/* PRINT MEDIA QUERIES FOR LUXURY A4 PAPER */
@media print {
    /* Hide all web components */
    body > * {
        display: none !important;
    }
    
    /* Only show print container */
    #printable-talent-form {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background: #ffffff !important;
        color: #111111 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Reset body backgrounds */
    body, html {
        background: #ffffff !important;
        color: #111111 !important;
        font-family: "Georgia", "Times New Roman", serif !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Print page setup */
    @page {
        size: A4 portrait;
        margin: 12mm 15mm 12mm 15mm;
    }

    /* Luxury border box container */
    .print-luxury-border {
        border: none !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    /* Header styling */
    .print-header-brand {
        text-align: center !important;
        margin-bottom: 20px !important;
        border-bottom: 1px solid #e5e7eb !important;
        padding-bottom: 15px !important;
    }

    .print-logo-title {
        font-size: 26px !important;
        font-weight: 700 !important;
        letter-spacing: 3px !important;
        text-transform: uppercase !important;
        margin: 0 0 4px 0 !important;
        color: #111111 !important;
    }

    .print-logo-sub {
        font-size: 10px !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        color: #666666 !important;
        margin: 0 !important;
        font-weight: 500 !important;
    }

    /* Document Title */
    .print-doc-title {
        font-size: 18px !important;
        font-weight: 700 !important;
        text-align: center !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        margin: 15px 0 25px 0 !important;
        color: #c5a059 !important;
    }

    /* Student Info Table */
    .print-info-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        margin-bottom: 25px !important;
        font-size: 13px !important;
    }

    .print-info-item {
        border-bottom: 1px dotted #999999 !important;
        padding-bottom: 4px !important;
    }

    /* Structured test grids */
    .print-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-bottom: 25px !important;
        font-size: 13px !important;
    }

    .print-table th {
        background: #f3f4f6 !important;
        border: 1px solid #cccccc !important;
        padding: 8px 10px !important;
        text-align: left !important;
        font-weight: 600 !important;
        color: #333333 !important;
        text-transform: uppercase !important;
        font-size: 11px !important;
        letter-spacing: 0.5px !important;
    }

    .print-table td {
        border: 1px solid #cccccc !important;
        padding: 8px 10px !important;
        color: #111111 !important;
    }

    .print-table tr:nth-child(even) {
        background: #fafafa !important;
    }

    /* Ranking Gold Badge */
    .print-rank-badge-box {
        border: 2px solid #c5a059 !important;
        background: #fdfbf7 !important;
        border-radius: 6px !important;
        padding: 15px !important;
        text-align: center !important;
        margin-bottom: 25px !important;
    }

    .print-rank-label {
        font-size: 11px !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
        color: #666666 !important;
        margin-bottom: 4px !important;
    }

    .print-rank-value {
        font-size: 22px !important;
        font-weight: 700 !important;
        color: #c5a059 !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 8px !important;
    }

    .print-reward-value {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #111111 !important;
    }

    /* Urgency chot sales box */
    .print-urgency-box {
        border: 1px solid #f87171 !important;
        background: #fef2f2 !important;
        border-radius: 4px !important;
        padding: 12px !important;
        font-size: 11.5px !important;
        line-height: 1.4 !important;
        color: #991b1b !important;
        margin-bottom: 25px !important;
    }

    /* Bank info block */
    .print-bank-details {
        font-size: 12px !important;
        line-height: 1.5 !important;
        background: #f9fafb !important;
        border: 1px solid #e5e7eb !important;
        padding: 10px 12px !important;
        border-radius: 4px !important;
        margin-bottom: 30px !important;
    }

    /* Signatures block */
    .print-signatures {
        display: flex !important;
        justify-content: space-between !important;
        margin-top: auto !important;
        padding-top: 30px !important;
        font-size: 13px !important;
    }

    .print-sig-col {
        text-align: center !important;
        width: 40% !important;
    }

    .print-sig-space {
        height: 65px !important;
    }

    .print-sig-title {
        font-weight: 600 !important;
        margin-bottom: 2px !important;
    }

    .print-sig-sub {
        font-size: 11px !important;
        color: #666666 !important;
        font-style: italic !important;
    }

    .print-page {
        page-break-after: always !important;
        break-after: page !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .print-page-break {
        page-break-before: always !important;
        break-before: page !important;
    }
}


/* LIGHT THEME SPECIFIC OVERRIDES */
body.light-theme {
    --bg-dark: #f0f2f5;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --card-hover: #f9fafb;
    --border-color: #e5e7eb;
    --border-focus: rgba(59, 130, 246, 0.6);
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --text-header: #111827;
    --text: var(--text-main);
    --border: var(--border-color);
    --primary-glow: rgba(59, 130, 246, 0.15);
    --success-glow: rgba(16, 185, 129, 0.15);
    --danger-glow: rgba(239, 68, 68, 0.15);
}

body.light-theme {
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.04) 0%, transparent 40%) !important;
}

body.light-theme .glass-card {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme input:not([type="checkbox"]):not([type="radio"]), 
body.light-theme select, 
body.light-theme textarea {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    border-color: #d1d5db !important;
}

body.light-theme input:focus,
body.light-theme select:focus,
body.light-theme textarea:focus {
    border-color: #3b82f6 !important;
    background-color: #ffffff !important;
}

body.light-theme .sidebar {
    background-color: #ffffff !important;
    border-right: 1px solid #e5e7eb !important;
}

body.light-theme .nav-btn {
    color: #4b5563 !important;
}

body.light-theme .nav-btn:hover {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
}

body.light-theme .nav-btn.active {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

body.light-theme .system-status span {
    color: #4b5563 !important;
}

body.light-theme .crm-lead-row {
    border-bottom: 1px solid #e5e7eb !important;
}

body.light-theme .crm-lead-row:hover {
    background-color: #f9fafb !important;
}

body.light-theme .modal-content {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #1f2937 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .modal-header {
    border-bottom: 1px solid #e5e7eb !important;
    background-color: #f9fafb !important;
}

body.light-theme .modal-footer {
    border-top: 1px solid #e5e7eb !important;
    background-color: #f9fafb !important;
}

body.light-theme .modal-sidebar {
    border-right: 1px solid #e5e7eb !important;
    background-color: #f9fafb !important;
}

body.light-theme .assessment-config-panel {
    background-color: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
}

body.light-theme .crm-filter-bar {
    background-color: #ffffff !important;
    border-color: #e5e7eb !important;
}

body.light-theme .crm-metric-card {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

body.light-theme .crm-metric-label {
    color: #4b5563 !important;
}

body.light-theme .crm-metric-val {
    color: #111827 !important;
}

body.light-theme .crm-metric-sub {
    color: #6b7280 !important;
}

body.light-theme .crm-tab-btn {
    color: #4b5563 !important;
    border-color: transparent !important;
}

body.light-theme .crm-tab-btn.active {
    color: #3b82f6 !important;
    background-color: rgba(59, 130, 246, 0.08) !important;
    border-color: #3b82f6 !important;
}

body.light-theme .crm-detail-notes-card {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}

body.light-theme .note-item {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

body.light-theme .note-content {
    color: #1f2937 !important;
}

body.light-theme .crm-subtab-container {
    background-color: #f3f4f6 !important;
}

body.light-theme .crm-subtab {
    color: #4b5563 !important;
}

body.light-theme .crm-subtab:hover {
    background-color: #e5e7eb !important;
    color: #111827 !important;
}

body.light-theme .crm-subtab.active {
    background-color: #ffffff !important;
    color: #3b82f6 !important;
}

body.light-theme #crm-leads-table th {
    background-color: #f9fafb !important;
    color: #374151 !important;
    border-bottom: 2px solid #e5e7eb !important;
}

body.light-theme .crm-detail-notes-card header h3 {
    color: #111827 !important;
}

body.light-theme .popover-new-note-input {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border-color: #d1d5db !important;
}

body.light-theme .crm-notes-popover-card {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .crm-notes-popover-card header {
    border-bottom: 1px solid #e5e7eb !important;
}

body.light-theme .crm-perpage-select {
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 8px center !important;
    color: #4b5563 !important;
    border-color: #d1d5db !important;
}

body.light-theme .note-avatar {
    background-color: #e5e7eb !important;
    color: #374151 !important;
}

body.light-theme .status-badge {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .multiselect-dropdown {
    background-color: #ffffff !important;
    border-color: #d1d5db !important;
}

body.light-theme .multiselect-options {
    background-color: #ffffff !important;
    border-color: #d1d5db !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .multiselect-option:hover {
    background-color: #f3f4f6 !important;
}

/* Light theme overrides for Playbook page */
body.light-theme .playbook-container {
    background-color: #ffffff !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .playbook-tabs {
    border-bottom-color: #e5e7eb !important;
}
body.light-theme .pb-tab-btn {
    color: #4b5563 !important;
}
body.light-theme .pb-tab-btn:hover {
    color: #111827 !important;
}
body.light-theme .pb-tab-btn.active {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .script-card {
    background-color: #f9fafb !important;
    border-color: #e5e7eb !important;
}
body.light-theme .script-header h3 {
    color: #111827 !important;
}
body.light-theme .script-scene {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #e5e7eb !important;
}
body.light-theme .chat-bubble.left {
    background-color: #ffffff !important;
    border-color: #e5e7eb !important;
    color: #1f2937 !important;
}

/* Light theme overrides for Customer Personas */
body.light-theme .persona-card {
    background-color: #ffffff !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .persona-meta h2 {
    color: #111827 !important;
}
body.light-theme .persona-section h3 {
    color: #111827 !important;
}
body.light-theme .persona-section li {
    color: #374151 !important;
}

/* Light theme overrides for Strategy / Optimization Map */
body.light-theme .strategy-container {
    background-color: #ffffff !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .strategy-header h2 {
    color: #111827 !important;
}
body.light-theme .strat-column {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}
body.light-theme .strat-node {
    background-color: #ffffff !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}
body.light-theme .strat-node h4 {
    color: #111827 !important;
}

/* Light theme overrides for Billing Audit */
body.light-theme .billing-container {
    background-color: #ffffff !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .billing-header h2 {
    color: #111827 !important;
}
body.light-theme .data-table tr:hover td {
    background-color: #f9fafb !important;
}



/* Custom focus state and number input spinner hide */
#talent-assessment-modal input[type="number"]::-webkit-outer-spin-button,
#talent-assessment-modal input[type="number"]::-webkit-inner-spin-button,
#talent-assessment-modal input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#talent-assessment-modal input[type="number"] {
    -moz-appearance: textfield;
}

/* Reusable input/select class - avoids 4-sided border issue from border-solid without preflight */
.assess-input {
    padding: 9px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1e293b;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}
.assess-input:focus {
    border-color: #2563eb;
    outline: none;
}

.assess-input-sm {
    padding: 5px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #1e293b;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-family: monospace;
    font-weight: 700;
}
.assess-input-sm:focus {
    border-color: #2563eb;
    outline: none;
}

/* Dark theme for assess-input */
body:not(.light-theme) .assess-input {
    background: #18181b;
    border-color: #3f3f46;
    color: #e4e4e7;
}
body:not(.light-theme) .assess-input:focus {
    border-color: #3b82f6;
}
body:not(.light-theme) .assess-input-sm {
    background: #18181b;
    border-color: #3f3f46;
    color: #e4e4e7;
}
body:not(.light-theme) .assess-input-sm:focus {
    border-color: #3b82f6;
}

/* Dark theme border overrides for assessment card */
body:not(.light-theme) #talent-assessment-card {
    border-color: #27272a !important;
}
body:not(.light-theme) #talent-assessment-modal .flex-1[style*="border-left"] {
    border-left-color: #27272a !important;
}
body:not(.light-theme) #talent-assessment-modal .assessment-config-panel {
    border-color: #27272a !important;
}
body:not(.light-theme) #talent-assessment-modal .premium-guarantees-box {
    background: rgba(24,24,27,0.6) !important;
    border-color: #27272a !important;
}

/* Light Theme overrides for assessment modal and subcomponents */
body.light-theme .modal-overlay {
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(4px) !important;
}

body.light-theme #talent-assessment-card {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    color: #1f2937 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .rank-badge-glow {
    box-shadow: none !important;
}

body.light-theme .rank-glow-genius {
    background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
    border: 1px solid #fcd34d !important;
    color: #78350f !important;
}

body.light-theme .rank-glow-genius #assess-result-rank {
    color: #b45309 !important;
}

body.light-theme .rank-glow-star {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
    border: 1px solid #6ee7b7 !important;
    color: #065f46 !important;
}

body.light-theme .rank-glow-star #assess-result-rank {
    color: #047857 !important;
}

body.light-theme .rank-glow-qualified {
    background: linear-gradient(135deg, #eff6ff, #dbeafe) !important;
    border: 1px solid #93c5fd !important;
    color: #1e40af !important;
}

body.light-theme .rank-glow-qualified #assess-result-rank {
    color: #1d4ed8 !important;
}

body.light-theme .rank-glow-level3 {
    background: linear-gradient(135deg, #f4f4f5, #e4e4e7) !important;
    border: 1px solid #d4d4d8 !important;
    color: #3f3f46 !important;
}

body.light-theme .rank-glow-level3 #assess-result-rank {
    color: #27272a !important;
}

body.light-theme .rank-glow-unqualified {
    background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
    border: 1px solid #fca5a5 !important;
    color: #991b1b !important;
}

body.light-theme .rank-glow-unqualified #assess-result-rank {
    color: #b91c1c !important;
}

body.light-theme .pricing-visual-card {
    background: linear-gradient(180deg, #ffffff, #f9fafb) !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    color: #1f2937 !important;
}

body.light-theme .pricing-visual-card::before {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent) !important;
}

body.light-theme .course-badge-premium {
    background: linear-gradient(135deg, #eff6ff, #dbeafe) !important;
    border: 1px solid #93c5fd !important;
    color: #1d4ed8 !important;
}

body.light-theme .final-price-glow-text {
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
}

body.light-theme .countdown-pill-banner {
    background: linear-gradient(90deg, #fef2f2, #fff5f5) !important;
    border: 1px solid #fee2e2 !important;
    color: #b91c1c !important;
    box-shadow: none !important;
}

body.light-theme .time-numbers {
    background: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
    color: #b91c1c !important;
}

body.light-theme #assess-urgency-banner {
    background-color: #fef2f2 !important;
    border-color: #fee2e2 !important;
    color: #991b1b !important;
}

body.light-theme .premium-guarantees-box {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
    color: #4b5563 !important;
}

body.light-theme .guarantee-icon-wrapper {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}

body.light-theme #btn-toggle-theme {
    border-color: #d1d5db !important;
    color: #374151 !important;
}

/* Light theme assess-input overrides */
body.light-theme .assess-input {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}
body.light-theme .assess-input:focus {
    border-color: #2563eb !important;
}
body.light-theme .assess-input-sm {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

/* Fix right panel border for dark mode */
body:not(.light-theme) #talent-assessment-modal .right-panel-dark-border {
    border-left-color: #27272a;
}

/* Assessment card dark mode border */
body:not(.light-theme) #talent-assessment-card {
    border-color: #27272a !important;
}

/* Assessment modal compact layout polish */
#talent-assessment-card select.assess-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer;
}

/* Dynamic UI Consistency Classes */
.sub-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
body.light-theme .sub-card {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}

.sub-card-title {
    color: var(--text-header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.light-theme .sub-card-title {
    border-bottom-color: #e5e7eb !important;
}

.course-table-header {
    background: rgba(0, 0, 0, 0.15);
}
body.light-theme .course-table-header {
    background: #f3f4f6 !important;
}

.course-card-footer {
    background: rgba(0, 0, 0, 0.2);
}
body.light-theme .course-card-footer {
    background: #f9fafb !important;
}

.masteros-promo-card {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.6) 0%, rgba(10, 10, 20, 0.8) 100%) !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
}
body.light-theme .masteros-promo-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

.salon-menu-card {
    background: linear-gradient(135deg, rgba(20, 15, 35, 0.75) 0%, rgba(10, 10, 15, 0.9) 100%) !important;
    border: 1px solid rgba(236, 72, 153, 0.2) !important;
}
body.light-theme .salon-menu-card {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%) !important;
    border-color: rgba(236, 72, 153, 0.3) !important;
}

.faq-item-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
}
body.light-theme .faq-item-card {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

.faq-content-inner-box {
    background: rgba(0, 0, 0, 0.15);
}
body.light-theme .faq-content-inner-box {
    background: #f9fafb !important;
}

.faq-script-box {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
body.light-theme .faq-script-box {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

.faq-script-text {
    color: #e2e8f0;
}
body.light-theme .faq-script-text {
    color: #334155 !important;
}

/* Additional dynamic UI consistency overrides */

body.light-theme .stat-value {
    color: var(--text-header) !important;
}
body.light-theme .stat-value.text-danger {
    color: #dc2626 !important;
    text-shadow: none !important;
}
body.light-theme .stat-value.text-success {
    color: #059669 !important;
    text-shadow: none !important;
}
body.light-theme .stat-value.text-primary {
    color: #2563eb !important;
    text-shadow: none !important;
}

body.light-theme .alert-danger {
    background-color: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
    box-shadow: none !important;
}

body.light-theme .rec-danger {
    background-color: #fef2f2 !important;
    border-color: #fee2e2 !important;
}
body.light-theme .rec-success {
    background-color: #f0fdf4 !important;
    border-color: #dcfce7 !important;
}
body.light-theme .rec-warning {
    background-color: #fffbeb !important;
    border-color: #fef3c7 !important;
}

body.light-theme .badge-primary {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: #2563eb !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}
body.light-theme .badge-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}
body.light-theme .badge-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}
body.light-theme .badge-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: #b45309 !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
}
body.light-theme .badge-secondary {
    background-color: rgba(100, 116, 139, 0.1) !important;
    color: #475569 !important;
    border: 1px solid rgba(100, 116, 139, 0.2) !important;
}
body.light-theme .badge-info {
    background-color: rgba(124, 58, 237, 0.1) !important;
    color: #6d28d9 !important;
    border: 1px solid rgba(124, 58, 237, 0.2) !important;
}

body.light-theme .strat-column.mkt .column-title {
    color: #2563eb !important;
}
body.light-theme .strat-column.sales .column-title {
    color: #059669 !important;
}

/* Small edit buttons & Staff inline edit inputs */
.btn-edit-small {
    margin-left: 6px;
    font-size: 11px;
    padding: 2px 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s;
}
.btn-edit-small:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-header);
}
body.light-theme .btn-edit-small {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}
body.light-theme .btn-edit-small:hover {
    background: #e5e7eb !important;
    color: #111827 !important;
}

.staff-name-input {
    padding: 4px 8px;
    border: 1px solid #6366f1;
    border-radius: 6px;
    font-size: 12px;
    width: 140px;
    outline: none;
    background: var(--card-bg);
    color: var(--text-main);
}
.staff-name-save {
    margin-left: 4px;
    padding: 3px 10px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
}
.staff-name-cancel {
    margin-left: 2px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
}
body.light-theme .staff-name-cancel {
    background: #e5e7eb !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

.role-select-inline {
    padding: 4px 8px;
    border: 1px solid #a78bfa;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
    background: var(--card-bg);
    color: var(--text-main);
    cursor: pointer;
}
.role-save-btn {
    margin-left: 4px;
    padding: 3px 10px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
}
.role-cancel-btn {
    margin-left: 2px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
}
body.light-theme .role-select-inline {
    background: #f9fafb !important;
    color: #111827 !important;
    border-color: #7c3aed !important;
}
body.light-theme .role-cancel-btn {
    background: #e5e7eb !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

/* Light Theme Contrast Overrides for Courses & CRM */
body.light-theme #tab-courses h3[style*="ffbc42"] {
    color: #b45309 !important; /* Amber-700 for headings */
}
body.light-theme #tab-courses h3[style*="34d399"] {
    color: #047857 !important; /* Emerald-700 for headings */
}
body.light-theme #tab-courses div[style*="34d399"] {
    color: #047857 !important; /* Emerald-700 for section labels */
    border-bottom-color: rgba(5, 120, 87, 0.2) !important;
}
body.light-theme #tab-courses .course-table-header[style*="34d399"] {
    color: #047857 !important; /* Emerald-700 for table headers */
}
body.light-theme #tab-courses input[style*="34d399"],
body.light-theme #tab-courses input[style*="52,211,153"] {
    background: rgba(16, 185, 129, 0.05) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
    color: #047857 !important; /* Dark green text for number inputs */
}
body.light-theme #tab-courses span[style*="ffd700"] {
    color: #b45309 !important; /* Dark gold for Xuất sắc label */
}
body.light-theme #tab-courses span[style*="f59e0b"] {
    color: #d97706 !important; /* Dark amber for Đạt Giỏi label */
}
body.light-theme #tab-courses span[style*="94a3b8"] {
    color: #4b5563 !important; /* Slate-600 for Đạt Khá label */
}
body.light-theme #tab-courses td[style*="ffbc42"] {
    color: #b45309 !important; /* Dark gold for config table columns */
}
body.light-theme #tab-courses td[style*="10b981"] {
    color: #059669 !important; /* Dark green for config table columns */
}
body.light-theme #tab-courses td[style*="a1a1aa"] {
    color: #4b5563 !important; /* Dark gray for config table columns */
}
body.light-theme .btn-crm-action.btn-assess-lead[style*="ffbc42"] {
    background: rgba(180, 83, 9, 0.08) !important;
    border-color: rgba(180, 83, 9, 0.25) !important;
    color: #b45309 !important; /* Dark gold/amber for Tố chất action button */
}
body.light-theme .btn-crm-action.btn-assess-lead[style*="ef4444"] {
    background: rgba(220, 38, 38, 0.08) !important;
    border-color: rgba(220, 38, 38, 0.2) !important;
    color: #dc2626 !important; /* Dark red for Không đạt action button */
}

/* Syllabus Drawer Light Theme Overrides */
body.light-theme .drawer-overlay {
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(4px) !important;
}
body.light-theme .drawer-content {
    background: #ffffff !important;
    border-left: 1px solid #e5e7eb !important;
    box-shadow: rgba(0, 0, 0, 0.08) -10px 0px 30px !important;
}
body.light-theme .drawer-header {
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
}
body.light-theme #drawer-course-title {
    color: #111827 !important;
}
body.light-theme #btn-close-drawer {
    color: #4b5563 !important;
}
body.light-theme #btn-close-drawer:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #111827 !important;
}
body.light-theme #btn-copy-full-syllabus {
    background: rgba(139, 92, 246, 0.08) !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
    color: #7c3aed !important;
}
body.light-theme #btn-copy-full-syllabus:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.35) !important;
    color: #6d28d9 !important;
}
body.light-theme #btn-copy-drawer-pitch {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
    color: #059669 !important;
}
body.light-theme #btn-copy-drawer-pitch:hover {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #047857 !important;
}
body.light-theme .drawer-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15) !important;
}
body.light-theme .drawer-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25) !important;
}
body.light-theme .timeline-container::before {
    background: #e5e7eb !important;
}
body.light-theme .timeline-node {
    background: #f5f3ff !important;
    border-color: #c4b5fd !important;
    color: #7c3aed !important;
}
body.light-theme .timeline-item:hover .timeline-node {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.3) !important;
}
body.light-theme .timeline-title {
    color: #111827 !important;
}
body.light-theme .btn-copy-session {
    color: #4b5563 !important;
}
body.light-theme .btn-copy-session:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}
body.light-theme .btn-secondary:hover {
    background-color: #f3f4f6 !important;
}

/* CRM Multiselect Dropdown Light Theme Overrides */
body.light-theme .crm-multiselect-dropdown-menu {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}
body.light-theme .dropdown-menu-header {
    border-bottom-color: #e5e7eb !important;
}
body.light-theme .dropdown-menu-options::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1) !important;
}
body.light-theme .multiselect-option {
    color: #1f2937 !important;
}
body.light-theme .multiselect-option:hover {
    background: #f3f4f6 !important;
}
body.light-theme .multiselect-option input[type="checkbox"] {
    border-color: rgba(0, 0, 0, 0.25) !important;
}

/* Customer Persona Header Light Theme Gradients */
body.light-theme .persona-header.vy {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.02) 100%) !important;
}
body.light-theme .persona-header.mai {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.02) 100%) !important;
}

/* Strategy Node Badges Light Theme High Contrast */
body.light-theme .node-badge {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: #2563eb !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}
body.light-theme .node-badge.green {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

/* --- COURSES TAB (ACADEMY) LIGHT THEME CONTRAST OVERRIDES --- */

/* 1. Config Cards Headers */
body.light-theme .courses-container > .glass-card:nth-child(1) h3 {
    color: #b45309 !important;
}
body.light-theme .courses-container > .glass-card:nth-child(2) h3 {
    color: #b45309 !important;
}
body.light-theme .courses-container > .glass-card:nth-child(3) h3 {
    color: #059669 !important;
}

/* 2. Campaign Config Delete Button & Badges */
body.light-theme #campaign-config-table-body .btn-delete-campaign {
    background: rgba(220, 38, 38, 0.08) !important;
    border-color: rgba(220, 38, 38, 0.2) !important;
    color: #dc2626 !important;
}
body.light-theme #campaign-config-table-body .btn-delete-campaign:hover {
    background: rgba(220, 38, 38, 0.15) !important;
}
body.light-theme #campaign-config-table-body td span[style*="10b981"] {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

/* 3. Course Cards Container Hover */
body.light-theme .course-card {
    background-color: #ffffff !important;
    border-color: #e5e7eb !important;
}
body.light-theme .course-card:hover {
    background-color: #ffffff !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
}

/* 4. Course Cards Color Coding & Legibility (Basic - Blue) */
body.light-theme .course-card.border-basic {
    border-color: rgba(59, 130, 246, 0.2) !important;
}
body.light-theme .course-card.border-basic:hover {
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.1) !important;
}
body.light-theme .course-header-tag.basic {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #2563eb !important;
    border-left-color: rgba(59, 130, 246, 0.15) !important;
    border-bottom-color: rgba(59, 130, 246, 0.15) !important;
}
body.light-theme .course-card.border-basic .course-body-content > h3 + div {
    color: #2563eb !important;
}
body.light-theme .course-card.border-basic .course-features-list li span:first-child {
    color: #2563eb !important;
}
body.light-theme .course-card.border-basic .course-features-list li.course-guarantee,
body.light-theme .course-card.border-basic .course-features-list li[style*="60a5fa"] {
    color: #2563eb !important;
}
body.light-theme .course-card.border-basic #card-price-footer-basic {
    color: #2563eb !important;
}
body.light-theme .course-card.border-basic .btn-copy-pitch {
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
    color: #2563eb !important;
}
body.light-theme .course-card.border-basic .btn-copy-pitch:hover {
    background: rgba(37, 99, 235, 0.15) !important;
}
body.light-theme .course-card.border-basic .btn-view-syllabus {
    color: #2563eb !important;
}

/* 5. Course Cards Color Coding & Legibility (Advanced - Green) */
body.light-theme .course-card.border-advanced {
    border-color: rgba(16, 185, 129, 0.2) !important;
}
body.light-theme .course-card.border-advanced:hover {
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.1) !important;
}
body.light-theme .course-header-tag.advanced {
    background: rgba(16, 185, 129, 0.08) !important;
    color: #059669 !important;
    border-left-color: rgba(16, 185, 129, 0.15) !important;
    border-bottom-color: rgba(16, 185, 129, 0.15) !important;
}
body.light-theme .course-card.border-advanced .course-body-content > h3 + div {
    color: #059669 !important;
}
body.light-theme .course-card.border-advanced .course-features-list li span:first-child {
    color: #059669 !important;
}
body.light-theme .course-card.border-advanced .course-features-list li.course-guarantee,
body.light-theme .course-card.border-advanced .course-features-list li[style*="34d399"] {
    color: #059669 !important;
}
body.light-theme .course-card.border-advanced #card-price-footer-advanced {
    color: #059669 !important;
}
body.light-theme .course-card.border-advanced .btn-copy-pitch {
    background: rgba(5, 150, 105, 0.08) !important;
    border-color: rgba(5, 150, 105, 0.2) !important;
    color: #059669 !important;
}
body.light-theme .course-card.border-advanced .btn-copy-pitch:hover {
    background: rgba(5, 150, 105, 0.15) !important;
}
body.light-theme .course-card.border-advanced .btn-view-syllabus {
    color: #059669 !important;
}

/* 6. Course Cards Color Coding & Legibility (Fan - Amber) */
body.light-theme .course-card.border-fan {
    border-color: rgba(245, 158, 11, 0.2) !important;
}
body.light-theme .course-card.border-fan:hover {
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.1) !important;
}
body.light-theme .course-header-tag.fan {
    background: rgba(245, 158, 11, 0.08) !important;
    color: #b45309 !important;
    border-left-color: rgba(245, 158, 11, 0.15) !important;
    border-bottom-color: rgba(245, 158, 11, 0.15) !important;
}
body.light-theme .course-card.border-fan .course-body-content > h3 + div {
    color: #b45309 !important;
}
body.light-theme .course-card.border-fan .course-features-list li span:first-child {
    color: #b45309 !important;
}
body.light-theme .course-card.border-fan .course-features-list li.course-guarantee,
body.light-theme .course-card.border-fan .course-features-list li[style*="fbbf24"] {
    color: #b45309 !important;
}
body.light-theme .course-card.border-fan #card-price-footer-fan {
    color: #b45309 !important;
}
body.light-theme .course-card.border-fan .btn-copy-pitch {
    background: rgba(180, 83, 9, 0.08) !important;
    border-color: rgba(180, 83, 9, 0.2) !important;
    color: #b45309 !important;
}
body.light-theme .course-card.border-fan .btn-copy-pitch:hover {
    background: rgba(180, 83, 9, 0.15) !important;
}
body.light-theme .course-card.border-fan .btn-view-syllabus {
    color: #b45309 !important;
}

/* 7. Course Cards Color Coding & Legibility (Design - Pink) */
body.light-theme .course-card.border-design {
    border-color: rgba(236, 72, 153, 0.2) !important;
}
body.light-theme .course-card.border-design:hover {
    border-color: rgba(236, 72, 153, 0.5) !important;
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.1) !important;
}
body.light-theme .course-header-tag.design {
    background: rgba(236, 72, 153, 0.08) !important;
    color: #be185d !important;
    border-left-color: rgba(236, 72, 153, 0.15) !important;
    border-bottom-color: rgba(236, 72, 153, 0.15) !important;
}
body.light-theme .course-card.border-design .course-body-content > h3 + div {
    color: #be185d !important;
}
body.light-theme .course-card.border-design .course-features-list li span:first-child {
    color: #be185d !important;
}
body.light-theme .course-card.border-design .course-features-list li.course-guarantee,
body.light-theme .course-card.border-design .course-features-list li[style*="f472b6"] {
    color: #be185d !important;
}
body.light-theme .course-card.border-design #card-price-footer-design {
    color: #be185d !important;
}
body.light-theme .course-card.border-design .btn-copy-pitch {
    background: rgba(190, 24, 93, 0.08) !important;
    border-color: rgba(190, 24, 93, 0.2) !important;
    color: #be185d !important;
}
body.light-theme .course-card.border-design .btn-copy-pitch:hover {
    background: rgba(190, 24, 93, 0.15) !important;
}
body.light-theme .course-card.border-design .btn-view-syllabus {
    color: #be185d !important;
}

/* 8. Course Cards Color Coding & Legibility (Trial - Gold) */
body.light-theme .course-card.border-trial {
    border-color: rgba(234, 179, 8, 0.2) !important;
}
body.light-theme .course-card.border-trial:hover {
    border-color: rgba(234, 179, 8, 0.5) !important;
    box-shadow: 0 12px 30px rgba(234, 179, 8, 0.1) !important;
}
body.light-theme .course-header-tag.trial {
    background: rgba(234, 179, 8, 0.08) !important;
    color: #a16207 !important;
    border-left-color: rgba(234, 179, 8, 0.15) !important;
    border-bottom-color: rgba(234, 179, 8, 0.15) !important;
}
body.light-theme .course-card.border-trial .course-body-content > h3 + div {
    color: #a16207 !important;
}
body.light-theme .course-card.border-trial .course-features-list li span:first-child {
    color: #a16207 !important;
}
body.light-theme .course-card.border-trial .course-features-list li.course-guarantee,
body.light-theme .course-card.border-trial .course-features-list li[style*="f59e0b"] {
    color: #a16207 !important;
}
body.light-theme .course-card.border-trial .price-block strong {
    color: #a16207 !important;
}
body.light-theme .course-card.border-trial .btn-copy-pitch {
    background: rgba(161, 98, 7, 0.08) !important;
    border-color: rgba(161, 98, 7, 0.2) !important;
    color: #a16207 !important;
}
body.light-theme .course-card.border-trial .btn-copy-pitch:hover {
    background: rgba(161, 98, 7, 0.15) !important;
}
body.light-theme .course-card.border-trial .btn-view-syllabus {
    color: #a16207 !important;
}

/* 9. Salon Menu Table Headers & Price Classes */
body.light-theme .salon-table th[colspan="3"]:first-child {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #2563eb !important;
}
body.light-theme .salon-table th[colspan="3"]:last-child {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
}
body.light-theme .salon-table td span[style*="ec4899"],
body.light-theme .salon-table td strong[style*="ec4899"],
body.light-theme .salon-table td div[style*="ec4899"],
body.light-theme .salon-price-best {
    color: #be185d !important;
}
body.light-theme .salon-table td span[style*="10b981"],
body.light-theme .salon-table td strong[style*="10b981"],
body.light-theme .salon-table td div[style*="10b981"],
body.light-theme .salon-price-popular {
    color: #059669 !important;
}
body.light-theme .badge-bestseller {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}
body.light-theme .badge-popular {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

/* 10. Salon Menu Calculator Card */
/* 10. Salon Menu & Calculator Light Theme Overrides */
body.light-theme .calculator-card {
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%) !important;
    border-color: rgba(236, 72, 153, 0.2) !important;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .calculator-card:hover {
    border-color: rgba(236, 72, 153, 0.35) !important;
    box-shadow: 0 12px 36px rgba(236, 72, 153, 0.12), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .calc-label {
    color: #64748b !important;
}

body.light-theme .calc-select {
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23be185d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .calc-select:hover {
    border-color: #f472b6 !important;
    background-color: #f8fafc !important;
}

body.light-theme .calc-select:focus {
    border-color: #be185d !important;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15) !important;
}

body.light-theme .calc-result-panel {
    background: #fff8fb !important;
    border-color: rgba(236, 72, 153, 0.12) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.01) !important;
}

body.light-theme .calc-result-item {
    border-bottom-color: rgba(236, 72, 153, 0.08) !important;
}

body.light-theme .calc-result-value {
    color: #0f172a !important;
}

body.light-theme .calc-price {
    background: linear-gradient(135deg, #be185d, #9d174d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

body.light-theme .btn-calc-copy {
    background: linear-gradient(135deg, #ec4899, #be185d) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3) !important;
}

body.light-theme .btn-calc-copy:hover {
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.45) !important;
}

body.light-theme .salon-tabs {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .salon-tab-btn {
    color: #64748b !important;
}

body.light-theme .salon-tab-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

body.light-theme .salon-tab-btn.active {
    background: linear-gradient(135deg, #ec4899, #be185d) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3) !important;
}

body.light-theme .salon-table-wrapper {
    background: #ffffff !important;
    border-color: rgba(236, 72, 153, 0.12) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .salon-table th {
    background: #fff8fb !important;
    color: #64748b !important;
    border-bottom-color: rgba(236, 72, 153, 0.12) !important;
}

body.light-theme .salon-table td {
    border-bottom-color: #f8fafc !important;
    color: #334155 !important;
}

body.light-theme .salon-table tr:hover td {
    background: rgba(236, 72, 153, 0.03) !important;
}

body.light-theme .salon-header-classic {
    background: rgba(59, 130, 246, 0.05) !important;
    color: #1d4ed8 !important;
    border-right-color: rgba(236, 72, 153, 0.1) !important;
    border-bottom-color: rgba(236, 72, 153, 0.1) !important;
    text-shadow: none;
}

body.light-theme .salon-header-volume {
    background: rgba(16, 185, 129, 0.05) !important;
    color: #047857 !important;
    border-bottom-color: rgba(236, 72, 153, 0.1) !important;
    text-shadow: none;
}

body.light-theme .salon-border-right {
    border-right-color: #f1f5f9 !important;
}

body.light-theme .badge-bestseller {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25) !important;
}

body.light-theme .badge-popular {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25) !important;
}

body.light-theme .salon-price-normal {
    color: #1e293b !important;
}

body.light-theme .salon-price-highlight {
    color: #be185d !important;
}

body.light-theme .salon-price-popular {
    color: #047857 !important;
}

body.light-theme .salon-price-muted {
    color: #64748b !important;
}

/* Global Color & Status Utilities */
.text-danger {
    color: #f87171 !important;
}
.text-success {
    color: #34d399 !important;
}
.text-primary {
    color: #60a5fa !important;
}
.text-warning {
    color: #fbbf24 !important;
}
.text-muted {
    color: var(--text-muted) !important;
}

.stat-value.text-warning {
    color: #fbbf24;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

/* Light Theme overrides for global color utilities */
body.light-theme .text-danger {
    color: #dc2626 !important;
}
body.light-theme .text-success {
    color: #059669 !important;
}
body.light-theme .text-primary {
    color: #2563eb !important;
}
body.light-theme .text-warning {
    color: #b45309 !important;
}
body.light-theme .stat-value.text-warning {
    color: #b45309 !important;
    text-shadow: none !important;
}

/* Model Package Line styling for Talent Assessment Modal */
.assess-sample-line {
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    padding-top: 2px;
    margin-top: 2px;
    color: #16a34a;
}
.assess-sample-line span:last-child {
    font-weight: 700;
    font-family: monospace;
}

body.light-theme .assess-sample-line {
    color: #15803d !important;
}

/* Sample Package Card & Urgency Banner dynamic styling for Talent Modal */
.assess-urgency-banner {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

.assess-sample-card {
    background: rgba(16, 185, 129, 0.04) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.2) !important;
}

.assess-sample-card.selected {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.assess-sample-btn {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1.5px solid #10b981 !important;
    color: #10b981 !important;
    background: transparent !important;
}

.assess-sample-card.selected .assess-sample-btn {
    background: #10b981 !important;
    color: #ffffff !important;
}

.assess-sample-divider {
    border-top: 1px dashed rgba(16, 185, 129, 0.3) !important;
}

/* Light theme overrides */
body.light-theme .assess-urgency-banner {
    background: #fef2f2 !important;
    border: 1px solid #fee2e2 !important;
}

body.light-theme .assess-sample-card {
    background: #f0fdf4 !important;
    border: 1.5px solid #bbf7d0 !important;
}

body.light-theme .assess-sample-card.selected {
    background: #dcfce7 !important;
    border: 2px solid #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

body.light-theme .assess-sample-divider {
    border-top: 1px dashed #86efac !important;
}

body.light-theme .assess-sample-btn {
    border: 1.5px solid #16a34a !important;
    color: #16a34a !important;
}

body.light-theme .assess-sample-card.selected .assess-sample-btn {
    background: #16a34a !important;
    color: #ffffff !important;
}

/* Custom down arrow select styles and light theme overrides */
.crm-inline-assignee {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding: 4px 24px 4px 6px !important;
    background: rgba(0,0,0,0.3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 6px center !important;
}

body.light-theme .crm-inline-assignee {
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 6px center !important;
    color: #1f2937 !important;
    border-color: #d1d5db !important;
}

#staff-role-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding-right: 32px !important;
    background: rgba(0,0,0,0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center !important;
}

body.light-theme #staff-role-select {
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center !important;
    color: #1f2937 !important;
    border-color: #d1d5db !important;
}

body.light-theme .calc-select {
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center !important;
    color: #1f2937 !important;
    border-color: #d1d5db !important;
}

/* Style for assessment selects to keep chevron down arrow in both themes */
select.assess-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding-right: 30px !important;
    background: rgba(0, 0, 0, 0.4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center !important;
}

body.light-theme select.assess-input {
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center !important;
    color: #1e293b !important;
    border-color: #e2e8f0 !important;
}

/* Style for manual lead modal select fields */
#lead-manual-form select {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding: 10px 32px 10px 12px !important;
    background: rgba(0, 0, 0, 0.4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center !important;
    cursor: pointer !important;
}

body.light-theme #lead-manual-form select {
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center !important;
    color: #1f2937 !important;
    border-color: #d1d5db !important;
}

/* CRM Filter Select Light Theme Overrides */
body.light-theme .crm-filter-select {
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center !important;
    background-size: 11px !important;
    color: #1f2937 !important;
    border-color: #d1d5db !important;
}

/* CRM Status Select Light Theme Overrides (Badge Styles) */
body.light-theme .crm-status-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 11px !important;
}

body.light-theme .crm-status-select.crm-status-new {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fca5a5 !important;
}
body.light-theme .crm-status-select.crm-status-contacted {
    background-color: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde047 !important;
}
body.light-theme .crm-status-select.crm-status-consulted {
    background-color: #eef2ff !important;
    color: #4338ca !important;
    border: 1px solid #c7d2fe !important;
}
body.light-theme .crm-status-select.crm-status-registered {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}
body.light-theme .crm-status-select.crm-status-lost {
    background-color: #f9fafb !important;
    color: #4b5563 !important;
    border: 1px solid #d1d5db !important;
}
body.light-theme .crm-status-select.crm-status-scheduled {
    background-color: #f5f3ff !important;
    color: #6d28d9 !important;
    border: 1px solid #ddd6fe !important;
}
body.light-theme .crm-status-select.crm-status-visited {
    background-color: #fdf2f8 !important;
    color: #be185d !important;
    border: 1px solid #fbcfe8 !important;
}
body.light-theme .crm-status-select.crm-status-deposited {
    background-color: #f0fdfa !important;
    color: #0f766e !important;
    border: 1px solid #99f6e4 !important;
}
body.light-theme .crm-status-select.crm-status-studied {
    background-color: #f0f9ff !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}
body.light-theme .crm-status-select.crm-status-spam {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fee2e2 !important;
    text-decoration: line-through;
    opacity: 0.6;
}
body.light-theme .crm-status-select.crm-status-unqualified {
    background-color: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fef3c7 !important;
    opacity: 0.7;
}





/* =========================================================
   GAMIFIED TALENT ASSESSMENT - Star Rating, Power Meter, Steppers
   ========================================================= */

/* --- Star Rating Cards --- */
.assess-star-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    padding: 12px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: default;
}
.assess-star-card:hover { border-color: rgba(99, 102, 241, 0.4); box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1); }
body.light-theme .assess-star-card { background: #f8fafc; border-color: #e2e8f0; }
body.light-theme .assess-star-card:hover { border-color: #a5b4fc; }
.assess-star-icon { font-size: 22px; line-height: 1; }
.assess-star-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #94a3b8; text-align: center; }
body.light-theme .assess-star-label { color: #64748b; }
.assess-star-row { display: flex; gap: 3px; margin: 2px 0; }
.assess-star { font-size: 22px; color: #334155; cursor: pointer; transition: color 0.15s, transform 0.15s; user-select: none; line-height: 1; }
body.light-theme .assess-star { color: #cbd5e1; }
.assess-star:hover, .assess-star.active { color: #f59e0b; transform: scale(1.15); }
.assess-star-card[data-stars="1"] .assess-star[data-val="1"] { color: #ef4444; }
.assess-star-card[data-stars="2"] .assess-star[data-val="1"],
.assess-star-card[data-stars="2"] .assess-star[data-val="2"] { color: #f97316; }
.assess-star-card[data-stars="3"] .assess-star[data-val="1"],
.assess-star-card[data-stars="3"] .assess-star[data-val="2"],
.assess-star-card[data-stars="3"] .assess-star[data-val="3"] { color: #eab308; }
.assess-star-card[data-stars="4"] .assess-star[data-val="1"],
.assess-star-card[data-stars="4"] .assess-star[data-val="2"],
.assess-star-card[data-stars="4"] .assess-star[data-val="3"],
.assess-star-card[data-stars="4"] .assess-star[data-val="4"] { color: #22c55e; }
.assess-star-card[data-stars="5"] .assess-star { color: #f59e0b; text-shadow: 0 0 8px rgba(245,158,11,0.6); }
.assess-star-desc { font-size: 10px; font-weight: 600; color: #64748b; text-align: center; min-height: 14px; transition: color 0.2s; }
body.light-theme .assess-star-desc { color: #94a3b8; }
.assess-star-card[data-stars="1"] .assess-star-desc { color: #ef4444; }
.assess-star-card[data-stars="2"] .assess-star-desc { color: #f97316; }
.assess-star-card[data-stars="3"] .assess-star-desc { color: #eab308; }
.assess-star-card[data-stars="4"] .assess-star-desc { color: #22c55e; }
.assess-star-card[data-stars="5"] .assess-star-desc { color: #f59e0b; font-weight: 800; }

/* --- Strands Power Meter Card --- */
.assess-strands-card {
    background: linear-gradient(135deg, rgba(15,23,42,0.8) 0%, rgba(30,27,75,0.6) 100%);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 16px;
    padding: 14px 14px 10px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}
body.light-theme .assess-strands-card { background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%); border-color: #c7d2fe; }
.assess-strands-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.assess-strands-title { font-size: 13px; font-weight: 800; color: #e2e8f0; letter-spacing: 0.3px; }
body.light-theme .assess-strands-title { color: #1e293b; }
.assess-strands-subtitle { font-size: 10px; color: #64748b; font-weight: 500; margin-top: 1px; }
body.light-theme .assess-strands-subtitle { color: #94a3b8; }
.assess-strands-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white; font-size: 13px; font-weight: 900; font-family: monospace;
    padding: 4px 12px; border-radius: 99px; white-space: nowrap;
    box-shadow: 0 2px 12px rgba(99,102,241,0.4); transition: all 0.3s;
}
.assess-strands-badge.tier-none { background: linear-gradient(135deg,#334155,#475569); box-shadow: none; }
.assess-strands-badge.tier-bronze { background: linear-gradient(135deg,#92400e,#b45309); box-shadow: 0 2px 12px rgba(180,83,9,0.4); }
.assess-strands-badge.tier-silver { background: linear-gradient(135deg,#475569,#64748b); box-shadow: 0 2px 12px rgba(100,116,139,0.4); }
.assess-strands-badge.tier-gold { background: linear-gradient(135deg,#d97706,#f59e0b); box-shadow: 0 2px 12px rgba(245,158,11,0.5); }
.assess-strands-badge.tier-genius { background: linear-gradient(135deg,#7c3aed,#f59e0b); box-shadow: 0 2px 16px rgba(124,58,237,0.6); }
.assess-power-meter-wrap { margin-bottom: 4px; }
.assess-power-meter-track {
    width: 100%; height: 10px;
    background: rgba(51,65,85,0.6); border-radius: 99px; overflow: hidden; position: relative;
}
body.light-theme .assess-power-meter-track { background: #dde3f0; }
.assess-power-fill {
    height: 100%; width: 0%; border-radius: 99px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #f59e0b 100%);
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.assess-power-fill::after {
    content: ''; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
    width: 14px; height: 14px; border-radius: 50%; background: white;
    box-shadow: 0 0 8px rgba(139,92,246,0.8);
}
.assess-power-fill.pct-0::after { display: none; }
.assess-strands-slider {
    -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
    background: rgba(71,85,105,0.5); border-radius: 99px; outline: none; cursor: pointer;
}
body.light-theme .assess-strands-slider { background: #cbd5e1; }
.assess-strands-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
    background: linear-gradient(135deg,#6366f1,#8b5cf6); cursor: pointer;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.3), 0 2px 8px rgba(99,102,241,0.4);
    transition: box-shadow 0.2s, transform 0.2s;
}
.assess-strands-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 0 5px rgba(99,102,241,0.25), 0 4px 12px rgba(99,102,241,0.5); transform: scale(1.1); }
.assess-strands-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg,#6366f1,#8b5cf6); cursor: pointer; border: none; }
.assess-strands-quickset { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; justify-content: center; }
.assess-quickset-btn {
    background: rgba(51,65,85,0.6); color: #94a3b8; border: 1px solid rgba(99,102,241,0.15);
    border-radius: 8px; font-size: 11px; font-weight: 700; font-family: monospace;
    padding: 3px 9px; cursor: pointer; transition: all 0.15s; min-width: 32px;
}
body.light-theme .assess-quickset-btn { background: white; color: #475569; border-color: #e2e8f0; }
.assess-quickset-btn:hover { background: rgba(99,102,241,0.2); color: #a5b4fc; border-color: rgba(99,102,241,0.4); transform: translateY(-1px); }
body.light-theme .assess-quickset-btn:hover { background: #eff0ff; color: #4f46e5; border-color: #a5b4fc; }
.assess-quickset-btn.active { background: linear-gradient(135deg,#6366f1,#8b5cf6); color: white; border-color: transparent; box-shadow: 0 2px 8px rgba(99,102,241,0.4); }

/* --- Error Steppers --- */
.assess-errors-section {
    background: rgba(15,23,42,0.4); border: 1px solid rgba(71,85,105,0.3);
    border-radius: 14px; padding: 10px 12px 12px;
    margin-top: 12px;
}
body.light-theme .assess-errors-section { background: #f8fafc; border-color: #e2e8f0; }
.assess-errors-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.assess-errors-title { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
body.light-theme .assess-errors-title { color: #64748b; }
.assess-errors-total { font-size: 11px; font-weight: 700; color: #64748b; background: rgba(51,65,85,0.5); padding: 2px 10px; border-radius: 99px; transition: all 0.3s; }
body.light-theme .assess-errors-total { background: #e2e8f0; color: #475569; }
.assess-errors-total.has-errors { background: rgba(239,68,68,0.15); color: #f87171; }
body.light-theme .assess-errors-total.has-errors { background: #fee2e2; color: #dc2626; }
.assess-errors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.assess-err-item {
    background: rgba(30, 41, 59, 0.45); border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px; padding: 10px 12px;
    display: flex; align-items: center; gap: 10px; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
}
body.light-theme .assess-err-item { background: white; border-color: #e2e8f0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02); }
.assess-err-item:hover { border-color: rgba(99, 102, 241, 0.3); background: rgba(30, 41, 59, 0.6); transform: translateY(-1px); }
body.light-theme .assess-err-item:hover { border-color: #cbd5e1; background: #f8fafc; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); }
.assess-err-item.has-errors { background: rgba(239, 68, 68, 0.06); border-color: rgba(239, 68, 68, 0.35); box-shadow: 0 0 12px rgba(239, 68, 68, 0.08); }
body.light-theme .assess-err-item.has-errors { background: #fff5f5; border-color: #fca5a5; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.05); }
.assess-err-icon-badge {
    width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 16px; background: rgba(148, 163, 184, 0.1); border: 1px solid rgba(148, 163, 184, 0.08);
    transition: all 0.25s ease; flex-shrink: 0;
}
body.light-theme .assess-err-icon-badge { background: #f1f5f9; border-color: #e2e8f0; }
.assess-err-item.has-errors .assess-err-icon-badge { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.25); transform: scale(1.05); }
body.light-theme .assess-err-item.has-errors .assess-err-icon-badge { background: #ffebeb; border-color: #fecaca; }
.assess-err-info { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.assess-err-name { font-size: 11px; font-weight: 700; color: #e2e8f0; letter-spacing: 0.3px; white-space: nowrap; }
body.light-theme .assess-err-name { color: #334155; }
.assess-err-desc { font-size: 9px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.light-theme .assess-err-desc { color: #64748b; }
.assess-err-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.assess-err-btn {
    width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(30, 41, 59, 0.5); color: #94a3b8; font-size: 14px; font-weight: 600; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); user-select: none;
}
body.light-theme .assess-err-btn { background: #f8fafc; border-color: #cbd5e1; color: #475569; }
.assess-err-btn:hover { background: rgba(99, 102, 241, 0.15); border-color: rgba(99, 102, 241, 0.4); color: #a5b4fc; transform: scale(1.1); }
body.light-theme .assess-err-btn:hover { background: #eff0ff; border-color: #818cf8; color: #4f46e5; }
.assess-err-btn:active { transform: scale(0.95); }
.assess-err-minus:hover { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); color: #f87171; }
body.light-theme .assess-err-minus:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }
.assess-err-plus:hover { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.4); color: #4ade80; }
body.light-theme .assess-err-plus:hover { background: #f0fdf4; border-color: #bbf7d0; color: #16a34a; }
.assess-err-display { font-size: 16px; font-weight: 800; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; color: #94a3b8; min-width: 16px; text-align: center; transition: all 0.2s ease; }
body.light-theme .assess-err-display { color: #64748b; }
.assess-err-item.has-errors .assess-err-display { color: #f87171; font-size: 18px; }
body.light-theme .assess-err-item.has-errors .assess-err-display { color: #dc2626; }

/* Animations */
@keyframes geniusPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(245,158,11,0.3), 0 4px 20px rgba(245,158,11,0.2); }
    50% { box-shadow: 0 0 0 6px rgba(245,158,11,0.15), 0 4px 30px rgba(245,158,11,0.4); }
}
@keyframes starBurst {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1.15); }
}
.assess-star.burst { animation: starBurst 0.3s ease-out forwards; }
.assess-strands-card.tier-genius { animation: geniusPulse 2s ease-in-out infinite; border-color: rgba(245,158,11,0.4); }

/* =========================================================
   STRANDS SLIDER v2 — Unified integrated fill + milestone flags
   ========================================================= */

/* Wrapper holds milestones above + slider below, padded for thumb overhang */
.assess-slider-wrap {
    padding: 4px 10px 4px;
    position: relative;
}

/* Milestone flags row — sits above the slider */
.assess-milestones-row {
    position: relative;
    width: 100%;
    height: 94px; /* Even taller to fully clear staggered milestone cards overlap */
    margin-bottom: 4px;
}

/* Each milestone flag rendered by JS */
.assess-milestone-flag {
    position: absolute;
    bottom: -6px; /* Points exactly to the slider track */
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 10;
    transition: bottom 0.3s ease;
}

/* Floating badge card with modern glassmorphism */
.assess-milestone-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 9999px;
    border: 1px dashed rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    color: #94a3b8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

body.dark-theme .assess-milestone-badge {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.15);
    color: #64748b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Active states when reached */
.assess-milestone-flag.is-reached .assess-milestone-badge {
    border-style: solid;
    transform: translateY(-2px);
}

/* Khá (Slate/Silver) */
.assess-milestone-flag.is-reached.tier-kha .assess-milestone-badge {
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(148, 163, 184, 0.4);
    color: #334155;
    box-shadow: 0 4px 10px rgba(148, 163, 184, 0.15);
}
body.dark-theme .assess-milestone-flag.is-reached.tier-kha .assess-milestone-badge {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(148, 163, 184, 0.3);
    color: #f1f5f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Giỏi (Emerald) */
.assess-milestone-flag.is-reached.tier-gioi .assess-milestone-badge {
    background: rgba(236, 253, 245, 0.95);
    border-color: rgba(16, 185, 129, 0.4);
    color: #047857;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2), 0 0 0 1px rgba(16, 185, 129, 0.05);
    animation: badge-pulse-emerald 2.5s infinite ease-in-out;
}
body.dark-theme .assess-milestone-flag.is-reached.tier-gioi .assess-milestone-badge {
    background: rgba(6, 78, 59, 0.9);
    border-color: rgba(16, 185, 129, 0.5);
    color: #a7f3d0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3), 0 0 0 1px rgba(16, 185, 129, 0.1);
}

/* Xuất sắc (Amber/Gold) */
.assess-milestone-flag.is-reached.tier-xuat-sac .assess-milestone-badge {
    background: rgba(254, 253, 242, 0.95);
    border-color: rgba(245, 158, 11, 0.4);
    color: #b45309;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25), 0 0 0 1px rgba(245, 158, 11, 0.05);
    animation: badge-pulse-amber 2.5s infinite ease-in-out;
}
body.dark-theme .assess-milestone-flag.is-reached.tier-xuat-sac .assess-milestone-badge {
    background: rgba(120, 53, 4, 0.9);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fde68a;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35), 0 0 0 1px rgba(245, 158, 11, 0.1);
}

/* Pointer pin line and dot */
.assess-milestone-pin-line {
    width: 2px;
    height: 8px; /* Default height for Khá */
    background: rgba(148, 163, 184, 0.2);
    transition: all 0.3s;
}
.tier-gioi .assess-milestone-pin-line {
    height: 34px; /* Significantly elevated for Giỏi to fully clear Khá card vertically */
}
.tier-xuat-sac .assess-milestone-pin-line {
    height: 60px; /* Highly elevated for Xuất sắc (VIP stacked look) */
}

.assess-milestone-flag.is-reached .assess-milestone-pin-line {
    background: currentColor;
}

.assess-milestone-pin-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.3);
    margin-top: -3px;
    transition: all 0.3s;
}
.assess-milestone-flag.is-reached .assess-milestone-pin-dot {
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
}

/* Pulse keyframes for glowing effects */
@keyframes badge-pulse-emerald {
    0%, 100% { box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35); }
}
@keyframes badge-pulse-amber {
    0%, 100% { box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25); }
    50% { box-shadow: 0 4px 22px rgba(245, 158, 11, 0.45); }
}

/* Integrated slider — fill shown via JS background gradient */
.assess-strands-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 99px;
    outline: none;
    cursor: pointer;
    background: rgba(71, 85, 105, 0.5); /* overridden by JS inline style */
    transition: background 0.3s ease;
}
body.light-theme .assess-strands-slider {
    background: #e2e8f0;
}

.assess-strands-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5),
                0 2px 10px rgba(0,0,0,0.25);
    transition: box-shadow 0.2s, transform 0.15s;
    border: none;
}
.assess-strands-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.3),
                0 4px 14px rgba(0,0,0,0.3);
    transform: scale(1.12);
}
.assess-strands-slider:active::-webkit-slider-thumb {
    transform: scale(0.95);
    box-shadow: 0 0 0 7px rgba(99, 102, 241, 0.2),
                0 2px 8px rgba(0,0,0,0.2);
}

.assess-strands-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5), 0 2px 10px rgba(0,0,0,0.25);
}

/* Remove old separate power meter elements */
.assess-power-meter-wrap { display: none !important; }
.assess-strands-quickset { display: none !important; }

/* Track must be transparent so element's own background shows through */
.assess-strands-slider::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 99px;
    background: transparent;
}
.assess-strands-slider::-moz-range-track {
    height: 8px;
    border-radius: 99px;
    background: transparent;
}

/* =========================================================
   STRANDS SLIDER v3 — Custom visual track stacked under thumb-only slider
   ========================================================= */

/* Stack wrapper */
.assess-track-stack {
    position: relative;
    height: 22px; /* height of thumb */
    display: flex;
    align-items: center;
}

/* Visual track: custom gradient background div */
.assess-track-bg {
    position: absolute;
    left: 0; right: 0;
    height: 8px;
    border-radius: 99px;
    background: rgba(71, 85, 105, 0.45);
    overflow: hidden;
    pointer-events: none;
}
body.light-theme .assess-track-bg {
    background: #dde3f0;
}

/* Fill portion — width set by JS */
.assess-track-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #f59e0b 100%);
    transition: width 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease;
}

/* Slider: opacity 0 so it's invisible but still draggable; sits on top of visual track */
.assess-strands-slider {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    left: 0; right: 0;
    width: 100%;
    height: 22px;
    opacity: 0;          /* invisible — but pointer-events work! */
    cursor: pointer;
    outline: none;
    margin: 0;
    padding: 0;
    z-index: 2;          /* must be above the visual thumb pseudo-element */
}

/* Visual thumb — rendered as ::after on the track-stack, positioned by JS */
.assess-track-stack::after {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--thumb-left, 0%);
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5), 0 2px 10px rgba(0,0,0,0.25);
    pointer-events: none;   /* pass clicks through to slider */
    z-index: 1;
    transition: left 0.15s ease, box-shadow 0.2s, transform 0.15s;
}
.assess-track-stack:has(.assess-strands-slider:active)::after {
    transform: translate(-50%, -50%) scale(0.92);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.2), 0 2px 8px rgba(0,0,0,0.2);
}

/* =========================================================
   SALES COURSE CARDS — Section 3 redesign
   ========================================================= */

/* Recommend label above cards */
.sales-recommend-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: #a855f7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.15);
}
body.light-theme .sales-recommend-label {
    background: rgba(168, 85, 247, 0.05);
    color: #7c3aed;
}
.sales-recommend-icon {
    font-size: 12px;
}

/* Cards grid: 2 columns on small, 3 on wider */
.sales-course-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 4px;
}

/* Individual card */
.sales-course-card {
    position: relative;
    border-radius: 12px;
    padding: 10px 10px 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(71, 85, 105, 0.15);
    background: rgba(30, 41, 59, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    user-select: none;
}
body.light-theme .sales-course-card {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(100, 116, 139, 0.2);
}
.sales-course-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    background: rgba(99, 102, 241, 0.08);
}

/* ACTIVE (selected) state */
.sales-course-card.is-selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15),
                0 4px 14px rgba(99, 102, 241, 0.2);
}
.sales-course-card.is-selected::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 10px;
    font-weight: 900;
    color: #6366f1;
}
body.light-theme .sales-course-card.is-selected {
    border-color: #4f46e5;
    background: rgba(99, 102, 241, 0.08);
}

/* RECOMMENDED badge */
.sales-card-badges {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    z-index: 1;
}
.sales-badge-recommend {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 99px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    color: white;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 2px 12px rgba(245, 158, 11, 0.7); }
}

/* Combo card — bigger, spans 2 cols on first row */
.sales-card-combo {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 12px 14px;
}
.sales-card-combo .sales-card-icon { font-size: 24px; flex-shrink: 0; }
.sales-card-combo .sales-card-name { font-size: 12px; }
.sales-card-combo .sales-card-pricing { margin-left: auto; text-align: right; }
.sales-card-combo .sales-card-badges { left: 12px; transform: none; }

/* Non-combo cards */
.sales-card-icon {
    font-size: 20px;
    line-height: 1;
}
.sales-card-name {
    font-size: 11px;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.2;
}
body.light-theme .sales-card-name { color: #1e293b; }

.sales-card-sub {
    font-size: 9px;
    color: rgba(148, 163, 184, 0.7);
    line-height: 1.3;
}
body.light-theme .sales-card-sub { color: #64748b; }

/* Pricing inside card */
.sales-card-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4px;
    gap: 1px;
}
.sales-card-combo .sales-card-pricing { align-items: flex-end; margin-top: 0; }

.sales-price-original {
    font-size: 9px;
    color: rgba(148, 163, 184, 0.5);
    text-decoration: line-through;
    font-family: monospace;
}
.sales-price-final {
    font-size: 12px;
    font-weight: 900;
    color: #34d399;
    font-family: monospace;
    line-height: 1;
}
.sales-card-combo .sales-price-final { font-size: 14px; color: #fbbf24; }

/* Savings badge inside card */
.sales-card-save {
    font-size: 8px;
    font-weight: 700;
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
    margin-top: 2px;
}
body.light-theme .sales-card-save { color: #059669; background: rgba(5, 150, 105, 0.08); }

/* Genius rank — highlight combo with gold */
.sales-card-combo.is-recommended-genius {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

/* =========================================================
   COURSE CARDS — Reward/Unlock animations
   ========================================================= */

/* Shine sweep on newly selected card */
@keyframes card-shine {
    0%   { background-position: -200% center; }
    100% { background-position: 300% center; }
}
.sales-course-card.is-selected {
    animation: card-glow-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes card-glow-in {
    0%   { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); transform: scale(0.97); }
    60%  { box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.3); transform: scale(1.02); }
    100% { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 4px 14px rgba(99, 102, 241, 0.2); transform: scale(1); }
}

/* Combo card recommended genius — gold glow pulse */
.sales-card-combo.is-recommended-genius {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(239, 68, 68, 0.05) 100%);
    animation: genius-glow 2.5s ease-in-out infinite;
}
@keyframes genius-glow {
    0%, 100% { box-shadow: 0 0 0 2px rgba(245,158,11,0.3), 0 4px 20px rgba(245,158,11,0.1); }
    50%       { box-shadow: 0 0 0 4px rgba(245,158,11,0.5), 0 8px 30px rgba(245,158,11,0.25); }
}

/* Badge entrance animation */
.sales-badge-recommend:not(.hidden) {
    animation: badge-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes badge-pop {
    0%   { transform: scale(0) translateX(-50%); opacity: 0; }
    70%  { transform: scale(1.15) translateX(-50%); opacity: 1; }
    100% { transform: scale(1) translateX(-50%); opacity: 1; }
}

/* Non-combo badge position fix */
.sales-course-card:not(.sales-card-combo) .sales-badge-recommend:not(.hidden) {
    animation: badge-pop-center 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes badge-pop-center {
    0%   { transform: scale(0) translateX(-50%); opacity: 0; }
    70%  { transform: scale(1.15) translateX(-50%); opacity: 1; }
    100% { transform: scale(1) translateX(-50%); opacity: 1; }
}

/* Savings text color by rank */
.sales-card-save {
    transition: all 0.3s ease;
}

/* Price update flash */
@keyframes price-flash {
    0%   { color: #fbbf24; transform: scale(1.1); }
    100% { color: inherit; transform: scale(1); }
}
.sales-price-final.updated {
    animation: price-flash 0.5s ease forwards;
}

/* Recommend label animation */
.sales-recommend-label {
    transition: all 0.3s ease;
}
#assess-course-recommend-text {
    transition: all 0.2s ease;
}

/* Disabled/greyed non-recommended cards when genius selected */
.sales-course-grid.show-genius-focus .sales-course-card:not(.sales-card-combo):not(.is-selected) {
    opacity: 0.55;
    filter: saturate(0.5);
}

/* =========================================================
   MULTI-SELECT — Total bar & combo upgrade hint
   ========================================================= */

/* Total summary bar — appears when 2+ individual courses selected */
.sales-multi-total {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    margin-top: 6px;
    animation: fade-in-up 0.25s ease forwards;
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
body.light-theme .sales-multi-total {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}
.sales-multi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sales-multi-courses {
    font-size: 11px;
    font-weight: 700;
    color: #c7d2fe;
}
body.light-theme .sales-multi-courses { color: #4f46e5; }

.sales-multi-price {
    font-size: 15px;
    font-weight: 900;
    color: #34d399;
    font-family: monospace;
}
body.light-theme .sales-multi-price { color: #059669; }

.sales-multi-savings {
    font-size: 10px;
    color: #f59e0b;
    font-weight: 600;
}

/* Combo upgrade hint — actionable banner */
.sales-combo-hint {
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed rgba(245, 158, 11, 0.4);
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, border-color 0.2s;
    animation: fade-in-up 0.25s ease forwards;
}
.sales-combo-hint:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.7);
}
body.light-theme .sales-combo-hint { color: #d97706; background: rgba(245, 158, 11, 0.06); }

/* Card: show checkmark indicator when selected in multi-mode */
.sales-course-card.is-selected:not(.sales-card-combo)::before {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 7px;
    font-size: 10px;
    font-weight: 900;
    color: #6366f1;
    background: rgba(99,102,241,0.12);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 16px;
    text-align: center;
}

/* Non-genius state: restore opacity of individual cards */
.sales-course-grid:not(.show-genius-focus) .sales-course-card {
    opacity: 1;
    filter: none;
}

/* =========================================================
   SALES CARDS — Full-width single-column layout override
   ========================================================= */

/* Grid → 1 col */
.sales-course-grid {
    grid-template-columns: 1fr !important;
}

/* All cards → horizontal row layout */
.sales-course-card {
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 10px !important;
    padding: 10px 12px !important;
}

/* Remove combo span-2 (no longer needed in 1-col) */
.sales-card-combo {
    grid-column: span 1 !important;
}

/* Icon: fixed width */
.sales-card-icon {
    font-size: 22px !important;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

/* Info block (name + sub) */
.sales-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Name line */
.sales-card-name {
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2;
}

/* English subtitle in muted */
.sales-card-en {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.5;
}

/* Sub description */
.sales-card-sub {
    font-size: 9px !important;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pricing block — right side */
.sales-course-card .sales-card-pricing {
    flex-shrink: 0;
    align-items: flex-end !important;
    text-align: right;
    margin-top: 0 !important;
}

/* Combo card price: slightly bigger */
.sales-card-combo .sales-price-final {
    font-size: 14px !important;
    color: #fbbf24 !important;
}

/* Badge position fix for single-col horizontal cards */
.sales-card-badges {
    position: absolute;
    top: -8px;
    left: 10px;
    transform: none !important;
}
.sales-badge-recommend:not(.hidden) {
    animation: badge-pop-left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}
@keyframes badge-pop-left {
    0%   { transform: scale(0); opacity: 0; }
    70%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Checkmark for selected — keep top-right */
.sales-course-card.is-selected::after {
    top: 8px !important;
    right: 10px !important;
}
.sales-course-card.is-selected:not(.sales-card-combo)::before {
    content: none !important; /* use ::after only */
}

/* =========================================================
   Full-name layout: VI main + EN brand on second line
   ========================================================= */
.sales-card-name {
    white-space: normal !important;   /* allow wrap */
    line-height: 1.3 !important;
}
.sales-card-en {
    display: block;
    font-size: 9px !important;
    font-weight: 500;
    opacity: 0.45;
    margin-top: 1px;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Sub-description: allow 2 lines */
.sales-card-sub {
    white-space: normal !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Slightly taller cards to fit full names */
.sales-course-card {
    padding: 10px 12px !important;
    min-height: 60px;
    align-items: flex-start !important;
}
.sales-course-card .sales-card-icon {
    margin-top: 4px;
}

/* =========================================================
   SAMPLE PACKAGE — Inline addon below selected course card
   ========================================================= */
.assess-sample-addon {
    margin: -4px 0 4px 16px;           /* indent to show it's attached to card above */
    padding: 8px 12px;
    border-radius: 0 0 10px 10px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-top: none;                   /* seamless merge with the card above */
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
    animation: fade-in-up 0.2s ease forwards;
}
.assess-sample-addon::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: #10b981;
    border-radius: 0 0 0 10px;
}
.assess-sample-addon:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
}
body.light-theme .assess-sample-addon {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.assess-sample-addon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.assess-sample-addon-label {
    font-size: 10px;
    font-weight: 800;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.assess-sample-course-tag {
    font-size: 9px;
    font-weight: 700;
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
    padding: 1px 6px;
    border-radius: 99px;
}
body.light-theme .assess-sample-course-tag { color: #065f46; }

.assess-sample-addon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: rgba(148, 163, 184, 0.9);
    padding: 1px 0;
}
body.light-theme .assess-sample-addon-row { color: #64748b; }

.assess-sample-val {
    font-weight: 700;
    color: #e2e8f0;
}
body.light-theme .assess-sample-val { color: #1e293b; }

.assess-sample-savings-row {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed rgba(16, 185, 129, 0.2);
}

/* =========================================================
   Per-card Sample Addon — sits inside card, below pricing
   ========================================================= */

/* Card becomes flex-col to stack content + addon */
.sales-course-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
}

/* Main card row: icon + info + pricing — still horizontal */
.sales-card-inner-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    min-height: 60px;
}

/* Addon section inside card */
.sales-card-sample-addon {
    margin: 0;
    padding: 0 12px !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    border: none !important;
    border-top: 0px dashed rgba(16, 185, 129, 0.25) !important;
    background: rgba(16, 185, 129, 0.04);
    border-radius: 0 0 12px 12px;
    cursor: pointer;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                padding 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-top-width 0.25s ease,
                background 0.18s;
    position: relative;
}
.sales-card-sample-addon::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: #10b981;
    border-radius: 0 0 0 12px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.sales-card-sample-addon.expanded {
    max-height: 200px !important;
    opacity: 1 !important;
    padding: 8px 12px 10px 12px !important;
    border-top: 1px dashed rgba(16, 185, 129, 0.25) !important;
}
.sales-card-sample-addon.expanded::before {
    opacity: 1;
}
.sales-card-sample-addon:hover {
    background: rgba(16, 185, 129, 0.09);
}
.sales-card-sample-addon.sample-addon-chosen {
    background: rgba(16, 185, 129, 0.13);
}
body.light-theme .sales-card-sample-addon {
    background: rgba(16, 185, 129, 0.04);
}
body.light-theme .sales-card-sample-addon.sample-addon-chosen {
    background: rgba(16, 185, 129, 0.09);
}

/* ==========================================================================
   PREMIUM REWARD VOUCHER & TICKET DESIGN
   ========================================================================== */

/* Overwrite default rank badge container to look like a premium card */
.rank-badge-glow {
    position: relative;
    overflow: hidden;
    border-radius: 16px !important;
    padding: 18px 14px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-width: 2px !important;
}

/* Shine Sweep Animation */
.rank-shine-effect {
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shineSweep 4.5s infinite ease-in-out;
    pointer-events: none;
    z-index: 5;
}

@keyframes shineSweep {
    0% { left: -150%; }
    40% { left: 150%; }
    100% { left: 150%; }
}

/* Premium Colors and Shadows for Dark Mode Ranks */
.rank-glow-genius {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(245, 158, 11, 0.16) 100%) !important;
    border-color: rgba(245, 158, 11, 0.65) !important;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25), inset 0 0 20px rgba(245, 158, 11, 0.1) !important;
}
.rank-glow-star {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.08) 0%, rgba(16, 185, 129, 0.16) 100%) !important;
    border-color: rgba(16, 185, 129, 0.65) !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25), inset 0 0 20px rgba(16, 185, 129, 0.1) !important;
}
.rank-glow-qualified {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(59, 130, 246, 0.16) 100%) !important;
    border-color: rgba(59, 130, 246, 0.65) !important;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25), inset 0 0 20px rgba(59, 130, 246, 0.1) !important;
}
.rank-glow-level3 {
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.08) 0%, rgba(113, 113, 122, 0.16) 100%) !important;
    border-color: rgba(113, 113, 122, 0.5) !important;
    box-shadow: 0 8px 24px rgba(113, 113, 122, 0.15) !important;
}
.rank-glow-unqualified {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.05) 0%, rgba(239, 68, 68, 0.12) 100%) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15) !important;
}

/* Light Theme updates */
body.light-theme .rank-glow-genius {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-color: #fcd34d !important;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.2) !important;
}
body.light-theme .rank-glow-star {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border-color: #6ee7b7 !important;
    box-shadow: 0 10px 25px rgba(52, 211, 153, 0.2) !important;
}
body.light-theme .rank-glow-qualified {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-color: #93c5fd !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2) !important;
}
body.light-theme .rank-glow-level3 {
    background: linear-gradient(135deg, #f4f4f5 0%, #e4e4e7 100%) !important;
    border-color: #d4d4d8 !important;
    box-shadow: none !important;
}
body.light-theme .rank-glow-unqualified {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    border-color: #fca5a5 !important;
    box-shadow: none !important;
}

/* Coupon/Ticket cutouts box styling */
.reward-ticket-box {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s ease;
}
body.light-theme .reward-ticket-box {
    background: #ffffff !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08) !important;
}

/* Adjust ticket borders dynamically based on rank */
.rank-glow-genius .reward-ticket-box {
    border-color: rgba(245, 158, 11, 0.35) !important;
}
.rank-glow-darkangel .reward-ticket-box {
    border-color: rgba(168, 85, 247, 0.35) !important;
}
.rank-glow-unqualified .reward-ticket-box {
    border-color: rgba(239, 68, 68, 0.3) !important;
}
body.light-theme .rank-glow-genius .reward-ticket-box {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08) !important;
}
body.light-theme .rank-glow-darkangel .reward-ticket-box {
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.08) !important;
}
body.light-theme .rank-glow-unqualified .reward-ticket-box {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05) !important;
}

/* Premium Colors and Shadows for Dark Mode Ranks */
.rank-glow-darkangel {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.08) 0%, rgba(88, 28, 135, 0.16) 100%) !important;
    border-color: rgba(147, 51, 234, 0.65) !important;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.25), inset 0 0 20px rgba(147, 51, 234, 0.1) !important;
}

/* Light Theme updates */
body.light-theme .rank-glow-darkangel {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%) !important;
    border-color: #d8b4fe !important;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.2) !important;
}
body.light-theme .rank-glow-darkangel #assess-result-rank {
    color: #7e22ce !important;
}

/* Badge and Card styling for Dark Angel */
@keyframes darkangelPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(168,85,247,0.3), 0 4px 20px rgba(168,85,247,0.2); }
    50% { box-shadow: 0 0 0 6px rgba(168,85,247,0.15), 0 4px 30px rgba(168,85,247,0.4); }
}
.assess-strands-card.tier-darkangel { animation: darkangelPulse 2s ease-in-out infinite; border-color: rgba(168,85,247,0.4); }
.assess-strands-badge.tier-darkangel { background: linear-gradient(135deg,#7c3aed,#db2777); box-shadow: 0 2px 16px rgba(168,85,247,0.6); }

/* Collapsed Sidebar states */
body.sidebar-collapsed {
    --sidebar-width: 72px; /* Narrower for sleek SaaS look */
}

body.sidebar-collapsed .brand {
    justify-content: center;
    padding: 24px 0;
}

body.sidebar-collapsed .brand-info {
    opacity: 0;
    max-width: 0;
    margin-left: 0;
    pointer-events: none;
}

body.sidebar-collapsed .logo-container {
    justify-content: center;
    width: 100%;
}

body.sidebar-collapsed .nav-menu {
    padding: 20px 8px;
    align-items: center;
}

body.sidebar-collapsed .nav-btn {
    justify-content: center;
    padding: 10px 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    gap: 0;
    margin: 0 auto;
}

body.sidebar-collapsed .nav-btn:hover {
    transform: none; /* disable horizontal hover shift when collapsed */
    background-color: rgba(255, 255, 255, 0.05);
}

body.sidebar-collapsed .nav-btn.active {
    background-color: rgba(59, 130, 246, 0.12);
}

body.sidebar-collapsed .nav-btn.active::before {
    top: 15%;
    bottom: 15%;
    width: 3px;
    left: -8px; /* place on the left edge of the sidebar padding */
}

body.sidebar-collapsed .nav-btn span:not(.nav-icon) {
    display: none;
}

body.sidebar-collapsed .sidebar-footer {
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

body.sidebar-collapsed .sidebar-footer > div:first-child {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
    justify-content: center !important;
}

body.sidebar-collapsed .system-status {
    justify-content: center;
    width: 100%;
}

body.sidebar-collapsed .system-status span:not(.status-indicator) {
    display: none;
}

body.sidebar-collapsed #btn-toggle-theme {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    border-color: var(--border-color);
}

body.sidebar-collapsed #btn-toggle-theme #theme-toggle-text {
    display: none;
}

body.sidebar-collapsed .user-profile-section {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center !important;
    padding-top: 12px;
    width: 100%;
}

body.sidebar-collapsed .user-profile-info {
    justify-content: center;
    width: 100%;
}

body.sidebar-collapsed #user-email-display {
    display: none;
}

body.sidebar-collapsed .btn-toggle-sidebar svg {
    transform: rotate(180deg);
}

/* Light Theme Overrides for Toggle Sidebar Button */
body.light-theme .btn-toggle-sidebar {
    border-color: #d1d5db !important;
    color: #4b5563 !important;
}

body.light-theme .btn-toggle-sidebar:hover {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
    border-color: #9ca3af !important;
}

/* --- User Initials Avatar Styles --- */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.user-avatar:hover {
    transform: scale(1.05);
}

body.light-theme .user-avatar {
    border-color: rgba(0, 0, 0, 0.05);
}

.user-profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.btn-sign-out {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-sign-out:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* --- Pure CSS Tooltips for Collapsed Sidebar --- */
body.sidebar-collapsed [data-tooltip] {
    position: relative;
}

body.sidebar-collapsed [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #0f172a;
    color: #f1f5f9;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1200;
}

body.sidebar-collapsed [data-tooltip]:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(16px);
}

/* Light Theme overrides for tooltips */
body.sidebar-collapsed.light-theme [data-tooltip]::after,
body.light-theme.sidebar-collapsed [data-tooltip]::after {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* --- Course Configuration Redesign Styles --- */
.courses-container {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.courses-title-section {
    margin-bottom: 28px;
}

.courses-title-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-header);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.courses-title-section p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.config-section-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.config-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.config-card-header svg {
    color: var(--primary);
    flex-shrink: 0;
}

.config-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-header);
    margin: 0;
}

.config-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Grid Layout for Campaign Config */
.campaign-config-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 1024px) {
    .campaign-config-grid {
        grid-template-columns: 380px 1fr;
    }
}

.config-form-pane {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.config-form-pane h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--text-header);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

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

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

.form-item label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-stack);
    font-size: 0.88rem;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Tiered Level Grid */
.config-levels-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.01);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.level-row {
    display: grid;
    grid-template-columns: 105px 1fr 1fr;
    gap: 8px;
    align-items: center;
}

.badge-level {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.badge-level.darkangel {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.badge-level.genius {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-level.star {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-level.level3 {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Modern Tables styling */
.modern-table-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
}

.modern-table th {
    padding: 12px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.modern-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    vertical-align: middle;
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

.modern-table tbody tr {
    transition: background-color 0.2s;
}

.modern-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Status Pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-pill.running {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pill.running::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: status-pulse-green 1.5s infinite;
}

.status-pill.inactive {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

@keyframes status-pulse-green {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

/* Action buttons */
.btn-action {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-action-edit {
    background: rgba(59, 130, 246, 0.08);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-action-edit:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-action-delete {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-action-delete:hover {
    background: var(--danger);
    color: #ffffff;
    border-color: var(--danger);
}

.btn-action-activate {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-action-activate:hover {
    background: var(--success);
    color: #ffffff;
    border-color: var(--success);
}

/* Course Prices Table Redesign */
.course-pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.course-pricing-header {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 0.7fr;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.course-pricing-header-col {
    padding: 12px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.course-pricing-row {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 0.7fr;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: background-color 0.2s;
}

.course-pricing-row:last-child {
    border-bottom: none;
}

.course-pricing-row:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.course-pricing-name-col {
    padding: 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-header);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.course-pricing-input-col {
    padding: 8px 12px;
    display: flex;
    justify-content: center;
}

.course-price-input {
    width: 100%;
    max-width: 140px;
    padding: 8px 10px;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-family: monospace;
    font-weight: bold;
    text-align: right;
    outline: none;
    transition: all 0.2s;
}

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

.course-price-input.promo-accent {
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.25);
    background: rgba(168, 85, 247, 0.03);
}

.course-price-input.promo-accent:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25);
}

.course-sessions-input {
    width: 70px;
    padding: 8px;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    color: #34d399;
    font-family: monospace;
    font-weight: bold;
    text-align: center;
    outline: none;
    transition: all 0.2s;
}

.course-sessions-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Discovery Config Grid */
.discovery-two-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 1024px) {
    .discovery-two-cols {
        grid-template-columns: 1.2fr 1fr;
    }
}

.discovery-col-title {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.discovery-col-title.success-theme {
    color: var(--success);
}

.discovery-tiers-grid {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.discovery-tiers-header {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}

.discovery-tier-label {
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.discovery-tier-input {
    padding: 8px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: monospace;
    font-weight: bold;
    text-align: center;
    width: 100%;
    outline: none;
    transition: all 0.2s;
}

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

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

.tool-param-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
}

.tool-param-card label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.tool-param-input {
    width: 100%;
    padding: 8px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-family: monospace;
    font-weight: bold;
    text-align: center;
    outline: none;
    transition: all 0.2s;
}

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

/* Premium Course Marketing Cards */
.premium-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.premium-course-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.premium-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

.course-card-tag {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px 16px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    color: #ffffff;
}

.course-card-tag.basic { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.course-card-tag.advanced { background: linear-gradient(90deg, #10b981, #34d399); }
.course-card-tag.fan { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.course-card-tag.design { background: linear-gradient(90deg, #ec4899, #f472b6); }
.course-card-tag.combo { background: linear-gradient(90deg, #a855f7, #c084fc); }

.premium-course-card.border-basic { border-top: 4px solid #3b82f6; }
.premium-course-card.border-advanced { border-top: 4px solid #10b981; }
.premium-course-card.border-fan { border-top: 4px solid #f59e0b; }
.premium-course-card.border-design { border-top: 4px solid #ec4899; }
.premium-course-card.border-combo { border-top: 4px solid #a855f7; }

.premium-course-body {
    padding: 28px 24px 20px;
}

.premium-course-body h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-header);
    margin-top: 12px;
    margin-bottom: 4px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.premium-course-subtitle {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.premium-course-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.premium-course-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.premium-course-features li {
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-main);
}

.premium-course-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.premium-course-features li.guarantee-item {
    color: #60a5fa;
    font-weight: 600;
    border-top: 1px dashed rgba(59, 130, 246, 0.2);
    padding-top: 8px;
    margin-top: 8px;
}

.premium-course-footer {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.premium-course-price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-course-price-val {
    font-size: 1.2rem;
    font-weight: 800;
}

/* Light Theme Contrast Overrides for Course tab elements */
body.light-theme .config-section-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.light-theme .form-input,
body.light-theme .course-price-input,
body.light-theme .course-sessions-input,
body.light-theme .discovery-tier-input,
body.light-theme .tool-param-input {
    background: #ffffff;
    border-color: #d1d5db;
    color: #1f2937;
}

body.light-theme .form-input:focus,
body.light-theme .course-price-input:focus,
body.light-theme .course-sessions-input:focus,
body.light-theme .discovery-tier-input:focus,
body.light-theme .tool-param-input:focus {
    background: #ffffff;
    border-color: var(--primary);
}

body.light-theme .badge-level.darkangel {
    background: rgba(147, 51, 234, 0.08);
    color: #7e22ce;
    border-color: rgba(147, 51, 234, 0.2);
}

body.light-theme .badge-level.genius {
    background: rgba(180, 83, 9, 0.08);
    color: #b45309;
    border-color: rgba(180, 83, 9, 0.2);
}

body.light-theme .badge-level.star {
    background: rgba(4, 120, 87, 0.08);
    color: #047857;
    border-color: rgba(4, 120, 87, 0.2);
}

body.light-theme .badge-level.level3 {
    background: rgba(75, 85, 99, 0.08);
    color: #374151;
    border-color: rgba(75, 85, 99, 0.25);
}

body.light-theme .course-price-input.promo-accent {
    color: #7e22ce;
    background: rgba(147, 51, 234, 0.02);
    border-color: rgba(147, 51, 234, 0.2);
}

body.light-theme .course-sessions-input {
    background: rgba(4, 120, 87, 0.02);
    border-color: rgba(4, 120, 87, 0.2);
    color: #047857;
}

body.light-theme .course-pricing-header {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .modern-table th {
    background: rgba(0, 0, 0, 0.01);
}

body.light-theme .modern-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

body.light-theme .premium-course-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

body.light-theme .premium-course-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

body.light-theme .premium-course-footer {
    background: rgba(0, 0, 0, 0.01);
}

/* ============================================
   CASE STUDY LIGHT THEME OVERRIDES
   ============================================ */
body.light-theme .casestudy-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

body.light-theme .casestudy-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

body.light-theme .casestudy-header {
    border-bottom-color: #f1f5f9;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.04) 0%, transparent 100%);
}

body.light-theme .casestudy-header h4 {
    color: #0f172a;
}

body.light-theme .casestudy-col.before {
    background: #fff5f5;
    border-color: #ffe2e2;
}

body.light-theme .casestudy-col.after {
    background: #f0fdf4;
    border-color: #dcfce7;
}

body.light-theme .casestudy-quote.bad {
    background: #ffffff;
    color: #991b1b;
    border-left-color: #ef4444;
}

body.light-theme .casestudy-quote.good {
    background: #ffffff;
    color: #166534;
    border-left-color: #10b981;
}

body.light-theme .quote-highlight.bad {
    background: #fee2e2;
    color: #b91c1c;
}

body.light-theme .quote-highlight.good {
    background: #dcfce7;
    color: #15803d;
}

body.light-theme .emotion-bad .emotion-avatar {
    background: #fee2e2;
    border-color: #fecdd3;
}

body.light-theme .emotion-good .emotion-avatar {
    background: #dcfce7;
    border-color: #a7f3d0;
}

body.light-theme .outcome-tag.danger {
    background: #fff1f2;
    color: #b91c1c;
    border-color: #fecdd3;
}

body.light-theme .outcome-tag.success {
    background: #ecfdf5;
    color: #15803d;
    border-color: #a7f3d0;
}

body.light-theme .divider-circle {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #64748b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

body.light-theme .casestudy-card:hover .divider-circle {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

body.light-theme .casestudy-lesson {
    background: linear-gradient(135deg, #fffbeb 0%, #fffdf5 100%);
    border-top-color: #fef3c7;
}

body.light-theme .casestudy-lesson p {
    color: #4b5563;
}

body.light-theme .lesson-highlight {
    color: #b45309;
    background: #fef3c7;
}

body.light-theme .lesson-icon-wrapper {
    background: #fef3c7;
    border-color: #fde68a;
}

body.light-theme .lesson-note {
    border-top-color: rgba(217, 119, 6, 0.15);
}

body.light-theme .lesson-note strong {
    color: #b45309;
}

/* ============================================
   CASE STUDY RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .casestudy-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .casestudy-divider {
        display: none;
    }
}

/* ============================================
   INTERACTIVE SALES SIMULATOR & FLOWCHART
   ============================================ */

.sales-flow-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
    margin-top: 20px;
    align-items: start;
}

@media (max-width: 1024px) {
    .sales-flow-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Left Panel: Simulator Controls & Scripts */
.sales-flow-control-panel {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.light-theme .sales-flow-control-panel {
    background: rgba(248, 250, 252, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px 0 rgba(148, 163, 184, 0.15);
}

.simulator-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.light-theme .simulator-card-title {
    color: #1e293b;
}

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

/* Slider Section */
.simulator-slider-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.light-theme .simulator-slider-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

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

.slider-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
}

body.light-theme .slider-label {
    color: #475569;
}

.slider-val-badge {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.sim-range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

body.light-theme .sim-range-slider {
    background: rgba(0, 0, 0, 0.1);
}

.sim-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #6366f1;
    border: 3px solid #ffffff;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.sim-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #818cf8;
}

.slider-milestones {
    position: relative;
    height: 18px;
    margin-top: 6px;
}

.slider-milestones span {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Campaign Selector inside Simulator */
.sim-campaign-selector-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 16px;
}

body.light-theme .sim-campaign-selector-box {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.04);
}

.sim-select-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.light-theme .sim-select-label {
    color: #64748b;
}

.sim-campaign-select-dropdown {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 12px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

body.light-theme .sim-campaign-select-dropdown {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    color: #1e293b;
}

.sim-campaign-select-dropdown:focus {
    border-color: #6366f1;
}

/* Metrics Section */
.simulator-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.sim-metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 16px;
}

body.light-theme .sim-metric-item {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.04);
}

.sim-metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sim-highlight {
    font-size: 0.85rem;
    font-weight: 700;
    color: #a855f7;
}

.sim-highlight.text-green {
    color: #10b981;
}

/* Dialogue Box styling */
.sales-script-bubble-box {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

body.light-theme .sales-script-bubble-box {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.sales-script-bubble-box .bubble-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

body.light-theme .sales-script-bubble-box .bubble-header {
    background: rgba(0,0,0,0.02);
    border-bottom-color: rgba(0,0,0,0.06);
    color: #64748b;
}

.bubble-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bubble-segment {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: fadeIn 0.3s ease;
}

.speaker-role {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

.speaker-role.teacher {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.speaker-role.consultant {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.speaker-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #6366f1;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
}

body.light-theme .speaker-text {
    color: #334155;
    background: #f8fafc;
}

.bubble-segment:nth-child(2) .speaker-text {
    border-left-color: #10b981;
}

/* Right Panel: Sơ Đồ Flowchart */
.sales-flow-chart-panel {
    background: rgba(30, 41, 59, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.light-theme .sales-flow-chart-panel {
    background: rgba(241, 245, 249, 0.5);
    border-color: rgba(0, 0, 0, 0.05);
}

.flowchart-title {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: center;
}

.flowchart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Flowchart Nodes */
.flow-node {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    max-width: 360px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0.5;
}

body.light-theme .flow-node {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.flow-node.active {
    opacity: 1;
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
    transform: scale(1.02);
}

.flow-node.active#node-sim-nudge {
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.flow-node.active#node-sim-staff {
    border-color: #ec4899;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.25);
}

.flow-node.active#node-sim-deposit {
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.node-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

body.light-theme .node-number {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
}

.flow-node.active .node-number {
    background: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
}

.flow-node.active#node-sim-nudge .node-number {
    background: #f59e0b;
    border-color: #f59e0b;
}

.flow-node.active#node-sim-staff .node-number {
    background: #ec4899;
    border-color: #ec4899;
}

.flow-node.active#node-sim-deposit .node-number {
    background: #10b981;
    border-color: #10b981;
}

.flow-node .node-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flow-node .node-content h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

body.light-theme .flow-node .node-content h6 {
    color: #1e293b;
}

.flow-node .node-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Badge status indicators inside nodes */
.badge-status {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.badge-status.nudge {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status.normal {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-status.staff {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Connectors */
.flow-connector {
    position: relative;
    transition: all 0.3s ease;
}

.flow-connector.vertical {
    width: 2px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
}

body.light-theme .flow-connector.vertical {
    background: rgba(0, 0, 0, 0.08);
}

.flow-connector.vertical.active {
    background: #6366f1;
    box-shadow: 0 0 8px #6366f1;
}

.flow-connector.vertical.active#conn-sim-nudge-to-offer {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.flow-connector.vertical.active#conn-sim-staff-to-offer {
    background: #ec4899;
    box-shadow: 0 0 8px #ec4899;
}

.flow-connector.vertical.active#conn-sim-offer-to-deposit {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.flow-connector.vertical::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .flow-connector.vertical::after {
    border-top-color: rgba(0, 0, 0, 0.08);
}

.flow-connector.vertical.active::after {
    border-top-color: #6366f1;
}

.flow-connector.vertical.active#conn-sim-nudge-to-offer::after {
    border-top-color: #f59e0b;
}

.flow-connector.vertical.active#conn-sim-staff-to-offer::after {
    border-top-color: #ec4899;
}

.flow-connector.vertical.active#conn-sim-offer-to-deposit::after {
    border-top-color: #10b981;
}

/* Split branch styling */
.flow-connector.split {
    width: 80%;
    max-width: 320px;
    height: 16px;
    border-top: 2px solid rgba(255, 255, 255, 0.08);
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    border-right: 2px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
}

body.light-theme .flow-connector.split {
    border-color: rgba(0, 0, 0, 0.08);
}

/* Split connector highlights */
.flow-connector.split.active-left {
    border-top-color: #f59e0b;
    border-left-color: #f59e0b;
    box-shadow: -4px -4px 6px -4px rgba(245,158,11,0.3);
}

.flow-connector.split.active-center {
    border-top-color: #6366f1;
}

.flow-connector.split.active-right {
    border-top-color: #ec4899;
    border-right-color: #ec4899;
    box-shadow: 4px -4px 6px -4px rgba(236,72,153,0.3);
}

.flow-branches {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    width: 100%;
    max-width: 680px;
    margin-top: -2px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .flow-branches {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .flow-connector.split {
        display: none;
    }
}

.flow-branch-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-branch-col .flow-node {
    height: 100%;
    max-width: 210px;
    padding: 12px;
}

@media (max-width: 768px) {
    .flow-branch-col .flow-node {
        max-width: 360px;
    }
}

/* Course boxes in step 4 */
.sim-course-paths {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.sim-course-box {
    flex: 1;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px;
    font-size: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

body.light-theme .sim-course-box {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
}

.sim-course-box.highlight {
    background: rgba(99, 102, 241, 0.04);
    border-color: rgba(99, 102, 241, 0.2);
    position: relative;
}

body.light-theme .sim-course-box.highlight {
    background: rgba(99, 102, 241, 0.02);
}

.flow-node.active .sim-course-box.highlight {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.sim-course-box.active-choice {
    background: rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
    color: #ffffff;
}

.sim-course-box.active-choice.highlight {
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.2);
}

.course-sub {
    font-size: 0.65rem !important;
    opacity: 0.7;
    margin-top: 4px !important;
}

.target-flag {
    position: absolute;
    top: -8px;
    right: 4px;
    font-size: 0.55rem;
    font-weight: 800;
    background: #e11d48;
    color: #ffffff;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(225, 29, 72, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
