/* 
================================================
InsightCSS - Advanced Premium Stylesheet
Architecture based on prembly.com advanced aesthetic
================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Dynamic Brand Color (Will be injected via Blade) */
    --brand-color: #4840DF4;

    /* Advanced Palette */
    --dark-bg: #0a0f1c;
    --dark-surface: #121a2f;
    --dark-border: rgba(255, 255, 255, 0.1);

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --white: #ffffff;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 10px 30px -10px var(--brand-color);

    /* Border Radius */
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--slate-50);
    color: var(--slate-800);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ================================================
   Utility Classes
   ================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.text-brand {
    color: var(--brand-color);
}

.text-slate {
    color: var(--slate-600);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    /* Updated radius to be slightly rounded instead of full pill */
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-heading);
    border: none;
    outline: none;
    position: relative;
    z-index: 20;
}

.btn-primary {
    background-color: var(--brand-color) !important;
    color: var(--white) !important;
    border: 2px solid var(--brand-color) !important;
    box-shadow: none !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--white) !important;
    color: var(--brand-color) !important;
    border: 2px solid var(--brand-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(132, 13, 244, 0.18) !important;
}

.btn-secondary {
    background-color: transparent;
    color: var(--slate-900);
    border: 1.5px solid var(--slate-200);
}

.btn-secondary:hover {
    border-color: var(--slate-400);
    background-color: var(--slate-50);
}

.btn-dark {
    background-color: var(--slate-900);
    color: var(--white);
}

.btn-dark:hover {
    background-color: var(--brand-color);
    color: var(--white);
}

/* ================================================
   Advanced Navigation
   ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-desktop a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--slate-900) !important;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--brand-color) !important;
}

.nav-auth .login-link {
    font-weight: 600;
    color: var(--slate-800);
}

.nav-auth .login-link:hover {
    color: var(--brand-color);
}

.mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.4rem;
    color: var(--slate-800);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}
html.dark-mode .mobile-menu-btn,
body.dark-mode .mobile-menu-btn {
    background: #161f30 !important;
    border-color: #243048 !important;
    color: #f8fafc !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}
html.dark-mode .mobile-menu-btn:hover,
body.dark-mode .mobile-menu-btn:hover {
    background: #1e293b !important;
    border-color: #38bdf8 !important;
}

.logo-img {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
}

/* Mobile Menu Wrapper */
.nav-wrapper {
    display: none;
}

@media (max-width: 991px) {
    .nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1.5rem;
        flex-direction: column;
        gap: 1.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--slate-100);
        transition: var(--transition);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-wrapper.show {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-desktop {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .nav-auth {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .nav-auth .btn {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 992px) {
    .nav-wrapper {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
        gap: 2.5rem;
    }

    .nav-desktop {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-auth {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-auth .btn {
        width: auto;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* ================================================
   Hero Section (Unified Brand Aesthetic)
   ================================================ */
.page-hero,
.landing-hero {
    padding-top: 130px;
    padding-bottom: 50px;
    position: relative;
    text-align: center;
    background-color: var(--brand-color);
    overflow: hidden;
    color: #ffffff;
    display: block;
    min-height: auto;
}

.page-hero::before,
.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 10%, transparent 20%),
                radial-gradient(circle, rgba(0, 0, 0, 0.05) 10%, transparent 20%);
    background-size: 80px 80px;
    animation: moveBg 25s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.page-hero .container,
.landing-hero .container {
    position: relative;
    z-index: 2;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: floatAnim 6s ease-in-out infinite;
    z-index: 1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: none;
}
.floating-1 { width: 80px; height: 80px; top: 15%; left: 8%; animation-delay: 0s; }
.floating-2 { width: 120px; height: 120px; bottom: 15%; right: 6%; animation-delay: 2s; }
.floating-3 { width: 50px; height: 50px; top: 25%; right: 18%; animation-delay: 4s; background: rgba(255, 255, 255, 0.15); }

@keyframes moveBg {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes floatAnim {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.page-hero-badge,
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.15rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff !important;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.page-hero-title,
.hero-title {
    font-family: 'Nunito', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    color: #ffffff !important;
    line-height: 1.2;
    max-width: 850px;
    margin-inline: auto;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.page-hero-title span,
.hero-title span {
    color: #ffd166;
}

.page-hero-subtitle,
.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92) !important;
    margin-bottom: 1.5rem;
    max-width: 680px;
    margin-inline: auto;
    line-height: 1.6;
}

.page-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.825rem;
    font-weight: 600;
}

.meta-share-btn {
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.14);
    transition: all 0.25s ease;
}
.meta-share-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ================================================
   Why Choose Us Section
   ================================================ */
.page-body-section,
.landing-features {
    padding: 3.5rem 0 5.5rem;
    background-color: var(--slate-50);
    position: relative;
    display: block;
    min-height: 400px;
}

.page-body-section::before,
.landing-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: radial-gradient(circle at 50% 0%, rgba(132, 13, 244, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    /* Reduced from 4rem */
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--slate-600);
    max-width: 600px;
    margin-inline: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background: var(--slate-50);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    text-align: left;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--white);
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: var(--slate-100);
}

.feature-icon {
    width: 6rem;
    height: 6rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--slate-600);
}

.service-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slate-600);
    font-size: 0.9375rem;
}

.service-list li i {
    color: #10b981;
    /* green checkmark */
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================================
   Product Showcase
   ================================================ */
.landing-showcase {
    padding: 4rem 0 8rem;
    background-color: var(--white);
    display: block;
}

.showcase-image-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    padding: 1rem;
    background: linear-gradient(135deg, var(--slate-100) 0%, var(--white) 100%);
    box-shadow: var(--shadow-card);
}

.showcase-image {
    width: 100%;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ================================================
   Trust & Stats
   ================================================ */
.landing-stats {
    padding: 6rem 0;
    background-color: var(--slate-900);
    /* Standard Dark Color */
    color: var(--white);
    text-align: center;
    display: block;
}

.landing-stats h2 {
    color: var(--white);
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--brand-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.125rem;
    color: var(--slate-400);
    font-weight: 500;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================================
   Final CTA
   ================================================ */
.cta-section {
    padding: 8rem 0;
    background-color: var(--brand-color);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* ================================================
   Advanced Footer
   ================================================ */
.footer {
    background-color: var(--slate-900);
    /* Standard Dark Color */
    color: var(--slate-400);
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--dark-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-link {
    margin-bottom: 1.5rem;
}

.footer-desc {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
}

.footer-heading {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--brand-color) !important;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Layout Overrides */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--slate-50);
}

.auth-transparent-container {
    position: relative;
    z-index: 999;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 28rem;
    padding: 3rem;
    border: 1px solid var(--slate-100);
}

.card {
    border: none;
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-xl);
}

.card-body {
    padding: 2.5rem;
}

/* Authentication Forms Overrides */
.form-label {
    text-transform: none !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

.auth-link {
    font-weight: bold;
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.auth-link:hover {
    color: var(--brand-color) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-color) !important;
    box-shadow: 0 0 0 1px var(--brand-color) !important;
    outline: none !important;
}

.form-check-input:checked {
    background-color: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
}

/* SweetAlert Overrides */
.swal-modal {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.swal-title {
    font-family: var(--font-heading);
    color: var(--slate-900);
}

.swal-text {
    color: var(--slate-700);
    text-align: left;
}

.swal-footer {
    display: flex !important;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

.swal-button-container {
    margin: 0 !important;
}

.swal-button {
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    font-family: var(--font-heading) !important;
    padding: 0.65rem 1.5rem !important;
    transition: var(--transition) !important;
    border: none;
}

.swal-button:focus {
    box-shadow: none !important;
    outline: none !important;
}

.swal-button--cancel {
    background-color: transparent !important;
    color: var(--slate-900) !important;
    border: 1.5px solid var(--slate-200) !important;
}

.swal-button--cancel:hover {
    border-color: var(--slate-400) !important;
    background-color: var(--slate-50) !important;
}

.swal-button--confirm {
    background-color: var(--brand-color) !important;
    color: var(--white) !important;
}

.swal-button--confirm:hover {
    filter: brightness(1.1) !important;
}

/* ================================================
   FAQ Interactive Components
   ================================================ */
.faq-search-wrapper {
    max-width: 820px;
    margin: 0 auto 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.faq-search-box {
    position: relative;
    width: 100%;
}

.faq-search-box .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.35rem;
    color: #94a3b8;
    pointer-events: none;
}

.faq-search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 3.25rem;
    border-radius: 9999px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    font-size: 1rem;
    color: #1e293b;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.faq-search-box input:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 4px rgba(132, 13, 244, 0.15);
}

.faq-search-box .clear-search-btn {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.faq-search-box .clear-search-btn:hover {
    color: #1e293b;
}

.faq-count-badge {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.faq-container {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.faq-item.active {
    border-color: var(--brand-color);
    box-shadow: 0 10px 30px rgba(132, 13, 244, 0.08);
}

.faq-header {
    width: 100%;
    text-align: left;
    padding: 1.35rem 1.65rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Nunito', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.075rem;
    color: #1e293b;
    gap: 1rem;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.faq-header:hover {
    background-color: #f8fafc;
}

.faq-item.active .faq-header {
    background-color: rgba(132, 13, 244, 0.03);
    color: var(--brand-color);
}

.faq-icon {
    font-size: 1.35rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: #64748b;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--brand-color);
}

.faq-content {
    display: none;
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.faq-item.active .faq-content {
    display: block;
    animation: faqFadeIn 0.3s ease-in-out;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-body {
    padding: 1.5rem 1.65rem;
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
}

.empty-faq-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.empty-faq-state i {
    font-size: 3.5rem;
    color: var(--brand-color);
    margin-bottom: 1rem;
}

.empty-faq-state h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.faq-support-card {
    max-width: 820px;
    margin: 3.5rem auto 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.faq-support-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.faq-support-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(132, 13, 244, 0.1);
    color: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    flex-shrink: 0;
}

.faq-support-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
    font-family: 'Nunito', sans-serif;
    color: #1e293b;
}

.faq-support-content p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0;
}

.faq-support-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .faq-support-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    .faq-support-content {
        flex-direction: column;
        text-align: center;
    }
    .faq-support-actions {
        width: 100%;
        flex-direction: column;
    }
    .faq-support-actions .btn {
        width: 100%;
    }
}

/* ================================================
   Contact Us Components
   ================================================ */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem 1.75rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-color);
    box-shadow: 0 15px 35px rgba(132, 13, 244, 0.09);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(132, 13, 244, 0.1);
    color: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.contact-card-icon.whatsapp-icon {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.contact-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.contact-card-body h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-card-body p {
    font-size: 0.925rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.contact-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    color: var(--brand-color);
    font-weight: 700;
    font-size: 0.95rem;
    word-break: break-all;
    transition: gap 0.2s ease;
}

.contact-action-link:hover {
    gap: 0.85rem;
    color: var(--brand-color);
}

.contact-info-text {
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-extra-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

@media (max-width: 900px) {
    .contact-extra-banner {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }
}

.contact-extra-left .extra-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(132, 13, 244, 0.08);
    color: var(--brand-color);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-extra-left h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.contact-extra-left p {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hours-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hours-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.hours-pill i {
    color: #10b981;
}

.cta-mini-card {
    background: linear-gradient(135deg, rgba(132, 13, 244, 0.05), rgba(132, 13, 244, 0.01));
    border: 1px solid rgba(132, 13, 244, 0.15);
    border-radius: 20px;
    padding: 2.25rem;
    text-align: center;
}

.cta-mini-card h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.cta-mini-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.btn-whatsapp-large {
    background: #25d366;
    color: #ffffff !important;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-large:hover {
    background: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff !important;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    border: none;
    transition: all 0.25s ease;
}

.btn-whatsapp:hover {
    background: #20ba59;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ================================================
   Page Reader & Legal Document Components
   ================================================ */
.page-content-card {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 50px 60px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .page-content-card {
        padding: 30px 24px;
        border-radius: 18px;
    }
}

.page-content-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
}

.page-content-body h1,
.page-content-body h2,
.page-content-body h3,
.page-content-body h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.page-content-body h2 {
    font-size: 1.75rem;
    border-left: 4px solid var(--brand-color);
    padding-left: 14px;
}

.page-content-body h3 {
    font-size: 1.4rem;
}

.page-content-body p {
    margin-bottom: 1.35rem;
}

.page-content-body strong,
.page-content-body b {
    font-weight: 700;
    color: #0f172a;
}

.page-content-body ul,
.page-content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.page-content-body li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

.page-content-body a {
    color: var(--brand-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.page-content-body a:hover {
    filter: brightness(0.85);
}

.page-content-body blockquote {
    border-left: 4px solid var(--brand-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8fafc;
    border-radius: 0 12px 12px 0;
    color: #475569;
    font-style: italic;
}

.page-content-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.page-content-body th,
.page-content-body td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.page-content-body th {
    background-color: #f8fafc;
    font-weight: 700;
    color: #1e293b;
}

.page-content-footer {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.page-footer-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 500px;
}

.page-footer-notice i {
    font-size: 2rem;
    color: var(--brand-color);
    flex-shrink: 0;
}

.page-footer-notice strong {
    display: block;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.2rem;
}

.page-footer-notice p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0;
}

.page-footer-links {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .page-content-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-footer-links {
        width: 100%;
        flex-direction: column;
    }
    .page-footer-links .btn {
        width: 100%;
    }
}

/* ================================================
   Dark Mode System-Wide Enhancements
   ================================================ */
body.dark-mode {
    background-color: #0b0f19;
    color: #e2e8f0;
}

body.dark-mode .header {
    background-color: rgba(11, 15, 25, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .nav-desktop a {
    color: #f1f5f9 !important;
}

body.dark-mode .nav-desktop a:hover,
body.dark-mode .nav-desktop a.active {
    color: var(--brand-color) !important;
}

body.dark-mode .nav-auth .login-link {
    color: #f1f5f9 !important;
}

body.dark-mode .nav-auth .login-link:hover {
    color: var(--brand-color) !important;
}

body.dark-mode .nav-wrapper {
    background: #0f172a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .page-body-section,
body.dark-mode .landing-features {
    background: #0b0f19 !important;
}

body.dark-mode .faq-search-box input {
    background: #161f30;
    border-color: #243048;
    color: #f1f5f9;
}

body.dark-mode .faq-search-box input:focus {
    border-color: var(--brand-color);
}

body.dark-mode .faq-count-badge {
    color: #94a3b8;
}

body.dark-mode .faq-item {
    background: #161f30;
    border-color: #243048;
}

body.dark-mode .faq-item:hover {
    border-color: #3b4d6e;
}

body.dark-mode .faq-item.active {
    border-color: var(--brand-color);
    background: #1a253a;
}

body.dark-mode .faq-header {
    color: #f1f5f9;
}

body.dark-mode .faq-header:hover {
    background-color: #1a253a;
}

body.dark-mode .faq-item.active .faq-header {
    background-color: rgba(132, 13, 244, 0.1);
    color: #ffffff;
}

body.dark-mode .faq-icon {
    color: #94a3b8;
}

body.dark-mode .faq-content {
    background-color: #131b2c;
    border-top: 1px solid #243048;
}

body.dark-mode .faq-body {
    color: #cbd5e1;
}

body.dark-mode .faq-support-card {
    background: linear-gradient(135deg, #161f30 0%, #111827 100%);
    border-color: #243048;
}

body.dark-mode .faq-support-content h3 {
    color: #f1f5f9;
}

body.dark-mode .faq-support-content p {
    color: #94a3b8;
}

body.dark-mode .empty-faq-state {
    background: #161f30;
    border-color: #243048;
    color: #94a3b8;
}

body.dark-mode .empty-faq-state h3 {
    color: #f1f5f9;
}

/* Contact Dark Mode */
body.dark-mode .contact-card {
    background: #161f30;
    border-color: #243048;
}

body.dark-mode .contact-card:hover {
    border-color: var(--brand-color);
    background: #192336;
}

body.dark-mode .contact-card-body h3 {
    color: #f1f5f9;
}

body.dark-mode .contact-card-body p {
    color: #94a3b8;
}

body.dark-mode .contact-action-link {
    border-top-color: #243048;
}

body.dark-mode .contact-info-text {
    border-top-color: #243048;
    color: #f1f5f9;
}

body.dark-mode .contact-extra-banner {
    background: #161f30;
    border-color: #243048;
}

body.dark-mode .contact-extra-left h3 {
    color: #f1f5f9;
}

body.dark-mode .contact-extra-left p {
    color: #94a3b8;
}

body.dark-mode .hours-pill {
    background: #131b2c;
    border-color: #243048;
    color: #e2e8f0;
}

body.dark-mode .cta-mini-card {
    background: rgba(132, 13, 244, 0.08);
    border-color: rgba(132, 13, 244, 0.25);
}

body.dark-mode .cta-mini-card h4 {
    color: #f1f5f9;
}

body.dark-mode .cta-mini-card p {
    color: #94a3b8;
}

/* Page Reader Dark Mode */
body.dark-mode .page-content-card {
    background: #161f30;
    border-color: #243048;
}

body.dark-mode .page-content-body {
    color: #cbd5e1;
}

body.dark-mode .page-content-body h1,
body.dark-mode .page-content-body h2,
body.dark-mode .page-content-body h3,
body.dark-mode .page-content-body h4 {
    color: #f8fafc;
}

body.dark-mode .page-content-body strong,
body.dark-mode .page-content-body b {
    color: #f8fafc;
}

body.dark-mode .page-content-body blockquote {
    background: #131b2c;
    color: #94a3b8;
}

body.dark-mode .page-content-body table {
    border-color: #243048;
}

body.dark-mode .page-content-body th,
body.dark-mode .page-content-body td {
    border-bottom-color: #243048;
}

body.dark-mode .page-content-body th {
    background-color: #131b2c;
    color: #f1f5f9;
}

body.dark-mode .page-content-footer {
    border-top-color: #243048;
}

body.dark-mode .page-footer-notice strong {
    color: #f1f5f9;
}

body.dark-mode .page-footer-notice p {
    color: #94a3b8;
}

/* ========================================================
   User Portal & Auth Dark Mode Comprehensive Styles
   ======================================================== */

/* Theme Toggle Button Styles */
.user-theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.user-theme-toggle-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--brand-color);
    transform: translateY(-1px);
}
html.dark-mode .user-theme-toggle-btn,
body.dark-mode .user-theme-toggle-btn {
    background: #161f30 !important;
    border-color: #243048 !important;
    color: #fbbf24 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}
html.dark-mode .user-theme-toggle-btn:hover,
body.dark-mode .user-theme-toggle-btn:hover {
    background: #1e293b !important;
    border-color: #38bdf8 !important;
    color: #fde047 !important;
    transform: translateY(-1px);
}

.auth-theme-toggle-box {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}
.auth-theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.auth-theme-toggle-btn:hover {
    transform: scale(1.08) rotate(15deg);
    color: var(--brand-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}
body.dark-mode .auth-theme-toggle-btn {
    background: #1e293b;
    border-color: #334155;
    color: #fbbf24;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
body.dark-mode .auth-theme-toggle-btn:hover {
    color: #fde047;
    border-color: #fde047;
}

.theme-toggle-btn-front {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 1.25rem;
    color: #475569;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}
.theme-toggle-btn-front:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--brand-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
html.dark-mode .theme-toggle-btn-front,
body.dark-mode .theme-toggle-btn-front {
    background: #161f30 !important;
    border-color: #243048 !important;
    color: #fbbf24 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}
html.dark-mode .theme-toggle-btn-front:hover,
body.dark-mode .theme-toggle-btn-front:hover {
    background: #1e293b !important;
    border-color: #38bdf8 !important;
    color: #fde047 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.desktop-theme-toggle {
    display: inline-flex !important;
}
.mobile-theme-toggle {
    display: none !important;
}
@media (min-width: 992px) {
    .header-right-actions,
    .mobile-theme-toggle {
        display: none !important;
    }
}
@media (max-width: 991px) {
    .desktop-theme-toggle {
        display: none !important;
    }
    .mobile-theme-toggle {
        display: inline-flex !important;
    }
}

/* User Portal Layout Backgrounds */
html.dark-mode,
body.dark-mode,
html.dark-mode body,
html.dark-mode .layout-wrapper,
body.dark-mode .layout-wrapper,
html.dark-mode .layout-container,
body.dark-mode .layout-container,
html.dark-mode .layout-page,
body.dark-mode .layout-page,
html.dark-mode .content-wrapper,
body.dark-mode .content-wrapper {
    background-color: #0b0f19 !important;
    background: #0b0f19 !important;
    color: #e2e8f0 !important;
}

/* Navbar in Dark Mode */
html.dark-mode .layout-navbar,
body.dark-mode .layout-navbar {
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}
html.dark-mode .layout-navbar .text-dark,
body.dark-mode .layout-navbar .text-dark,
html.dark-mode .layout-navbar span,
body.dark-mode .layout-navbar span {
    color: #f8fafc !important;
}
html.dark-mode .switch-business-btn,
body.dark-mode .switch-business-btn {
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #f1f5f9 !important;
}
html.dark-mode .switch-business-btn:hover,
body.dark-mode .switch-business-btn:hover {
    background-color: var(--brand-color) !important;
    color: #ffffff !important;
}

/* Cards & Panels */
html.dark-mode .card,
body.dark-mode .card {
    background-color: #131b2c !important;
    border-color: #243048 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}
html.dark-mode .card-header,
body.dark-mode .card-header,
html.dark-mode .card-footer,
body.dark-mode .card-footer {
    background-color: transparent !important;
    border-color: #243048 !important;
    color: #f8fafc !important;
}
html.dark-mode .card-title,
body.dark-mode .card-title,
html.dark-mode h1, body.dark-mode h1,
html.dark-mode h2, body.dark-mode h2,
html.dark-mode h3, body.dark-mode h3,
html.dark-mode h4, body.dark-mode h4,
html.dark-mode h5, body.dark-mode h5,
html.dark-mode h6, body.dark-mode h6 {
    color: #f8fafc !important;
}

/* Dashboard Specific Cards */
html.dark-mode .wallet-card,
body.dark-mode .wallet-card,
html.dark-mode .refer-card,
body.dark-mode .refer-card {
    background: #131b2c !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}
html.dark-mode .acct-details,
body.dark-mode .acct-details {
    background: #1a253a !important;
    border-color: #243048 !important;
}
html.dark-mode .acct-info,
body.dark-mode .acct-info {
    color: #94a3b8 !important;
}
html.dark-mode .acct-number,
body.dark-mode .acct-number {
    color: #f8fafc !important;
}
html.dark-mode .section-title-box,
body.dark-mode .section-title-box {
    background: #131b2c !important;
    border: 1px solid #243048 !important;
    color: #f8fafc !important;
}
html.dark-mode .quick-action-card,
body.dark-mode .quick-action-card {
    background: #131b2c !important;
    border-color: #243048 !important;
    color: #f8fafc !important;
}
html.dark-mode .quick-action-card:hover,
body.dark-mode .quick-action-card:hover {
    background: #1a253a !important;
    border-color: var(--brand-color) !important;
}
html.dark-mode .qa-icon-wrapper,
body.dark-mode .qa-icon-wrapper {
    background: rgba(132, 13, 244, 0.16) !important;
}
html.dark-mode .qa-title,
body.dark-mode .qa-title {
    color: #f8fafc !important;
}
html.dark-mode .qa-subtitle,
body.dark-mode .qa-subtitle {
    color: #94a3b8 !important;
}
html.dark-mode .summary-card,
body.dark-mode .summary-card {
    background: #131b2c !important;
    border-color: #243048 !important;
}
html.dark-mode .summary-val,
body.dark-mode .summary-val {
    color: #f8fafc !important;
}
html.dark-mode .verification-card,
body.dark-mode .verification-card {
    border-color: #243048 !important;
    background: #131b2c !important;
}
html.dark-mode .verification-body,
body.dark-mode .verification-body {
    background: #131b2c !important;
    color: #cbd5e1 !important;
}
html.dark-mode .verification-body p,
body.dark-mode .verification-body p {
    color: #cbd5e1 !important;
}
html.dark-mode .verification-body b,
html.dark-mode .verification-body strong,
body.dark-mode .verification-body b,
body.dark-mode .verification-body strong {
    color: #f8fafc !important;
}

/* Forms & Inputs in Dark Mode */
html.dark-mode .form-label,
body.dark-mode .form-label,
html.dark-mode label,
body.dark-mode label {
    color: #cbd5e1 !important;
}

html.dark-mode .form-control,
body.dark-mode .form-control,
html.dark-mode input.form-control,
body.dark-mode input.form-control,
html.dark-mode .form-select,
body.dark-mode .form-select,
html.dark-mode select.form-control,
body.dark-mode select.form-control,
html.dark-mode textarea.form-control,
body.dark-mode textarea.form-control,
html.dark-mode .input-group-text,
body.dark-mode .input-group-text,
html.dark-mode .input-group-merge .form-control,
body.dark-mode .input-group-merge .form-control,
html.dark-mode .input-group-merge .input-group-text,
body.dark-mode .input-group-merge .input-group-text,
html.dark-mode input[type="text"],
body.dark-mode input[type="text"],
html.dark-mode input[type="password"],
body.dark-mode input[type="password"],
html.dark-mode input[type="email"],
body.dark-mode input[type="email"],
html.dark-mode input[type="number"],
body.dark-mode input[type="number"],
html.dark-mode input[type="tel"],
body.dark-mode input[type="tel"] {
    background-color: #161f30 !important;
    border-color: #243048 !important;
    color: #f1f5f9 !important;
}

html.dark-mode .form-control:focus,
body.dark-mode .form-control:focus,
html.dark-mode .form-select:focus,
body.dark-mode .form-select:focus,
html.dark-mode .input-group:focus-within .form-control,
body.dark-mode .input-group:focus-within .form-control,
html.dark-mode .input-group:focus-within .input-group-text,
body.dark-mode .input-group:focus-within .input-group-text {
    background-color: #1a253a !important;
    border-color: var(--brand-color) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(64, 186, 247, 0.25) !important;
}

html.dark-mode .form-control:disabled,
body.dark-mode .form-control:disabled,
html.dark-mode .form-control[readonly],
body.dark-mode .form-control[readonly] {
    background-color: #0f1623 !important;
    border-color: #1e293b !important;
    color: #64748b !important;
}

html.dark-mode .form-control::placeholder,
body.dark-mode .form-control::placeholder,
html.dark-mode input::placeholder,
body.dark-mode input::placeholder {
    color: #64748b !important;
    opacity: 0.8 !important;
}

html.dark-mode .input-group:has(.border-0),
body.dark-mode .input-group:has(.border-0) {
    border-color: #243048 !important;
    background-color: #161f30 !important;
}
html.dark-mode .input-group:has(.border-0) .form-control,
body.dark-mode .input-group:has(.border-0) .form-control {
    background-color: transparent !important;
    color: #f1f5f9 !important;
}

html.dark-mode select.form-control option,
body.dark-mode select.form-control option,
html.dark-mode .form-select option,
body.dark-mode .form-select option {
    background-color: #161f30 !important;
    color: #f1f5f9 !important;
}

html.dark-mode input:-webkit-autofill,
html.dark-mode input:-webkit-autofill:hover, 
html.dark-mode input:-webkit-autofill:focus,
body.dark-mode input:-webkit-autofill,
body.dark-mode input:-webkit-autofill:hover, 
body.dark-mode input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f8fafc !important;
    -webkit-box-shadow: 0 0 0px 1000px #161f30 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

html.dark-mode .form-check-input,
body.dark-mode .form-check-input {
    background-color: #161f30 !important;
    border-color: #243048 !important;
}
html.dark-mode .form-check-input:checked,
body.dark-mode .form-check-input:checked {
    background-color: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
}
html.dark-mode .form-check-label,
body.dark-mode .form-check-label {
    color: #cbd5e1 !important;
}

/* Tables in Dark Mode */
html.dark-mode .table,
body.dark-mode .table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    color: #cbd5e1 !important;
    border-color: #243048 !important;
}
html.dark-mode .table th,
body.dark-mode .table th {
    background-color: #161f30 !important;
    color: #f8fafc !important;
    border-color: #243048 !important;
}
html.dark-mode .table td,
body.dark-mode .table td {
    color: #cbd5e1 !important;
    border-color: #243048 !important;
    background-color: transparent !important;
}
html.dark-mode .table-striped>tbody>tr:nth-of-type(odd)>*,
body.dark-mode .table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: rgba(255, 255, 255, 0.025) !important;
}
html.dark-mode .table tbody tr:hover td,
body.dark-mode .table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

/* Modals & Dialogs */
html.dark-mode .modal-content,
body.dark-mode .modal-content {
    background-color: #131b2c !important;
    border: 1px solid #243048 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}
html.dark-mode .modal-header,
body.dark-mode .modal-header,
html.dark-mode .modal-footer,
body.dark-mode .modal-footer {
    border-color: #243048 !important;
}
html.dark-mode .modal-title,
body.dark-mode .modal-title {
    color: #f8fafc !important;
}
html.dark-mode .btn-close,
body.dark-mode .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Dropdowns */
html.dark-mode .dropdown-menu,
body.dark-mode .dropdown-menu {
    background-color: #161f30 !important;
    border: 1px solid #243048 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}
html.dark-mode .dropdown-item,
body.dark-mode .dropdown-item {
    color: #cbd5e1 !important;
}
html.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:hover,
html.dark-mode .dropdown-item:focus,
body.dark-mode .dropdown-item:focus {
    background-color: #1a253a !important;
    color: #ffffff !important;
}
html.dark-mode .dropdown-divider,
body.dark-mode .dropdown-divider {
    border-color: #243048 !important;
}

/* Badges & Elements */
html.dark-mode .badge-dim.bg-success,
body.dark-mode .badge-dim.bg-success {
    background-color: rgba(16, 185, 129, 0.16) !important;
    color: #34d399 !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}
html.dark-mode .badge-dim.bg-warning,
body.dark-mode .badge-dim.bg-warning {
    background-color: rgba(245, 158, 11, 0.16) !important;
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}
html.dark-mode .badge-dim.bg-danger,
body.dark-mode .badge-dim.bg-danger {
    background-color: rgba(239, 68, 68, 0.16) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}
html.dark-mode .badge-dim.bg-info,
body.dark-mode .badge-dim.bg-info {
    background-color: rgba(14, 165, 233, 0.16) !important;
    color: #38bdf8 !important;
    border-color: rgba(14, 165, 233, 0.25) !important;
}
html.dark-mode .badge-dim.bg-secondary,
body.dark-mode .badge-dim.bg-secondary {
    background-color: rgba(148, 163, 184, 0.16) !important;
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
}

/* Generic Helpers Overrides */
html.dark-mode .text-dark,
body.dark-mode .text-dark {
    color: #f8fafc !important;
}
html.dark-mode .text-muted,
body.dark-mode .text-muted {
    color: #94a3b8 !important;
}
html.dark-mode .bg-white,
body.dark-mode .bg-white {
    background-color: #131b2c !important;
}
html.dark-mode .bg-light,
body.dark-mode .bg-light {
    background-color: #161f30 !important;
}
html.dark-mode .border,
body.dark-mode .border {
    border-color: #243048 !important;
}
html.dark-mode .border-top,
body.dark-mode .border-top {
    border-top-color: #243048 !important;
}
html.dark-mode .border-bottom,
body.dark-mode .border-bottom {
    border-bottom-color: #243048 !important;
}
html.dark-mode .border-start,
body.dark-mode .border-start {
    border-left-color: #243048 !important;
}
html.dark-mode .border-end,
body.dark-mode .border-end {
    border-right-color: #243048 !important;
}

/* Hardcoded Light Elements in Referrals etc. */
html.dark-mode [style*="background: #f8f9fa"],
body.dark-mode [style*="background: #f8f9fa"],
html.dark-mode [style*="background:#f8f9fa"],
body.dark-mode [style*="background:#f8f9fa"],
html.dark-mode [style*="background: #f8fafc"],
body.dark-mode [style*="background: #f8fafc"] {
    background: #1a253a !important;
    background-color: #1a253a !important;
    border-color: #243048 !important;
    color: #f8fafc !important;
}

/* Select2 in Dark Mode */
html.dark-mode .select2-container--bootstrap4 .select2-selection,
body.dark-mode .select2-container--bootstrap4 .select2-selection,
html.dark-mode .select2-container--default .select2-selection--single,
body.dark-mode .select2-container--default .select2-selection--single {
    background-color: #161f30 !important;
    border-color: #243048 !important;
    color: #f1f5f9 !important;
}
html.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered,
body.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f1f5f9 !important;
}
html.dark-mode .select2-dropdown,
body.dark-mode .select2-dropdown {
    background-color: #161f30 !important;
    border-color: #243048 !important;
    color: #f1f5f9 !important;
}
html.dark-mode .select2-search--dropdown .select2-search__field,
body.dark-mode .select2-search--dropdown .select2-search__field {
    background-color: #131b2c !important;
    border-color: #243048 !important;
    color: #f1f5f9 !important;
}
html.dark-mode .select2-results__option,
body.dark-mode .select2-results__option {
    color: #cbd5e1 !important;
}

/* Pagination in Dark Mode */
html.dark-mode .pagination .page-link,
body.dark-mode .pagination .page-link {
    background-color: #161f30 !important;
    border-color: #243048 !important;
    color: #cbd5e1 !important;
}
html.dark-mode .pagination .page-item.active .page-link,
body.dark-mode .pagination .page-item.active .page-link {
    background-color: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
    color: #ffffff !important;
}
html.dark-mode .pagination .page-item.disabled .page-link,
body.dark-mode .pagination .page-item.disabled .page-link {
    background-color: #131b2c !important;
    border-color: #243048 !important;
    color: #64748b !important;
}

/* Transaction Detail & Account Pages in Dark Mode */
html.dark-mode .trx-card,
body.dark-mode .trx-card,
html.dark-mode .trx-overview-card,
body.dark-mode .trx-overview-card,
html.dark-mode .acct-card,
body.dark-mode .acct-card {
    background: #131b2c !important;
    background-color: #131b2c !important;
    border-color: #243048 !important;
}
html.dark-mode .trx-card-header,
body.dark-mode .trx-card-header {
    background: #161f30 !important;
    border-bottom-color: #243048 !important;
}
html.dark-mode .trx-card-title,
body.dark-mode .trx-card-title {
    color: #f8fafc !important;
}
html.dark-mode .trx-info-item,
body.dark-mode .trx-info-item {
    border-bottom-color: #243048 !important;
}
html.dark-mode .trx-label,
body.dark-mode .trx-label {
    color: #94a3b8 !important;
}
html.dark-mode .trx-value,
body.dark-mode .trx-value {
    color: #f8fafc !important;
}
html.dark-mode .token-box,
body.dark-mode .token-box {
    background: #161f30 !important;
}
html.dark-mode .acct-bank,
body.dark-mode .acct-bank {
    color: var(--brand-color) !important;
}
html.dark-mode .acct-fee,
body.dark-mode .acct-fee {
    color: #94a3b8 !important;
}
html.dark-mode .alert-secondary,
body.dark-mode .alert-secondary {
    background-color: #161f30 !important;
    border-color: #243048 !important;
    color: #cbd5e1 !important;
}

/* Enforce straight line for all table headings across all tables */
table th, table thead th, .table th, .table thead th, .nk-tb-head .nk-tb-col, th {
    white-space: nowrap !important;
}

/* Enforce table action buttons to be side-by-side with gap and no vertical stacking */
table td:has(> .btn),
table td:has(> a.btn),
table td:has(> form.d-inline),
table td:has(> .btn-circle) {
    white-space: nowrap !important;
}
table td > .btn,
table td > a.btn,
table td > form.d-inline {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-right: 5px !important;
    margin-bottom: 0 !important;
    vertical-align: middle !important;
}

