html.light-mode {
  color-scheme: light;
  --bg-color: #f3f6fb;
  --bg-surface: #ffffff;
  --card-border: rgba(30, 50, 80, 0.1);
  --primary: #087ea4;
  --primary-glow: rgba(8, 126, 164, 0.18);
  --accent: #4f46e5;
  --text-main: #17243a;
  --text-muted: #607087;
  --success: #15803d;
  --danger: #be123c;
  background: #f3f6fb;
  color: #17243a;
}

html.light-mode body {
  background: linear-gradient(180deg, #f8faff 0%, #f1f5fa 100%) !important;
  color: #17243a !important;
}

html.light-mode ::selection {
  color: #123047;
  background: rgba(56, 189, 248, 0.24);
}

html.light-mode ::-webkit-scrollbar-track {
  background: #edf2f8;
  border-color: #e2e8f0;
}

html.light-mode ::-webkit-scrollbar-thumb {
  border-color: #edf2f8;
  box-shadow: inset 0 0 6px rgba(15, 23, 42, 0.12);
}

html.light-mode .glow-bg {
  opacity: 0.07;
}

html.light-mode .navbar {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom-color: rgba(30, 50, 80, 0.09);
  box-shadow: 0 8px 24px rgba(30, 50, 80, 0.045);
}

html.light-mode .logo {
  color: #17243a !important;
}

html.light-mode .nav-links a,
html.light-mode .user-profile-link {
  color: #52647c;
}

html.light-mode .nav-links a:hover,
html.light-mode .nav-links a[aria-current="page"] {
  color: #075985;
  background: rgba(8, 126, 164, 0.08);
}

html.light-mode .user-profile-name {
  color: #334155 !important;
}

html.light-mode .nav-search-btn,
html.light-mode .notification-nav-link {
  color: #52647c;
}

html.light-mode .nav-search-btn:hover,
html.light-mode .notification-nav-link:hover {
  color: #075985;
  background: rgba(8, 126, 164, 0.08);
}

html.light-mode .market-ticker {
  background:
    linear-gradient(90deg, rgba(8, 126, 164, 0.045), transparent 18%, transparent 82%, rgba(79, 70, 229, 0.04)),
    rgba(255, 255, 255, 0.92);
  border-color: rgba(30, 50, 80, 0.09);
  box-shadow: 0 5px 16px rgba(30, 50, 80, 0.04);
}

html.light-mode .market-ticker::before {
  background: linear-gradient(90deg, #fff 20%, rgba(255, 255, 255, 0));
}

html.light-mode .market-ticker::after {
  background: linear-gradient(270deg, #fff 20%, rgba(255, 255, 255, 0));
}

html.light-mode .ticker-item,
html.light-mode .ticker-item .sym {
  color: #26364d;
}

html.light-mode .ticker-item .val {
  color: #607087;
}

html.light-mode .ticker-item .trend.up {
  color: #166534;
  background: #ecfdf3;
  box-shadow: inset 0 0 0 1px rgba(22, 101, 52, 0.14);
}

html.light-mode .ticker-item .trend.down {
  color: #be123c;
  background: #fff1f2;
  box-shadow: inset 0 0 0 1px rgba(190, 18, 60, 0.12);
}

html.light-mode footer {
  background: #fff;
  border-top-color: rgba(30, 50, 80, 0.09);
}

html.light-mode footer p {
  color: #607087;
}

html.light-mode .btn-ghost {
  color: #334155;
  border-color: #cbd5e1;
}

html.light-mode .btn-ghost:hover {
  color: #17243a;
  background: #edf2f8;
}

html.light-mode .btn-secondary {
  color: #075985;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(8, 126, 164, 0.2);
  box-shadow: 0 8px 20px rgba(30, 50, 80, 0.06);
}

html.light-mode .btn-secondary:hover {
  color: #064e68;
  background: #fff;
  border-color: rgba(8, 126, 164, 0.38);
}

html.light-mode .header-settings-toggle {
  color: #52647c;
}

html.light-mode .header-settings-dropdown {
  border-color: rgba(30, 50, 80, 0.12);
  box-shadow: 0 16px 40px rgba(30, 50, 80, 0.14);
}

html.light-mode .header-settings-dropdown a {
  color: #334155;
}

html.light-mode .header-settings-dropdown a:hover {
  color: #075985;
  background: rgba(8, 126, 164, 0.08);
}

html.light-mode .currency-display-control select {
  color: #334155;
  background-color: #fff;
  border-color: #d3dce8;
}

html.light-mode .desjardins-search-panel {
  background: rgba(248, 250, 253, 0.98);
  border-bottom-color: #dbe4ef;
  box-shadow: 0 20px 40px rgba(30, 50, 80, 0.12);
}

html.light-mode .search-field-box {
  background: #fff;
  border-color: #d3dce8;
  box-shadow: 0 8px 24px rgba(30, 50, 80, 0.08);
}

html.light-mode .search-field-box input {
  color: #17243a;
}

html.light-mode .search-section-title {
  color: #087ea4;
}

html.light-mode .popular-item,
html.light-mode .result-item {
  color: #334155;
}

html.light-mode .btn-close-panel {
  color: #52647c;
}

html.light-mode .dashboard-main,
html.light-mode .investment-page {
  background: transparent !important;
}

html.light-mode .dashboard-sidebar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-right-color: rgba(30, 50, 80, 0.09) !important;
  box-shadow: 8px 0 24px rgba(30, 50, 80, 0.025);
}

html.light-mode .dashboard-sidebar .sidebar-link {
  color: #52647c !important;
}

html.light-mode .dashboard-sidebar .sidebar-link:hover,
html.light-mode .dashboard-sidebar .sidebar-link.active {
  color: #075985 !important;
  background: #eaf5fb !important;
}

html.light-mode .dashboard-sidebar .sidebar-icon svg {
  color: #607087 !important;
}

html.light-mode .dashboard-sidebar .sidebar-link:hover .sidebar-icon svg,
html.light-mode .dashboard-sidebar .sidebar-link.active .sidebar-icon svg {
  color: #087ea4 !important;
}

html.light-mode .profile-card,
html.light-mode .auth-card,
html.light-mode .account-card,
html.light-mode .account-card-add,
html.light-mode .modal-card,
html.light-mode .summary-card,
html.light-mode .stock-card,
html.light-mode .history-summary-card,
html.light-mode .history-list-card,
html.light-mode .transfer-stat-card,
html.light-mode .transfer-card,
html.light-mode .support-panel,
html.light-mode .support-requests,
html.light-mode .support-request-card,
html.light-mode .admin-adjustment-section,
html.light-mode .admin-message-section,
html.light-mode .admin-stat-card,
html.light-mode .admin-users-section,
html.light-mode .admin-education-recent,
html.light-mode .market-widget-card,
html.light-mode .trade-panel-card,
html.light-mode .education-hero,
html.light-mode .edu-tab-btn,
html.light-mode .edu-content-pane,
html.light-mode .lesson-card,
html.light-mode .pane-quiz-box,
html.light-mode .about-hero,
html.light-mode .about-person,
html.light-mode .about-supervisor,
html.light-mode .notifications-empty,
html.light-mode .notification-card {
  color: #26364d;
  background: #fff !important;
  border-color: rgba(30, 50, 80, 0.11) !important;
  box-shadow: 0 12px 32px rgba(30, 50, 80, 0.055);
}

html.light-mode .account-card-add {
  border-style: dashed !important;
  color: #087ea4;
  background: #f8fbff !important;
}

html.light-mode .account-card-add:hover,
html.light-mode .stock-card:hover,
html.light-mode .about-person:hover {
  background: #f7fbff !important;
  border-color: rgba(8, 126, 164, 0.3) !important;
}

html.light-mode .dashboard-summary-cards > div,
html.light-mode .dashboard-main > section > div[style*="background: rgba(15, 23, 42"] {
  color: #26364d !important;
  background: #fff !important;
  border-color: rgba(30, 50, 80, 0.11) !important;
  box-shadow: 0 12px 32px rgba(30, 50, 80, 0.055);
}

html.light-mode .dashboard-main > .dashboard-header h1,
html.light-mode .dashboard-main > .dashboard-header p,
html.light-mode .dashboard-summary-cards [style*="color: #94a3b8"],
html.light-mode .dashboard-main > section > div h3,
html.light-mode .dashboard-main > section > div p,
html.light-mode .dashboard-main > section > div span[style*="color: #94a3b8"] {
  color: #26364d !important;
}

html.light-mode .dashboard-summary-cards > div > div[style*="color: #ffffff"] {
  color: #17243a !important;
}

html.light-mode .dashboard-main > .dashboard-header p,
html.light-mode .dashboard-summary-cards [style*="color: #94a3b8"],
html.light-mode .dashboard-main > section > div p,
html.light-mode .dashboard-main > section > div span[style*="color: #94a3b8"] {
  color: #607087 !important;
}

html.light-mode .dashboard-balance-value {
  color: #087ea4 !important;
}

html.light-mode .profile-details > div {
  background: #f8fafd;
  border-color: rgba(30, 50, 80, 0.09);
}

html.light-mode .profile-photo-form input[type="file"],
html.light-mode .profile-password-section input:not([type="hidden"]),
html.light-mode .form-group input,
html.light-mode .trade-input,
html.light-mode .portfolio-filter-control,
html.light-mode .portfolio-filter-input,
html.light-mode .sell-quantity,
html.light-mode .transfer-field input,
html.light-mode .transfer-amount-input input,
html.light-mode .support-form input,
html.light-mode .support-form textarea,
html.light-mode .admin-adjustment-form select,
html.light-mode .admin-adjustment-form input,
html.light-mode .admin-adjustment-form textarea,
html.light-mode .modal-field input,
html.light-mode .modal-field select,
html.light-mode .modal-field textarea {
  color: #26364d !important;
  background: #fff !important;
  border-color: #d3dce8 !important;
}

html.light-mode input::placeholder,
html.light-mode textarea::placeholder {
  color: #8290a3;
}

html.light-mode .profile-heading h1,
html.light-mode .profile-password-section h2,
html.light-mode .settings-profile-card h1,
html.light-mode .settings-profile-card h2,
html.light-mode .auth-header h2,
html.light-mode .history-header h1,
html.light-mode .history-list-heading h2,
html.light-mode .history-summary-card strong,
html.light-mode .transfer-header h1,
html.light-mode .transfer-card-heading h2,
html.light-mode .transfer-stat-card strong,
html.light-mode .investment-header h1,
html.light-mode .summary-card-value,
html.light-mode .stock-name,
html.light-mode .support-header h1,
html.light-mode .support-panel-heading h2,
html.light-mode .support-empty-state h2,
html.light-mode .support-request-heading h3,
html.light-mode .admin-header h1,
html.light-mode .admin-section-heading h2,
html.light-mode .admin-message-heading h2,
html.light-mode .notifications-header h1,
html.light-mode .notifications-empty h2,
html.light-mode .notification-card h2,
html.light-mode .about-hero h1,
html.light-mode .about-section-heading h2,
html.light-mode .about-person h3,
html.light-mode .about-supervisor h3,
html.light-mode .education-hero h1,
html.light-mode .edu-top h1,
html.light-mode .pane-header h2,
html.light-mode .lesson-card h3,
html.light-mode .quiz-header h3 {
  color: #17243a !important;
}

html.light-mode .history-header p,
html.light-mode .history-list-heading p,
html.light-mode .history-summary-label,
html.light-mode .history-summary-note,
html.light-mode .history-time,
html.light-mode .history-table th,
html.light-mode .transfer-header p,
html.light-mode .transfer-card-heading p,
html.light-mode .transfer-stat-card span,
html.light-mode .transfer-stat-card small,
html.light-mode .investment-kicker,
html.light-mode .summary-card-label,
html.light-mode .portfolio-filter-label,
html.light-mode .portfolio-filter-status,
html.light-mode .support-header > p:last-child,
html.light-mode .support-panel-heading p,
html.light-mode .support-empty-state p,
html.light-mode .support-request-heading time,
html.light-mode .admin-header p:last-child,
html.light-mode .admin-section-heading p,
html.light-mode .notifications-header p:last-child,
html.light-mode .notification-type-label,
html.light-mode .notification-card time,
html.light-mode .about-intro,
html.light-mode .about-description-points,
html.light-mode .about-supervisor-label,
html.light-mode .education-path,
html.light-mode .edu-top p,
html.light-mode .pane-lead,
html.light-mode .lesson-card p,
html.light-mode .feedback-desc {
  color: #607087 !important;
}

html.light-mode .history-table td,
html.light-mode .history-operation strong,
html.light-mode .history-operation small,
html.light-mode .account-name,
html.light-mode .account-type,
html.light-mode .modal-header h2,
html.light-mode .modal-field label,
html.light-mode .trade-panel-title,
html.light-mode .trade-field-group label,
html.light-mode .portfolio-filter-label,
html.light-mode .data-value-large,
html.light-mode .data-value-medium,
html.light-mode .data-value-bold,
html.light-mode .about-description-points strong,
html.light-mode .edu-tab-btn .tab-title,
html.light-mode .pane-header h2,
html.light-mode .quiz-header h3 {
  color: #26364d !important;
}

html.light-mode .history-table tbody tr:hover {
  background: #f6f9fc;
}

html.light-mode .edu-tab-btn.active {
  background: #eaf5fb !important;
  border-color: rgba(8, 126, 164, 0.28) !important;
  box-shadow: inset 3px 0 #087ea4;
}

html.light-mode .tab-badge,
html.light-mode .opt-letter {
  color: #52647c;
  background: #eef3f8;
}

html.light-mode .quiz-option-btn {
  color: #26364d;
  background: #f7f9fc;
  border-color: #dce4ee;
}

html.light-mode .quiz-option-btn.is-valid {
  color: #166534;
  background: #ecfdf3;
}

html.light-mode .quiz-option-btn.is-invalid {
  color: #be123c;
  background: #fff1f2;
}

html.light-mode .market-widget-card {
  border-color: rgba(30, 50, 80, 0.12) !important;
}

html.light-mode .home-hero {
  color: #17243a;
  background: linear-gradient(115deg, #f4f8ff 0%, #fff 55%, #eaf6fb 100%);
}

html.light-mode .home-hero > video {
  opacity: 0.85;
  filter: saturate(0.8);
}

html.light-mode .home-hero > div[style*="background: rgba(10, 15, 29"] {
  background: linear-gradient(110deg, rgba(248, 251, 255, 0.68), rgba(241, 247, 255, 0.53) 58%, rgba(224, 242, 254, 0.6)) !important;
}

html.light-mode .home-hero .home-copy,
html.light-mode .home-hero .home-copy h1,
html.light-mode .home-hero .home-copy h1 span,
html.light-mode .home-hero .home-copy .hero-lead,
html.light-mode .home-hero .home-copy .home-note {
  color: #17243a !important;
}

html.light-mode .home-hero .home-copy h1 .delay-2 {
  color: #17243a !important;
}

html.light-mode .home-hero .home-copy h1 .delay-3 {
  color: #087ea4 !important;
}

html.light-mode .home-hero .home-copy .home-eyebrow,
html.light-mode .home-hero .side-panel-label {
  color: #087ea4 !important;
}

html.light-mode .home-hero .hero-lead,
html.light-mode .home-hero .home-note {
  color: #52647c !important;
}

html.light-mode .home-hero .home-side-panel {
  color: #26364d !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(30, 50, 80, 0.12) !important;
  border-left: 3px solid #087ea4 !important;
  box-shadow: 0 24px 60px rgba(30, 50, 80, 0.12);
}

html.light-mode .home-hero .home-side-panel h2,
html.light-mode .home-hero .market-preview-row,
html.light-mode .home-hero .market-preview-row strong,
html.light-mode .home-hero .market-preview-row > span:not(.market-preview-change) {
  color: #26364d !important;
}

html.light-mode .home-hero .market-preview-row {
  border-color: rgba(30, 50, 80, 0.1) !important;
}

html.light-mode .home-hero .security-note,
html.light-mode .home-hero .market-preview-empty {
  color: #607087 !important;
}

html.light-mode .auth-card {
  box-shadow: 0 24px 64px rgba(30, 50, 80, 0.1);
}

html.light-mode .about-hero,
html.light-mode .education-hero {
  background: linear-gradient(125deg, #fff 0%, #f4f9ff 72%, #eef8fc 100%) !important;
}

html.light-mode .education-section-heading h2,
html.light-mode .education-section-heading h3,
html.light-mode .level-card h3,
html.light-mode .achievement-card h3,
html.light-mode .detail-title-group h2,
html.light-mode .education-start-panel strong,
html.light-mode .education-learning-content .lesson-card h4,
html.light-mode .education-learning-content .quiz-header h4 {
  color: #17243a !important;
}

html.light-mode .overview-progress-copy,
html.light-mode .level-progress-copy,
html.light-mode .overview-progress-copy strong,
html.light-mode .level-progress-copy strong,
html.light-mode .level-summary,
html.light-mode .achievement-card p,
html.light-mode .detail-title-group p,
html.light-mode .detail-progress-card > span,
html.light-mode .detail-progress-card small,
html.light-mode .education-start-panel p,
html.light-mode .education-learning-content .lesson-card p {
  color: #607087 !important;
}

html.light-mode .overview-progress-copy strong,
html.light-mode .level-progress-copy strong,
html.light-mode .detail-progress-card > strong {
  color: #087ea4 !important;
}

html.light-mode .education-academy .level-card,
html.light-mode .education-academy .achievement-card,
html.light-mode .education-academy .education-detail-hero,
html.light-mode .education-academy .detail-progress-card,
html.light-mode .education-academy .education-learning-content .lesson-card,
html.light-mode .education-academy .education-learning-content .pane-quiz-box,
html.light-mode .education-academy .education-start-panel,
html.light-mode .education-academy .education-notice,
html.light-mode .education-academy .education-state,
html.light-mode .education-academy .quiz-empty {
  color: #26364d;
  background: #fff !important;
  border-color: rgba(30, 50, 80, 0.11) !important;
  box-shadow: 0 10px 28px rgba(30, 50, 80, 0.05);
}

html.light-mode .education-academy .education-start-panel {
  background: #f0f8fc !important;
}

html.light-mode .education-academy .education-notice {
  background: #f0f8fc !important;
  border-left-color: #087ea4 !important;
}

html.light-mode .education-academy .education-notice strong,
html.light-mode .education-academy .education-state strong {
  color: #17243a !important;
}

html.light-mode .education-academy .education-notice p,
html.light-mode .education-academy .education-state p {
  color: #607087 !important;
}

html.light-mode .education-academy .level-number,
html.light-mode .education-academy .section-eyebrow,
html.light-mode .education-academy .pane-num,
html.light-mode .education-academy .quiz-question-number {
  color: #087ea4 !important;
}

html.light-mode .education-academy .level-badge,
html.light-mode .education-academy .level-count,
html.light-mode .education-academy .tab-badge {
  color: #52647c !important;
  background: #f1f5f9 !important;
  border-color: #dbe4ef !important;
}

html.light-mode .education-academy .level-lock-icon {
  color: #607087;
  background: #f1f5f9;
  border-color: #dbe4ef;
}

html.light-mode .education-academy .is-unlocked .level-lock-icon {
  color: #15803d;
  background: #ecfdf3;
  border-color: rgba(21, 128, 61, 0.2);
}

html.light-mode .education-academy .level-unlock-button,
html.light-mode .education-academy .lesson-complete-button,
html.light-mode .education-academy .quiz-retry-button {
  color: #075985;
  background: #eaf5fb;
  border-color: rgba(8, 126, 164, 0.2);
}

html.light-mode .education-academy .level-unlock-button:hover:not(:disabled),
html.light-mode .education-academy .lesson-complete-button:hover:not(:disabled),
html.light-mode .education-academy .quiz-retry-button:hover {
  color: #064e68;
  background: #dff1f8;
  border-color: rgba(8, 126, 164, 0.38);
}

html.light-mode .education-academy .level-unlock-status,
html.light-mode .education-academy .achievement-count,
html.light-mode .education-academy .achievement-status {
  color: #607087 !important;
}

html.light-mode .education-academy .is-earned .achievement-status {
  color: #8a5b08 !important;
}

html.light-mode .education-academy .achievement-card.is-earned {
  background: #fff9e8 !important;
  border-color: rgba(180, 130, 20, 0.2) !important;
}

html.light-mode .education-academy .lesson-complete-button:disabled {
  color: #166534;
  background: #ecfdf3;
  border-color: rgba(22, 101, 52, 0.18);
}

html.light-mode .education-academy .education-back-button {
  color: #52647c;
}

html.light-mode .education-academy .education-back-button:hover {
  color: #075985;
}

html.light-mode .notifications-mark-read {
  color: #075985;
  background: #eaf5fb;
  border-color: rgba(8, 126, 164, 0.24);
}

html.light-mode .notifications-mark-read:hover {
  color: #064e68;
  background: #dff1f8;
  border-color: rgba(8, 126, 164, 0.4);
}

html.light-mode .investment-button {
  color: #075985;
  background: #eaf5fb;
  border-color: rgba(8, 126, 164, 0.24);
}

html.light-mode .investment-button:hover {
  color: #064e68;
  background: #dff1f8;
  border-color: rgba(8, 126, 164, 0.4);
}

html.light-mode .transfer-field label {
  color: #26364d !important;
}

html.light-mode .transfer-amount-input {
  color: #607087;
  background: #fff;
  border-color: #d3dce8;
}

html.light-mode .transfer-amount-input input {
  border-color: transparent !important;
}

html.light-mode .modal-overlay {
  background: rgba(23, 36, 58, 0.36);
}

html.light-mode .sell-confirm-dialog {
  color: #26364d;
  background: #fff;
  border-color: rgba(30, 50, 80, 0.12);
  box-shadow: 0 24px 80px rgba(30, 50, 80, 0.22);
}

html.light-mode .sell-confirm-dialog h2 {
  color: #17243a;
}

html.light-mode .sell-dialog-description {
  color: #607087;
}

html.light-mode .sell-dialog-cancel {
  color: #334155;
  border-color: #d3dce8;
}

html.light-mode .loading-overlay {
  background: rgba(241, 245, 250, 0.82);
}

html.light-mode .loading-box {
  color: #26364d;
  background: #fff;
  border-color: rgba(30, 50, 80, 0.12);
  box-shadow: 0 20px 45px rgba(30, 50, 80, 0.16);
}

@media (max-width: 700px) {
  html.light-mode .home-hero {
    background: linear-gradient(150deg, #f4f8ff, #fff 70%);
  }
}
