/* ============================================
   DARK MODE OVERRIDES
   ============================================ */

/* TERMS & CONDITIONS */

body.dark-mode .card {
    background-color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1;
}

body.dark-mode .card .text-primary {
    color: #3b82f6 !important;
}

body.dark-mode .card .text-muted {
    color: #94a3b8 !important;
    opacity: 0.7;
}

/* Alert Info */
body.dark-mode .alert-info {
    background-color: rgba(14, 165, 233, 0.15) !important;
    border-color: rgba(14, 165, 233, 0.3) !important;
    color: #38bdf8 !important;
}

body.dark-mode .alert-info strong {
    color: #bfdbfe !important;
}

/* Success Card (Golden Guarantee) */
body.dark-mode .bg-success.bg-opacity-10 {
    background-color: rgba(34, 197, 94, 0.1) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

body.dark-mode .text-success {
    color: #4ade80 !important;
}

/* List Items in Terms */
body.dark-mode .list-unstyled li {
    color: #cbd5e1;
}

body.dark-mode .list-unstyled i.text-danger {
    color: #f87171 !important;
    /* Soft Red */
}

body.dark-mode .list-unstyled i.text-warning {
    color: #fbbf24 !important;
    /* Soft Amber */
}

body.dark-mode .list-unstyled i.text-success {
    color: #4ade80 !important;
    /* Soft Green */
}

body.dark-mode .list-unstyled i.text-info {
    color: #38bdf8 !important;
    /* Soft Sky Blue */
}

/* ============================================
   DARK MODE - MY COURSES
   ============================================ */

/* Section Background */
body.dark-mode .untree_co-section.bg-light {
    background-color: #0f172a !important;
}

/* Header Text */
body.dark-mode .my-courses-header h1.section-title {
    color: #f8fafc !important;
}

body.dark-mode .my-courses-header p.course-description {
    color: #cbd5e1 !important;
}

/* Course Card & Custom Media */
body.dark-mode .course-card,
body.dark-mode .custom-media {
    background-color: #1e293b !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .course-title,
body.dark-mode .custom-media h3 {
    color: #f8fafc !important;
}

body.dark-mode .course-excerpt,
body.dark-mode .custom-media p {
    color: #cbd5e1 !important;
}

body.dark-mode .progress-label {
    color: #cbd5e1 !important;
}

body.dark-mode .progress {
    background-color: #334155 !important;
}

/* Empty State */
body.dark-mode .empty-courses-container {
    background-color: #1e293b !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .empty-courses-title {
    color: #f8fafc !important;
}

body.dark-mode .empty-courses-message {
    color: #cbd5e1 !important;
}

body.dark-mode .empty-courses-icon i {
    color: #475569 !important;
}

/* ============================================
   DARK MODE - COURSE DETAILS PAGE
   ============================================ */

/* CSS Variables Override for Dark Mode */
body.dark-mode .untree_co-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

/* Course Header Wrapper */
body.dark-mode .course-header-wrapper {
    background: linear-gradient(135deg, #1e293b 0%, #162032 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .course-header-wrapper .section-title {
    color: #f8fafc !important;
    background: linear-gradient(135deg, #f8fafc 0%, #60a5fa 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

body.dark-mode .course-header-wrapper .course-description {
    color: #94a3b8 !important;
}

/* Course Stats */
body.dark-mode .stat-item {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .stat-item .stat-value {
    color: #60a5fa !important;
}

body.dark-mode .stat-item .stat-label {
    color: #94a3b8 !important;
}

/* Course Outline Section */
body.dark-mode .course-outline {
    background: linear-gradient(135deg, #1e293b 0%, #162032 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .course-outline .section-title {
    color: #f8fafc !important;
}

/* Accordion */
body.dark-mode .custom-accordion {
    background: #1e293b !important;
}

body.dark-mode .custom-accordion .accordion-item {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .custom-accordion .accordion-header {
    background: linear-gradient(135deg, #1e293b 0%, #162032 100%) !important;
}

body.dark-mode .custom-accordion .accordion-button {
    background: linear-gradient(135deg, #1e293b 0%, #162032 100%) !important;
    color: #e2e8f0 !important;
}

body.dark-mode .custom-accordion .accordion-button:hover {
    background: linear-gradient(135deg, #162032 0%, #1e293b 100%) !important;
    color: #60a5fa !important;
}

body.dark-mode .custom-accordion .accordion-body {
    background: #1e293b !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* Video List */
body.dark-mode .video-list {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .video-list li {
    background: #1e293b !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .video-list li:hover {
    background: rgba(96, 165, 250, 0.08) !important;
}

body.dark-mode .video-title {
    color: #e2e8f0 !important;
}

body.dark-mode .video-meta,
body.dark-mode .video-time {
    color: #64748b !important;
}

body.dark-mode .item-type {
    background: rgba(30, 41, 59, 0.8) !important;
    color: #94a3b8 !important;
}

/* Video Item (accordion body) */
body.dark-mode .video-item {
    background: #162032 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .video-item:hover {
    background: rgba(96, 165, 250, 0.08) !important;
}

body.dark-mode .video-info h6 {
    color: #e2e8f0 !important;
}

/* Sidebar */
body.dark-mode .course-sidebar {
    background: linear-gradient(135deg, #1e293b 0%, #162032 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .course-sidebar h4 {
    color: #f8fafc !important;
}

/* Video Container */
body.dark-mode .video-container {
    background: #0f172a !important;
}

/* Modal */
body.dark-mode .modal-content {
    background: #1e293b !important;
}

body.dark-mode .modal-body {
    background: #162032 !important;
}

body.dark-mode .modal-footer {
    background: #1e293b !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* Unit Header */
body.dark-mode .unit-header {
    background: linear-gradient(135deg, #1e293b 0%, #162032 100%) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .custom-accordion .btn-link {
    color: #e2e8f0 !important;
}

body.dark-mode .custom-accordion .btn-link:hover {
    color: #60a5fa !important;
}

body.dark-mode .video-count {
    background: rgba(30, 41, 59, 0.8) !important;
    color: #94a3b8 !important;
}

body.dark-mode .custom-accordion .accordion-button .unit-price {
    background: #162032 !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}

/* Selected Unit */
body.dark-mode .selected-unit {
    background: #162032 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Floating Cart */
body.dark-mode .floating-cart-summary {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .floating-cart-header {
    background: rgba(96, 165, 250, 0.1) !important;
}

body.dark-mode .floating-selected-unit {
    background: #162032 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .floating-unit-name {
    color: #e2e8f0 !important;
}

/* ============================================
   DARK MODE - AUTH & REGISTRATION FORM
   ============================================ */

.auth-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
}

.auth-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(43, 57, 144, 0.08);
    color: #2b3990;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto;
}

.auth-card .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 0.35rem;
}

.auth-card .input-group-text {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #64748b;
}

.auth-card .form-control {
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card .form-control:focus {
    border-color: #2b3990;
    box-shadow: 0 0 0 3px rgba(43, 57, 144, 0.15);
}

.auth-card .toggle-password {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #64748b;
}

.auth-card .toggle-password:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

/* --- DARK MODE OVERRIDES FOR AUTH --- */
body.dark-mode .auth-card {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .auth-card-icon {
    background: rgba(96, 165, 250, 0.15) !important;
    color: #60a5fa !important;
}

body.dark-mode .auth-card .card-title {
    color: #f8fafc !important;
}

body.dark-mode .auth-card .form-label {
    color: #e2e8f0 !important;
}

body.dark-mode .auth-card .input-group-text {
    background-color: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #94a3b8 !important;
}

body.dark-mode .auth-card .form-control {
    background-color: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
}

body.dark-mode .auth-card .form-control::placeholder {
    color: #64748b !important;
}

body.dark-mode .auth-card .form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
    background-color: #0f172a !important;
    color: #ffffff !important;
}

body.dark-mode .auth-card .toggle-password {
    background-color: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #94a3b8 !important;
}

body.dark-mode .auth-card .toggle-password:hover {
    background-color: #1e293b !important;
    color: #60a5fa !important;
}

body.dark-mode .auth-card .form-check-input {
    background-color: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

body.dark-mode .auth-card .form-check-input:checked {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

body.dark-mode .auth-card .form-check-label {
    color: #cbd5e1 !important;
}

/* ============================================
   DARK MODE - INFO / MARKETING PAGES
   Shared classes used by:
   - terms_conditions.php
   - instructor_terms.php
   - become_instructor.php
   - student_benefits.php
   ============================================ */

body.dark-mode .info-page-hero {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .info-page-badge {
    background: rgba(15, 23, 42, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #e2e8f0 !important;
}

body.dark-mode .info-stat-card,
body.dark-mode .info-content-card,
body.dark-mode .info-cta-card {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28) !important;
    color: #cbd5e1 !important;
}

body.dark-mode .info-stat-card p,
body.dark-mode .info-content-card p,
body.dark-mode .info-content-card li,
body.dark-mode .info-cta-card p,
body.dark-mode .info-cta-card li {
    color: #cbd5e1 !important;
}

body.dark-mode .info-stat-card .text-muted,
body.dark-mode .info-content-card .text-muted,
body.dark-mode .info-cta-card .text-muted {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

body.dark-mode .info-stat-number,
body.dark-mode .info-content-card h3,
body.dark-mode .info-cta-card h3 {
    color: #60a5fa !important;
}

body.dark-mode .info-highlight {
    background: #162032 !important;
    border-right-color: #3b82f6 !important;
    color: #cbd5e1 !important;
}

body.dark-mode .info-highlight p {
    color: #cbd5e1 !important;
}

body.dark-mode .info-pill {
    background: #162032 !important;
    color: #93c5fd !important;
    border: 1px solid rgba(96, 165, 250, 0.22) !important;
}

body.dark-mode .info-pill i,
body.dark-mode .info-page-badge i {
    color: inherit !important;
}

/* ============================================
   DARK MODE - CONSUMER INFO PAGES
   ============================================ */

body.dark-mode .consumer-page-hero {
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .consumer-page-hero::before {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(29, 78, 216, 0.72)) !important;
}

body.dark-mode .consumer-page-hero::after {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.18) 0%, rgba(96, 165, 250, 0.06) 40%, rgba(15, 23, 42, 0) 72%) !important;
}

body.dark-mode .consumer-page-shell {
    background: linear-gradient(180deg, #08111f 0%, #0f172a 100%) !important;
}

body.dark-mode .consumer-page-hero-content {
    background: rgba(15, 23, 42, 0.34) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

body.dark-mode .consumer-page-badge {
    background: rgba(15, 23, 42, 0.38) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #e2e8f0 !important;
}

body.dark-mode .consumer-page-title,
body.dark-mode .consumer-page-subtitle {
    color: #f8fafc !important;
}

body.dark-mode .consumer-stat-card,
body.dark-mode .consumer-section-card,
body.dark-mode .consumer-cta-card,
body.dark-mode .consumer-step-card,
body.dark-mode .consumer-soft-card {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26) !important;
}

body.dark-mode .consumer-stat-card:hover,
body.dark-mode .consumer-section-card:hover,
body.dark-mode .consumer-cta-card:hover,
body.dark-mode .consumer-step-card:hover,
body.dark-mode .consumer-soft-card:hover {
    border-color: rgba(96, 165, 250, 0.18) !important;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.30) !important;
}

body.dark-mode .consumer-stat-icon {
    background: rgba(96, 165, 250, 0.14) !important;
    color: #60a5fa !important;
}

body.dark-mode .consumer-stat-title,
body.dark-mode .consumer-section-title,
body.dark-mode .consumer-step-card h4 {
    color: #60a5fa !important;
}

body.dark-mode .consumer-stat-text,
body.dark-mode .consumer-section-desc,
body.dark-mode .consumer-list li,
body.dark-mode .consumer-list-number li,
body.dark-mode .consumer-check-list li,
body.dark-mode .consumer-step-card p,
body.dark-mode .consumer-cta-card p,
body.dark-mode .consumer-soft-card p {
    color: #cbd5e1 !important;
}

body.dark-mode .consumer-list li strong,
body.dark-mode .consumer-list-number li strong,
body.dark-mode .consumer-check-list li strong {
    color: #f8fafc !important;
}

body.dark-mode .consumer-check-list li::before {
    background: rgba(96, 165, 250, 0.14) !important;
    color: #93c5fd !important;
}

body.dark-mode .consumer-soft-card,
body.dark-mode .consumer-cta-card,
body.dark-mode .consumer-helper-note {
    background: #162032 !important;
}

body.dark-mode .consumer-step-card::after {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.05), rgba(15, 23, 42, 0)) !important;
}

body.dark-mode .consumer-pill {
    background: #162032 !important;
    color: #93c5fd !important;
    border: 1px solid rgba(96, 165, 250, 0.22) !important;
}

body.dark-mode .consumer-helper-note {
    border-right-color: #3b82f6 !important;
    color: #cbd5e1 !important;
}

body.dark-mode .student-benefits-page {
    background: linear-gradient(180deg, #08111f 0%, #0f172a 100%) !important;
}

body.dark-mode .student-benefits-page .consumer-page-hero {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38) !important;
}

body.dark-mode .student-benefits-page .consumer-page-hero::before {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(29, 78, 216, 0.84) 55%, rgba(37, 99, 235, 0.70) 100%) !important;
}

body.dark-mode .student-benefits-hero-content {
    background: rgba(15, 23, 42, 0.34) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

body.dark-mode .student-benefits-hero-highlights span {
    background: rgba(15, 23, 42, 0.46) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}

body.dark-mode .student-benefits-hero-highlights i {
    color: #93c5fd !important;
}

body.dark-mode .student-benefits-page .consumer-section-card {
    background: linear-gradient(180deg, #162032 0%, #1a2740 100%) !important;
}

body.dark-mode .student-benefits-summary-card {
    background: linear-gradient(180deg, #142033 0%, #1a2740 100%) !important;
}

body.dark-mode .student-benefits-side-note {
    background: #101a2a !important;
    border-right-color: #3b82f6 !important;
}

body.dark-mode .student-benefits-cards-row .consumer-stat-card {
    background: linear-gradient(180deg, #162032 0%, #1b2a45 100%) !important;
}

body.dark-mode .student-benefits-cards-row .consumer-stat-title {
    color: #93c5fd !important;
}

body.dark-mode .student-benefits-page .consumer-cta-card {
    background: linear-gradient(135deg, #162032 0%, #1a2740 100%) !important;
}

/* ============================================
   DARK MODE - INSTRUCTOR PORTAL
   ============================================ */

body.dark-mode .instructor-shell {
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%) !important;
}

body.dark-mode .instructor-hero {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%) !important;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.42) !important;
}

body.dark-mode .instructor-hero .h3,
body.dark-mode .instructor-hero p,
body.dark-mode .instructor-hero .badge {
    color: #f8fafc !important;
}

body.dark-mode .instructor-hero-badge {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

body.dark-mode .instructor-search {
    background: rgba(15, 23, 42, 0.52) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
}

body.dark-mode .instructor-search::placeholder {
    color: #cbd5e1 !important;
}

body.dark-mode .instructor-sidebar,
body.dark-mode .instructor-panel,
body.dark-mode .stat-card {
    background: #162032 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.30) !important;
}

body.dark-mode .instructor-sidebar h2,
body.dark-mode .instructor-panel h2,
body.dark-mode .instructor-panel h3,
body.dark-mode .stat-card .stat-value,
body.dark-mode .faq-question,
body.dark-mode .table thead th {
    color: #f8fafc !important;
}

body.dark-mode .instructor-nav-link {
    color: #cbd5e1 !important;
}

body.dark-mode .instructor-nav-link:hover,
body.dark-mode .instructor-nav-link.is-active {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
}

body.dark-mode .instructor-nav-link i {
    color: inherit !important;
}

body.dark-mode .record-card {
    background: rgba(15, 23, 42, 0.32) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .record-meta,
body.dark-mode .table td,
body.dark-mode .faq-answer,
body.dark-mode .instructor-panel .text-muted,
body.dark-mode .stat-card .text-muted {
    color: #cbd5e1 !important;
}

body.dark-mode .table tbody td {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .faq-item {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .status-approved {
    background: rgba(34, 197, 94, 0.14) !important;
    color: #86efac !important;
}

body.dark-mode .status-pending {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #fcd34d !important;
}

body.dark-mode .status-rejected,
body.dark-mode .status-expired {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #fca5a5 !important;
}

/* ============================================
   DARK MODE - ACCOUNT SETTINGS
   ============================================ */

body.dark-mode .settings-wrapper {
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%) !important;
}

body.dark-mode .profile-hero-card {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%) !important;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.42) !important;
}

body.dark-mode .profile-avatar-box {
    background: #f8fafc !important;
    color: #1d4ed8 !important;
}

body.dark-mode .status-dot {
    border-color: #f8fafc !important;
}

body.dark-mode .user-badge-tag {
    background: rgba(15, 23, 42, 0.34) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #f8fafc !important;
}

body.dark-mode .custom-settings-tabs {
    background: #162032 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .custom-settings-tabs .nav-link {
    color: #cbd5e1 !important;
}

body.dark-mode .custom-settings-tabs .nav-link.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26) !important;
}

body.dark-mode .custom-settings-tabs .nav-link:hover:not(.active) {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #93c5fd !important;
}

body.dark-mode .settings-content-card,
body.dark-mode .device-card {
    background: #162032 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.30) !important;
}

body.dark-mode .settings-section-header {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .settings-section-header h4,
body.dark-mode .form-label-custom,
body.dark-mode .device-card h6,
body.dark-mode .security-info-box strong,
body.dark-mode #strengthLabel {
    color: #f8fafc !important;
}

body.dark-mode .settings-content-card .text-muted,
body.dark-mode .settings-helper,
body.dark-mode .device-card .text-muted,
body.dark-mode .settings-content-card small.text-muted {
    color: #cbd5e1 !important;
}

body.dark-mode .custom-input-group .input-icon,
body.dark-mode .toggle-password-btn {
    color: #94a3b8 !important;
}

body.dark-mode .toggle-password-btn:hover,
body.dark-mode .custom-input-group .form-control:focus ~ .input-icon {
    color: #60a5fa !important;
}

body.dark-mode .custom-input-group .form-control {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
}

body.dark-mode .custom-input-group .form-control::placeholder {
    color: #64748b !important;
}

body.dark-mode .custom-input-group .form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18) !important;
}

body.dark-mode .custom-input-group .form-control[readonly],
body.dark-mode .custom-input-group .form-control:disabled {
    background: #111b2f !important;
    color: #cbd5e1 !important;
}

body.dark-mode .password-strength-bar {
    background: rgba(255, 255, 255, 0.10) !important;
}

body.dark-mode .security-info-box {
    background: rgba(34, 197, 94, 0.10) !important;
    border-color: rgba(34, 197, 94, 0.22) !important;
    color: #bbf7d0 !important;
}

body.dark-mode .security-info-box ul,
body.dark-mode .security-info-box li {
    color: #cbd5e1 !important;
}

body.dark-mode .device-icon-box {
    background: rgba(59, 130, 246, 0.14) !important;
    color: #93c5fd !important;
}

body.dark-mode .alert.alert-info {
    background: rgba(59, 130, 246, 0.10) !important;
    color: #dbeafe !important;
}

body.dark-mode .alert.alert-success {
    background: rgba(34, 197, 94, 0.12) !important;
    color: #dcfce7 !important;
}

body.dark-mode .alert.alert-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fee2e2 !important;
}

/* ============================================
   DARK MODE - CART & UTILITIES
   ============================================ */
body.dark-mode .card .bg-white,
body.dark-mode .bg-white {
    background-color: transparent !important;
}

body.dark-mode .border-bottom {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* ============================================
   DARK MODE - SWEETALERT2
   ============================================ */
body.dark-mode .swal2-popup {
    background: #1e293b !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .swal2-title,
body.dark-mode .swal2-html-container {
    color: #f8fafc !important;
}

body.dark-mode .swal2-icon.swal2-success {
    border-color: #4ade80 !important;
    color: #4ade80 !important;
}
body.dark-mode .swal2-icon.swal2-success [class^="swal2-success-line"] {
    background-color: #4ade80 !important;
}
body.dark-mode .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(74, 222, 128, 0.3) !important;
}

body.dark-mode .swal2-icon.swal2-warning {
    border-color: #fbbf24 !important;
    color: #fbbf24 !important;
}

body.dark-mode .swal2-icon.swal2-error {
    border-color: #f87171 !important;
    color: #f87171 !important;
}
body.dark-mode .swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
    background-color: #f87171 !important;
}

body.dark-mode .swal2-icon.swal2-info {
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}

body.dark-mode .swal2-timer-progress-bar {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* ============================================
   WHATSAPP TOP-BAR CTA PILL
   ============================================ */
.nav-topbar-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 211, 102, 0.12);
    color: #1aad5c !important;
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 20px;
    padding: 4px 12px 4px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    vertical-align: middle;
}
.nav-topbar-wa:hover {
    background: #25D366;
    color: #fff !important;
    border-color: #25D366;
    text-decoration: none !important;
}
.nav-topbar-wa svg {
    flex-shrink: 0;
    fill: #25D366;
    animation: wa-icon-glow 1.8s ease-in-out infinite;
    transition: transform 0.2s ease;
}
.nav-topbar-wa:hover svg {
    transform: scale(1.15);
    animation: none;
    filter: drop-shadow(0 0 6px #25D366);
}
@keyframes wa-icon-glow {
    0%,  100% { filter: drop-shadow(0 0 0px rgba(37,211,102,0));   opacity: 0.7; }
    50%        { filter: drop-shadow(0 0 6px rgba(37,211,102,0.95)); opacity: 1;   }
}
.nav-topbar-wa-label {
    opacity: 0.75;
    font-size: 0.78rem;
}
.nav-topbar-wa-cta {
    font-weight: 700;
    font-size: 0.83rem;
}
/* dark mode */
body.dark-mode .nav-topbar-wa {
    background: rgba(37, 211, 102, 0.1);
    color: #4ade80 !important;
    border-color: rgba(37, 211, 102, 0.25);
}
body.dark-mode .nav-topbar-wa:hover {
    background: #25D366;
    color: #fff !important;
}
@media (max-width: 767.98px) {
    .nav-topbar-wa-label { display: none; }
}

/* TELEGRAM TOP-BAR CTA PILL */
.nav-topbar-tg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 136, 204, 0.12);
    color: #0088cc !important;
    border: 1px solid rgba(0, 136, 204, 0.35);
    border-radius: 20px;
    padding: 4px 12px 4px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    vertical-align: middle;
}
.nav-topbar-tg:hover {
    background: #0088cc;
    color: #fff !important;
    border-color: #0088cc;
    text-decoration: none !important;
}
.nav-topbar-tg i {
    flex-shrink: 0;
    color: #0088cc;
    font-size: 1.1rem;
    animation: tg-icon-glow 1.8s ease-in-out infinite;
    transition: transform 0.2s ease;
}
.nav-topbar-tg:hover i {
    transform: scale(1.15);
    animation: none;
    color: #fff;
    filter: drop-shadow(0 0 6px #0088cc);
}
@keyframes tg-icon-glow {
    0%,  100% { filter: drop-shadow(0 0 0px rgba(0,136,204,0));   opacity: 0.7; }
    50%        { filter: drop-shadow(0 0 6px rgba(0,136,204,0.95)); opacity: 1;   }
}
.nav-topbar-tg-label {
    opacity: 0.75;
    font-size: 0.78rem;
}
.nav-topbar-tg-cta {
    font-weight: 700;
    font-size: 0.83rem;
}
/* dark mode */
body.dark-mode .nav-topbar-tg {
    background: rgba(0, 136, 204, 0.1);
    color: #38bdf8 !important;
    border-color: rgba(0, 136, 204, 0.25);
body.dark-mode .device-icon-box {
    background: rgba(59, 130, 246, 0.14) !important;
    color: #93c5fd !important;
}

body.dark-mode .alert.alert-info {
    background: rgba(59, 130, 246, 0.10) !important;
    color: #dbeafe !important;
}

body.dark-mode .alert.alert-success {
    background: rgba(34, 197, 94, 0.12) !important;
    color: #dcfce7 !important;
}

body.dark-mode .alert.alert-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fee2e2 !important;
}

/* ============================================
   DARK MODE - CART & UTILITIES
   ============================================ */
body.dark-mode .card .bg-white,
body.dark-mode .bg-white {
    background-color: transparent !important;
}

body.dark-mode .border-bottom {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* ============================================
   DARK MODE - SWEETALERT2
   ============================================ */
body.dark-mode .swal2-popup {
    background: #1e293b !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .swal2-title,
body.dark-mode .swal2-html-container {
    color: #f8fafc !important;
}

body.dark-mode .swal2-icon.swal2-success {
    border-color: #4ade80 !important;
    color: #4ade80 !important;
}
body.dark-mode .swal2-icon.swal2-success [class^="swal2-success-line"] {
    background-color: #4ade80 !important;
}
body.dark-mode .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(74, 222, 128, 0.3) !important;
}

body.dark-mode .swal2-icon.swal2-warning {
    border-color: #fbbf24 !important;
    color: #fbbf24 !important;
}

body.dark-mode .swal2-icon.swal2-error {
    border-color: #f87171 !important;
    color: #f87171 !important;
}
body.dark-mode .swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
    background-color: #f87171 !important;
}

body.dark-mode .swal2-icon.swal2-info {
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}

body.dark-mode .swal2-timer-progress-bar {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* ============================================
   WHATSAPP TOP-BAR CTA PILL
   ============================================ */
.nav-topbar-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 211, 102, 0.12);
    color: #1aad5c !important;
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 20px;
    padding: 4px 12px 4px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    vertical-align: middle;
}
.nav-topbar-wa:hover {
    background: #25D366;
    color: #fff !important;
    border-color: #25D366;
    text-decoration: none !important;
}
.nav-topbar-wa svg {
    flex-shrink: 0;
    fill: #25D366;
    animation: wa-icon-glow 1.8s ease-in-out infinite;
    transition: transform 0.2s ease;
}
.nav-topbar-wa:hover svg {
    transform: scale(1.15);
    animation: none;
    filter: drop-shadow(0 0 6px #25D366);
}
@keyframes wa-icon-glow {
    0%,  100% { filter: drop-shadow(0 0 0px rgba(37,211,102,0));   opacity: 0.7; }
    50%        { filter: drop-shadow(0 0 6px rgba(37,211,102,0.95)); opacity: 1;   }
}
.nav-topbar-wa-label {
    opacity: 0.75;
    font-size: 0.78rem;
}
.nav-topbar-wa-cta {
    font-weight: 700;
    font-size: 0.83rem;
}
/* dark mode */
body.dark-mode .nav-topbar-wa {
    background: rgba(37, 211, 102, 0.1);
    color: #4ade80 !important;
    border-color: rgba(37, 211, 102, 0.25);
}
body.dark-mode .nav-topbar-wa:hover {
    background: #25D366;
    color: #fff !important;
}
@media (max-width: 767.98px) {
    .nav-topbar-wa-label { display: none; }
}

/* TELEGRAM TOP-BAR CTA PILL */
.nav-topbar-tg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 136, 204, 0.12);
    color: #0088cc !important;
    border: 1px solid rgba(0, 136, 204, 0.35);
    border-radius: 20px;
    padding: 4px 12px 4px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    vertical-align: middle;
}
.nav-topbar-tg:hover {
    background: #0088cc;
    color: #fff !important;
    border-color: #0088cc;
    text-decoration: none !important;
}
.nav-topbar-tg i {
    flex-shrink: 0;
    color: #0088cc;
    font-size: 1.1rem;
    animation: tg-icon-glow 1.8s ease-in-out infinite;
    transition: transform 0.2s ease;
}
.nav-topbar-tg:hover i {
    transform: scale(1.15);
    animation: none;
    color: #fff;
    filter: drop-shadow(0 0 6px #0088cc);
}
@keyframes tg-icon-glow {
    0%,  100% { filter: drop-shadow(0 0 0px rgba(0,136,204,0));   opacity: 0.7; }
    50%        { filter: drop-shadow(0 0 6px rgba(0,136,204,0.95)); opacity: 1;   }
}
.nav-topbar-tg-label {
    opacity: 0.75;
    font-size: 0.78rem;
}
.nav-topbar-tg-cta {
    font-weight: 700;
    font-size: 0.83rem;
}
/* dark mode */
body.dark-mode .nav-topbar-tg {
    background: rgba(0, 136, 204, 0.1);
    color: #38bdf8 !important;
    border-color: rgba(0, 136, 204, 0.25);
}
body.dark-mode .nav-topbar-tg:hover {
    background: #0088cc;
    color: #fff !important;
}
@media (max-width: 767.98px) {
    .nav-topbar-tg-label { display: none; }
}

/* ============================================
   DARK MODE - PREPARATORY YEAR PAGE
   ============================================ */
body.dark-mode .prep-page-wrapper {
    background-color: #0b1329 !important;
}
body.dark-mode .prep-breadcrumb {
    color: #94a3b8 !important;
}
body.dark-mode .prep-breadcrumb a {
    color: #60a5fa !important;
}
body.dark-mode .prep-breadcrumb span {
    color: #cbd5e1 !important;
}
body.dark-mode .prep-title {
    color: #f8fafc !important;
}
body.dark-mode .prep-subtitle {
    color: #94a3b8 !important;
}
body.dark-mode .badge-light {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

/* Bundle Promo Card Dark Mode */
body.dark-mode .bundle-promo-card {
    background: #1e293b !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode .bundle-promo-title {
    color: #f8fafc !important;
}
body.dark-mode .bundle-promo-desc {
    color: #cbd5e1 !important;
}
body.dark-mode .bundle-chip {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}
body.dark-mode .bundle-promo-card .text-muted {
    color: #94a3b8 !important;
}
body.dark-mode .bundle-price-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #334155 !important;
}
body.dark-mode .bundle-price-original {
    color: #64748b !important;
}
body.dark-mode .bundle-price-current {
    color: #60a5fa !important;
}
body.dark-mode .bundle-save-tag {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #4ade80 !important;
}

/* Section Header Dark Mode */
body.dark-mode .section-header-compact {
    border-bottom-color: #334155 !important;
}
body.dark-mode .section-header-compact h2 {
    color: #f8fafc !important;
}
body.dark-mode .section-header-compact .count-badge {
    background: #334155 !important;
    color: #cbd5e1 !important;
}

/* Course Cards Dark Mode */
body.dark-mode .prep-course-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}
body.dark-mode .prep-course-card:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45) !important;
}
body.dark-mode .prep-course-title a,
body.dark-mode .prep-course-title .text-dark {
    color: #f8fafc !important;
}
body.dark-mode .prep-course-code {
    color: #94a3b8 !important;
}
body.dark-mode .prep-course-instructor {
    color: #94a3b8 !important;
}
body.dark-mode .prep-course-footer {
    border-top-color: #334155 !important;
}
body.dark-mode .prep-course-price {
    color: #f8fafc !important;
}
body.dark-mode .prep-course-price svg {
    fill: #f8fafc !important;
}

/* ============================================
   DARK MODE - BLOG & ARTICLES
   ============================================ */
body.dark-mode .blog-hero {
    background: linear-gradient(135deg, rgba(11, 19, 41, 0.96), rgba(15, 23, 42, 0.94)), url('/site/images/main_banner.webp') center/cover no-repeat !important;
}

body.dark-mode .article-single-section {
    background-color: #0b1329 !important;
}

body.dark-mode .article-main-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
    color: #cbd5e1 !important;
}

body.dark-mode .article-single-title {
    color: #f8fafc !important;
}

body.dark-mode .article-single-meta {
    border-bottom-color: #334155 !important;
    color: #94a3b8 !important;
}

body.dark-mode .article-content-body {
    color: #cbd5e1 !important;
}

body.dark-mode .article-content-body h2,
body.dark-mode .article-content-body h3,
body.dark-mode .article-content-body h4 {
    color: #f8fafc !important;
}

body.dark-mode .article-content-body p,
body.dark-mode .article-content-body li {
    color: #cbd5e1 !important;
}

body.dark-mode .article-content-body .table {
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

body.dark-mode .article-content-body .table-bordered th,
body.dark-mode .article-content-body .table-bordered td {
    border-color: #334155 !important;
}

body.dark-mode .article-content-body .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode .article-share-box {
    background: #0f172a !important;
    border-color: #334155 !important;
}

body.dark-mode .article-share-box .font-weight-bold {
    color: #f8fafc !important;
}

body.dark-mode .share-btn.share-copy {
    background: #334155 !important;
    color: #cbd5e1 !important;
}

body.dark-mode .related-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .related-title {
    color: #f8fafc !important;
}

/* Blog Listing */
body.dark-mode .article-grid-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .article-title-link {
    color: #f8fafc !important;
}

body.dark-mode .article-desc-text {
    color: #94a3b8 !important;
}

body.dark-mode .article-footer-cta {
    border-top-color: #334155 !important;
}

body.dark-mode .blog-search-box .form-control {
    background: #1e293b !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
}

body.dark-mode .blog-search-box .form-control::placeholder {
    color: #94a3b8 !important;
}

body.dark-mode .custom-pagination .page-item .page-link {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #93c5fd !important;
}

body.dark-mode .custom-pagination .page-item.active .page-link {
    background-color: #136ad5 !important;
    border-color: #136ad5 !important;
    color: #fff !important;
}

body.dark-mode .author-bio-card {
    background: #0f172a !important;
    border-color: #334155 !important;
}

body.dark-mode .author-bio-card h5 {
    color: #f8fafc !important;
}

body.dark-mode .author-bio-card p {
    color: #94a3b8 !important;
}


