:root {
    /* Color Palette - Updated Theme */
    --primary: #524CBF;
    /* Updated */
    --primary-light: #7E75E6;
    --primary-dark: #312BA1;
    /* Updated hover */
    --secondary: #00E5FF;



    --accent: #FF4081;

    --bg-body: #F4F7FE;
    --bg-card: #FFFFFF;
    --bg-sidebar: #FFFFFF;

    --text-main: #2B3674;
    --text-secondary: #A3AED0;
    --text-light: #FFFFFF;

    --success: #05CD99;
    --warning: #FFB547;
    --danger: #EE5D50;

    --shadow-sm: 0px 2px 4px rgba(112, 144, 176, 0.08);
    --shadow-md: 0px 18px 40px rgba(112, 144, 176, 0.12);

    --radius-sm: 5px;
    --radius-md: 16px;
    --radius-lg: 30px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.close-sidebar-btn {
    display: none;
}

.sidebar {
    width: 250px;
    background: var(--bg-sidebar);
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    border-right: none;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.04);
    z-index: 100;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.logo-area {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    /* Reduced margin */
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    list-style: none;
    flex: 1;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(124, 77, 255, 0.1);
    color: var(--primary);
    font-weight: 700;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 36px;
    background: var(--primary);
    border-radius: 4px 0 0 4px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 10px 30px 30px 30px;
    /* Reduced top padding */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Header */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 30px;
    border-radius: 10px;
    /* Reduced radius to 10px */
    height: 90px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Added shadow for visibility */
    position: relative;
    z-index: 50;
}

/* Updated Welcome Styles for Topbar */
.dashboard-welcome {
    margin-bottom: 0;
}

.dashboard-welcome h1,
.dashboard-welcome h2 {
    font-size: 24px;
    color: var(--text-main);
    margin: 0;
    line-height: 1.2;
}

.dashboard-welcome h1 span {
    color: var(--primary);
}

.dashboard-welcome p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.page-title h6 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.page-title h2 {
    font-size: 34px;
    margin: 0;
}

/* Fix for direct class usage in some views */

p.page-subtitle {
    margin-top: 0;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 0;
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 0px 10px;
    /* Reduced padding */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.avatar {
    width: 45px;
    /* Increased for 90px topbar */
    height: 45px;
    /* Increased for 90px topbar */
    border-radius: 50%;
    background: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Cards & Dashboard */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-title {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(124, 77, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 12px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 12px;
}

.form-control {
    width: 100%;
    padding: 10px 10px;
    border: 1px solid #E0E5F2;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-main);
    background: #FFFFFF;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(124, 77, 255, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 5px;
    /* Global radius 5px */
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 14px;
    gap: 8px;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background: #312BA1;
    /* Updated hover */
}

.btn-primary.btn-inactive {
    background: rgba(82, 76, 191, 0.5);
    cursor: not-allowed;
}

.btn-primary.btn-inactive:hover {
    background: rgba(82, 76, 191, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-block {
    width: 100%;
}

/* Alert/Toast */
.alert {
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: rgba(238, 93, 80, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.alert-success {
    background: rgba(5, 205, 153, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

/* Authentication Layouts */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: white;
    padding: 0;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 100%;
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    height: 100vh;
}

.login-side-visual {
    flex: 1;
    background-color: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-side-visual h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    z-index: 2;
    color: #ffffff;
}

.login-side-visual img {
    max-width: 100%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.login-form-container {
    flex: 1;
    padding: 60px 80px;
    /* Increased padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 25px;
}

.login-header h3 {
    font-size: 22px;
    /* margin-bottom: 4px; */
    /* Reduced spacing */
    color: var(--text-main);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background: white;
    color: var(--text-main);
    transition: all 0.2s;
}

.btn-social:hover {
    background: #f9f9f9;
}

.btn-google {
    border-color: #E0E0E0;
    color: var(--text-main);
}

.btn-google:hover {
    background: #FFF0F0;
    border-color: #EA4335;
    color: #EA4335;
}

.btn-facebook {
    border-color: #E0E0E0;
    color: var(--text-main);
}

.btn-facebook:hover {
    background: #F0F6FF;
    border-color: #1877F2;
    color: #1877F2;
}

.divider-or {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.divider-or::before,
.divider-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e0e0e0;
}

.divider-or::before {
    left: 0;
}

.divider-or::after {
    right: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* Account Type Page specific */
.auth-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 100px;
    width: 100%;
    box-sizing: border-box;
    background-color: white;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 2px 5px 5px rgba(0, 0, 0, 0.05);
    height: 60px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1000;
    top: 0;
}

.auth-nav .logo-area {
    margin-bottom: 0;
}

.auth-nav-action {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-nav-action .btn {
    width: 125px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 5px;
    /* Added radius */
}

.account-type-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 100px;
    /* Increased padding to match header */
}

.account-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    /* Reduced min-width to fit 4 */
    gap: 20px;
    /* Reduced gap slightly */
    margin-top: 40px;
}

.account-card {
    cursor: pointer;
    position: relative;
    display: block;
}

.account-card input {
    display: none;
}

.card-content {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Ensure text centering is kept */
}

.account-card:hover .card-content {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.08);
    /* Strong shadow */
    transform: translateY(-8px);
    /* Tilt up */
    border-color: #d1d5db;
    /* Slight darken border */
}

.account-card input:checked+.card-content {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(72, 62, 199, 0.1);
}

.badge-free {
    position: absolute;
    top: 15px;
    font-size: 14px;
    /* Increased font size */
    color: var(--text-secondary);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    font-size: 24px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-main);
}

.card-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mt-40 {
    margin-top: 40px;
}

.text-center {
    text-align: center;
}



/* Landing Page Styles */
/* Landing Page Styles */
.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 100px;
    height: 60px;
    background: white;
    width: 100%;
    box-sizing: border-box;
    /* Match sizing */
    border-bottom: 1px solid #e9ecef;
    /* Match styling */
    position: sticky;
    /* Make sticky */
    top: 0;
    /* Stick to top */
    z-index: 1000;
    box-shadow: 2px 5px 5px rgba(0, 0, 0, 0.05);
    /* Match shadow */
}

.nav-links-desktop {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links-desktop a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
}

.auth-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-text {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;

}


.btn-signup {
    padding: 0 !important;
    width: 125px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 14px;
}

.hero-section {
    padding: 80px 100px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(82, 76, 191, 0.03) 0%, transparent 20%);
    min-height: 450px;
}

.hero-content {
    flex: 1;
    padding-right: 0px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    FILTER: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.hero-subtitle {
    color: var(--primary);
    /* text-transform: uppercase; Removed per request */
    font-size: 14px;
    /* letter-spacing: 1px; */
    margin-bottom: 10px;
}

.hero-title {
    font-size: 60px !important;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 700;
}

.hero-desc {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 10px;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 15px;
    max-width: 500px;
    align-items: center;
    /* Ensure vertical alignment */
}

.hero-cta input {
    flex: 1;
    height: 50px;
    /* Fixed height */
    padding: 0 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    /* Rounded rect */
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
    background: white;
    box-sizing: border-box;
    /* Ensure padding doesn't affect height */
}

.hero-cta input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(82, 76, 191, 0.1);
}

.hero-cta button {
    height: 50px;
    /* Match input height */
    padding: 0 30px;
    border-radius: 8px;
    /* Match input */
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stats Section */
.stats-section {
    background: #312BA1;
    padding: 80px 100px;
    color: white;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        transform: scale(1);
    }
}

.stat-item h2 {
    font-size: 48px;
    color: white;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.stat-item p span {
    font-size: 14px;
    font-weight: 400;
    /* Reset weight for sub-text */
    display: block;
    margin-top: 5px;
    opacity: 0.8;
}

/* Audience Section */
.audience-section {
    padding: 30px 100px;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 20px;

}

.grid-4-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.audience-card {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 20px 10px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Permanent shadow */
    position: relative;
    overflow: hidden;
}

.audience-card:hover {
    transform: translateY(-15px);
    /* Lift upward */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.audience-card .icon-circle {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 25px;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(82, 76, 191, 0.25);
    transition: all 0.3s ease;
}

.audience-card:hover .icon-circle {
    transform: scale(1.1);
    background: var(--primary-dark);
}

.audience-card h3 {
    margin-bottom: 15px;
    font-size: 16px;
    /* Reduced from 22px */
    font-weight: 700;
}

.audience-card p {
    color: #555555;
    /* Darker grey for better visibility */
    margin-bottom: 25px;
    font-size: 17px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
    padding: 0 5px;
}

.feature-list li {
    margin-bottom: 12px;
    font-size: 14px;
    color: #555555;
    /* Darker grey */
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-list li i {
    color: var(--primary);
    font-size: 14px;
    margin-top: 4px;
    /* Align check with text top */
}

.btn-learn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    /* Pill shape */
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    margin-top: auto;
}

.btn-learn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(82, 76, 191, 0.3);
    transform: translateY(-2px);
}

.btn-dashboard {
    background: var(--primary);
    color: white;
    border: 1px solid transparent;
    /* Added for alignment with inputs */
    /* box-shadow: 0 4px 14px 0 rgba(82, 76, 191, 0.3); */
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 8px;
}

.btn-outline {
    background: white;
    color: var(--text-primary);
    border: 1px solid #d1d5db;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 8px;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: var(--primary);
}

.btn-dashboard:hover {
    background: var(--primary-dark);
    /* transform: translateY(-2px); */
    /* box-shadow: 0 6px 20px rgba(82, 76, 191, 0.4); */
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid transparent;
    /* Added for alignment */
    /* box-shadow: 0 4px 14px 0 rgba(82, 76, 191, 0.3); */
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    /* transform: translateY(-2px); */
    /* box-shadow: 0 6px 20px rgba(82, 76, 191, 0.4); */
}

/* Landing Page Specific Button */
.landing-btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(82, 76, 191, 0.3);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.landing-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 76, 191, 0.4);
}

/* Features Section */
.features-section {
    padding: 40px 100px;
    background: white;
}

.grid-3-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


.feature-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    /* Visible border */
    position: relative;
    overflow: hidden;
    /* For containing the scan effect */
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(82, 76, 191, 0.1);
}

/* Blue glass scan effect */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(82, 76, 191, 0.1),
            transparent);
    transition: none;
}

.feature-card:hover::before {
    transition: left 0.6s ease;
    left: 100%;
}

.feature-card.selected {
    border: 2px solid var(--primary);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(82, 76, 191, 0.1);
    /* Lighter bg for icon */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    /* Primary color for icon */
    margin-bottom: 25px;
    font-size: 20px;
    transition: 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 19px;
    line-height: 1.6;
}

/* App Section */
/* App Section */
/* App Section */
.app-section {
    padding: 100px 100px;
    background: #1B254B;
    /* Dark Blue from image */
    color: white;
}

.grid-2-app {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Give more space to text */
    align-items: center;
    gap: 50px;
}

.app-content h2 {
    font-size: 40px;
    /* Reduced by another 4px */
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.app-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.6;
    max-width: 500px;
}

.app-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    max-width: 500px;
}

.app-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: white;
    font-weight: 500;
}

.app-feature-item i {
    color: var(--success);
    /* Green checkmark */
    font-size: 18px;
}

.app-badges {
    display: flex;
    gap: 15px;
}

.app-badges img {
    height: 50px;
    cursor: pointer;
    transition: transform 0.2s;
}

.app-badges img:hover {
    transform: translateY(-3px);
}

.app-image {
    text-align: right;
}

.app-image img {
    width: 82%;
    /* Reduced width slightly */
    max-width: 600px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    /* Add a slight rotation if needed to match image exactly, but standard usually fine */
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 100px;
    background: white;
    /* Or very light grey #f9f9f9 */
}

.grid-3-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Increased shadow */
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(82, 76, 191, 0.1);
    /* Subtle primary color border */
}

.stars {
    color: #FFB547;
    /* Warning color for stars */
    margin-bottom: 20px;
    font-size: 18px;
}

.stars i {
    margin-right: 5px;
}

.quote {
    color: #555555;
    /* Dark grey */
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    font-style: italic;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.1;
    color: var(--text-main);
}

.user-info span {
    font-size: 10px;
    color: var(--text-secondary);
    display: block;
    line-height: 1.1;
}

/* Main Footer */
.main-footer {
    background: #1B254B;
    padding: 40px 100px 20px;
    /* Reduced vertical padding */
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin: 20px 0;
    max-width: 300px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--primary-light);
}

.footer-logo-img {
    height: 40px;
    width: auto;
    /* Optional: filter to make logo white if it's dark text */
    /* filter: brightness(0) invert(1); */
}

.tld {
    color: var(--primary-light);
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
    font-size: 14px;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-app h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
    /* Ensure visibility */
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 5px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    /* Prevent stretching */
}



.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal a:hover {
    color: white;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20BA5A;
}

.whatsapp-icon {
    margin-top: 16px;
}

/* Footer Badge Zoom Out Effect */
.footer-badges img {
    height: 40px;
    width: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    object-fit: contain;
    /* Ensure aspect ratio */
    transition: transform 0.3s ease;
}

.footer-badges img:hover {
    transform: scale(0.9);
    /* Zoom out effect */
}

/* --- Dashboard High Fidelity Styles --- */

.dashboard-welcome {
    margin-bottom: 15px;
    /* Reduced */
}

.dashboard-welcome h1 {
    font-size: 30px;
    color: var(--text-main);
    /* Dark text "Hi, Adewale" */
    margin-bottom: 0px;
    /* Reduced */
}

.dashboard-welcome h1 span {
    color: var(--primary);
}

.dashboard-welcome p {
    color: var(--text-secondary);
    font-size: 16px;
}

.dashboard-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    /* Ensure columns stretch to same height */
}

.dashboard-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Common Card Styling Updates */
.card {
    border: none;
    box-shadow: 0 10px 30px rgba(112, 144, 176, 0.12);
    /* Increased visibility */
    border-radius: 10px;
    /* margin-bottom: 10px; */
}

/* Identity Card */
.card-identity {
    background: #D3D0FF;
    /* Updated color */
    padding: 20px;
    /* Reduced padding */
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    /* Fill remaining space */
}

.badge-purple {
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.icon-identity-circle {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(112, 144, 176, 0.15);
}

.card-identity h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card-identity p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.link-get-started {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

/* Wallet Card */
.card-wallet {
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Fill column height */
}

.wallet-top {
    background: #05CD99;
    padding: 40px 30px;
    text-align: center;
    color: white;
    flex: 1;
}

.wallet-top h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 5px;
}

.wallet-top p {
    opacity: 0.8;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.wallet-bottom {
    background: #E9FBF5;
    /* Very light green */
    padding: 30px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wallet-bottom h3 {
    color: #A3AED0;
    font-size: 24px;
    margin-bottom: 5px;
}

.wallet-bottom p {
    color: #A3AED0;
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-pill-green {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    border-radius: 5px;
    /* Updated radius */
    padding: 10px 25px;
    font-weight: 600;
    font-size: 14px;
}

.btn-pill-green:hover {
    background: white;
    color: #05CD99;
}

.btn-pill-outline {
    background: transparent;
    border: 1px solid #A3AED0;
    color: #A3AED0;
    border-radius: 5px;
    /* Updated radius */
    /* Updated radius */
    padding: 10px 25px;
    font-weight: 600;
    font-size: 14px;
}

/* Profile Card */
.card-profile {
    padding: 30px;
    height: 100%;
    /* Fill column height */
}

.profile-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.profile-label {
    font-size: 14px;
    color: var(--text-secondary);
    width: 20px;
}

.profile-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
}

.badge-active {
    background: rgba(5, 205, 153, 0.1);
    color: var(--success);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 10px;
}

/* Topbar Actions */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-icon {
    width: 50px;
    /* Increased for 90px topbar */
    height: 50px;
    /* Increased for 90px topbar */
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--primary);
    /* Increased visibility */
    font-weight: bold;
    font-size: 20px;
    /* Increased size */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: 0.2s;
}

.btn-icon:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Sidebar Refinements */
.nav-link {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 10px;
    /* Reduced padding */
    justify-content: flex-start;
}

.nav-link:hover {
    background: transparent;
    color: var(--primary);
}

.nav-link.active {
    background: transparent;
    color: var(--text-main);
    font-weight: 700;
}

.nav-link.active::after {
    display: block;
    right: -20px;
    /* Position on edge of sidebar */
    width: 4px;
    background: var(--primary);
    border-radius: 4px;
}

.nav-icon {
    width: 30px;
    text-align: left;
    font-size: 14px;
}

.nav-item {
    margin-bottom: 2px;
}

/* Calendar Card */
.card-calendar {
    padding: 25px;
    margin-bottom: 20px;
    /* Reduced from 30px */
    background: white;
    border-radius: 10px;
    /* Updated radius */
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Ensure vertical alignment */
    margin-bottom: 5px;
    /* Increased spacing */
}

.cal-date {
    font-weight: 700;
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.cal-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: 28px;
    /* Aligned with text (18px icon + 10px gap) */
}

.link-view-all {
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
}

/* Transaction Table Styles */
.table-transactions {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.table-transactions thead th {
    text-align: left;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 0 20px;
}

.table-transactions tbody tr td {
    background: transparent;
    padding: 15px 20px;
    vertical-align: middle;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

/* Status Badges */
.badge-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.badge-success {
    background: rgba(5, 205, 153, 0.1);
    color: var(--success);
}

.badge-overdue {
    background: rgba(238, 93, 80, 0.1);
    color: var(--danger);
}

.badge-pending {
    background: rgba(255, 181, 71, 0.1);
    color: var(--warning);
}

/* Text Styles */
.tx-main {
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}

.tx-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.link-action {
    color: var(--primary);
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    font-size: 14px;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    /* Ensures it stays at bottom even if nav is short */
    width: 100%;
}

/* Dark Mode Variables & Overrides */
body.dark-mode {
    /* Horizon UI Dark Theme Palette */
    --bg-body: #0b1437 !important;
    --bg-card: #111c44 !important;
    --bg-sidebar: #111c44 !important;

    --text-main: #ffffff !important;
    --text-secondary: #a3aed0 !important;
    --text-light: #ffffff !important;

    /* Dashboard.css variable mappings */
    --card-bg: #111c44 !important;
    --text-primary: #ffffff !important;
    --text-muted: #a3aed0 !important;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .topbar {
    background: #111c44 !important;
    /* Solid dark for topbar or semi-transparent */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
}

body.dark-mode .form-control,
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"] {
    background-color: #0b1437 !important;
    border-color: #2b3674 !important;
    color: #ffffff !important;
}

body.dark-mode .nav-link {
    color: #a3aed0 !important;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

body.dark-mode .card,
body.dark-mode .dashboard-section,
body.dark-mode .stat-card,
body.dark-mode .finance-card,
body.dark-mode .manager-card {
    background: #111c44 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

body.dark-mode .dashboard-welcome h1,
body.dark-mode .dashboard-welcome h2,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff !important;
}

body.dark-mode .modern-table th {
    background: #1b2559 !important;
    color: #a3aed0 !important;
    border-bottom: 1px solid #2b3674 !important;
}

body.dark-mode .modern-table td {
    color: #ffffff !important;
    border-bottom: 1px solid #2b3674 !important;
}

body.dark-mode .modern-table tr:hover td {
    background: #1b2559 !important;
    /* Force dark bg on hover, maybe slightly lighter */
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

body.dark-mode .topbar-search input {
    background: #0b1437 !important;
    color: #fff !important;
    border-color: #2b3674 !important;
}

body.dark-mode .notification-dropdown,
body.dark-mode .profile-dropdown {
    background: #111c44 !important;
    border: 1px solid #2b3674 !important;
}

body.dark-mode .notification-dropdown strong,
body.dark-mode .profile-dropdown strong {
    color: #ffffff !important;
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .search-item:hover {
    background: #1b2559 !important;
}

/* Additional Dark Mode Fixes */
body.dark-mode .search-icon {
    color: #ffffff !important;
}

body.dark-mode .btn-icon {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .btn-icon:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .dropdown-list a,
body.dark-mode .notif-list li,
body.dark-mode .notif-list a {
    color: #a3aed0 !important;
}

body.dark-mode .dropdown-list a:hover {
    color: #ffffff !important;
}

body.dark-mode .n-title {
    color: #ffffff !important;
}

body.dark-mode .n-msg,
body.dark-mode .n-time {
    color: #a3aed0 !important;
}

body.dark-mode .notif-list li:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode .sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .stat-value,
body.dark-mode .finance-amount {
    color: #ffffff !important;
}

body.dark-mode .stat-label,
body.dark-mode .finance-label {
    color: #a3aed0 !important;
}

body.dark-mode .btn-social {
    background: #111c44 !important;
    border-color: #2b3674 !important;
    color: #ffffff !important;
}

body.dark-mode .btn-social:hover {
    background: #1b2559 !important;
}

body.dark-mode .divider-or {
    color: #a3aed0 !important;
}

body.dark-mode .divider-or::before,
body.dark-mode .divider-or::after {
    background: #2b3674 !important;
}

body.dark-mode .auth-nav,
body.dark-mode .landing-nav {
    background-color: #111c44 !important;
    border-bottom-color: #2b3674 !important;
}

body.dark-mode .nav-links-desktop a {
    color: #ffffff !important;
}

body.dark-mode input::placeholder {
    color: #a3aed0 !important;
    opacity: 1;
}

body.dark-mode textarea::placeholder {
    color: #a3aed0 !important;
    opacity: 1;
}

body.dark-mode .user-name,
body.dark-mode .profile-name {
    color: #ffffff !important;
}

body.dark-mode .text-primary {
    color: #ffffff !important;
}

body.dark-mode .text-main {
    color: #ffffff !important;
}

/* Ensure any hardcoded inline color overrides are handled if they use vars now */
.residence-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

body.dark-mode .residence-info {
    background: #1b2559 !important;
    border-color: #2b3674 !important;
}

/* Rent Page Styles & Dark Mode */
.lease-alert-banner {
    background: #fff7ed;
    color: #9a3412;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.lease-alert-content {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lease-alert-content strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.lease-alert-content span {
    font-size: 13px;
    opacity: 0.9;
}

.lease-alert-icon {
    background: #ffedd5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ea580c;
}

.lease-alert-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: white;
    border: 1px solid #fb923c;
    color: #ea580c;
    white-space: nowrap;
}

body.dark-mode .lease-alert-banner {
    background: rgba(234, 88, 12, 0.1);
    border-color: rgba(234, 88, 12, 0.2);
    color: #fdba74;
}

body.dark-mode .lease-alert-icon {
    background: rgba(234, 88, 12, 0.2);
    color: #fdba74;
}

body.dark-mode .lease-alert-btn {
    background: transparent;
    border-color: #fdba74;
    color: #fdba74;
}

body.dark-mode .detail-value {
    color: #ffffff !important;
}

body.dark-mode .detail-label {
    color: #a3aed0 !important;
}

body.dark-mode .manager-section {
    background: #111c44 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .manager-name {
    color: #ffffff !important;
}

body.dark-mode .manager-phone {
    color: #a3aed0 !important;
}

/* Green Finance Card Text Fix */
body.dark-mode .finance-green .finance-label,
body.dark-mode .finance-green .finance-amount {
    color: #ffffff !important;
    opacity: 1 !important;
}

body.dark-mode .finance-label:not(.finance-green *) {
    color: #a3aed0 !important;
}

/* Contacts Page Styles & Dark Mode */
.filters-container {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: all 0.2s;
    background: #f8fafc;
}

.contact-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-value {
    font-size: 13px;
    color: #4b5563;
}

/* Contacts Dark Mode Override */
body.dark-mode .filters-container {
    background: #111c44 !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .contact-search-input {
    background: #0b1437 !important;
    color: white !important;
    border-color: #2b3674 !important;
}

body.dark-mode .contact-name {
    color: #ffffff !important;
}

body.dark-mode .profile-value {
    color: #a3aed0 !important;
}

body.dark-mode .filter-btn {
    background: #0b1437;
    color: #a3aed0;
    border-color: #2b3674;
}

body.dark-mode .filter-btn.active {
    background: #2b3674 !important;
    color: white !important;
}

body.dark-mode .toggle-btn {
    color: #a3aed0;
}

body.dark-mode .toggle-btn.active {
    background: #2b3674 !important;
    color: white !important;
}

/* Messages Page Dark Mode Override */
body.dark-mode .messages-layout,
body.dark-mode .messages-sidebar,
body.dark-mode .chat-window,
body.dark-mode .chat-header,
body.dark-mode .chat-input-area {
    background: #111c44 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .search-box input,
body.dark-mode .message-input {
    background: #0b1437 !important;
    color: white !important;
    border-color: #2b3674 !important;
}

body.dark-mode .msg-name,
body.dark-mode .header-user h3,
body.dark-mode .modal-card h3 {
    color: white !important;
}

body.dark-mode .msg-body,
body.dark-mode .msg-time,
body.dark-mode .action-btn {
    color: #a3aed0 !important;
}

body.dark-mode .conversation-item:hover,
body.dark-mode .conversation-item.active {
    background: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .message-bubble.received .bubble-content {
    background: #1b2559 !important;
    color: white !important;
    border-color: #2b3674 !important;
}

body.dark-mode .modal-card {
    background: #111c44 !important;
    color: white !important;
}

body.dark-mode .user-search-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .modal-header {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* User Search Messages */
.user-search-name {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}

.user-search-role {
    font-size: 11px;
    color: #9ca3af;
    text-transform: capitalize;
}

body.dark-mode .user-search-name {
    color: white !important;
}

body.dark-mode .user-search-role {
    color: #a3aed0 !important;
}

/* Modal Content Styles */
.modal-title {
    margin-bottom: 10px;
    font-size: 18px;
    color: #1f2937;
}

.modal-desc {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-cancel {
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

body.dark-mode .modal-title {
    color: white !important;
}

body.dark-mode .modal-desc {
    color: #a3aed0 !important;
}

body.dark-mode .btn-cancel {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

body.dark-mode .btn-outline,
body.dark-mode a.btn-outline,
body.dark-mode button.btn-outline {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #e5e7eb !important;
}

body.dark-mode .btn-outline:hover,
body.dark-mode a.btn-outline:hover,
body.dark-mode button.btn-outline:hover {
    background: rgba(255, 255, 255, 0.13) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Fix buttons with white background inline styles */
body.dark-mode button[style*="background: white"],
body.dark-mode button[style*="background:white"],
body.dark-mode a[style*="background: white"] {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #e5e7eb !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Applications Page Styles */
.empty-state-title {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.app-title {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.app-subtitle {
    font-size: 12px;
    color: #6b7280;
}

.app-meta {
    font-size: 11px;
    color: #4b5563;
    margin-top: 4px;
}

.app-title-sm {
    font-size: 13px;
    color: #374151;
}

.table-text-cell {
    padding: 15px 12px;
    color: #374151;
    font-size: 13px;
}

/* Timeline */
.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    margin-bottom: 4px;
}

.timeline-dot.passed {
    background: #10b981;
}

.timeline-label {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 400;
}

.timeline-label.passed {
    color: #065f46;
    font-weight: 600;
}

/* Modal Styles Global */
.modal-header-title {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
}

.modal-view-name {
    font-weight: 700;
    color: #111827;
    font-size: 16px;
}

.modal-view-email {
    font-size: 14px;
    color: #6b7280;
}

.detail-label-sm {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
}

.detail-value-md {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
    margin-top: 4px;
}

.detail-value-success {
    font-size: 14px;
    color: #15803d;
    font-weight: 700;
    margin-top: 4px;
}

.modal-info-box {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
    margin-bottom: 20px;
}

.detail-text-content {
    font-size: 13px;
    color: #4b5563;
    margin-top: 5px;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Dark Mode Overrides for Apps */
body.dark-mode .empty-state-title {
    color: white !important;
}

body.dark-mode .empty-state-text {
    color: #a3aed0 !important;
}

body.dark-mode .app-title {
    color: white !important;
}

body.dark-mode .app-subtitle {
    color: #a3aed0 !important;
}

body.dark-mode .app-meta {
    color: #94a3b8 !important;
}

body.dark-mode .app-title-sm {
    color: #e2e8f0 !important;
}

body.dark-mode .table-text-cell {
    color: #cbd5e1 !important;
}

body.dark-mode .timeline-dot:not(.passed) {
    background: #4b5563 !important;
}

body.dark-mode .timeline-label:not(.passed) {
    color: #6b7280 !important;
}

body.dark-mode .timeline-label.passed {
    color: #34d399 !important;
}

body.dark-mode .modal-header-title {
    color: white !important;
}

body.dark-mode .modal-close-btn {
    color: #a3aed0 !important;
}

body.dark-mode .modal-view-name {
    color: white !important;
}

body.dark-mode .modal-view-email {
    color: #a3aed0 !important;
}

body.dark-mode .detail-label-sm {
    color: #94a3b8 !important;
}

body.dark-mode .detail-value-md {
    color: white !important;
}

body.dark-mode .detail-value-success {
    color: #4ade80 !important;
}

body.dark-mode .modal-info-box {
    background: #1b2559 !important;
    border-color: #2b3674 !important;
}

body.dark-mode .detail-text-content {
    color: #e2e8f0 !important;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: translateY(-5px);
    color: #FFF;
}

/* Dark Mode for Landing & Pricing Pages */
body.dark-mode {
    background-color: #0b1437;
    color: #ffffff;
}

body.dark-mode .landing-nav {
    background-color: #111c44;
    border-bottom-color: #2b3674;
}

body.dark-mode .nav-links-desktop a {
    color: #ffffff;
}

body.dark-mode .hero-section {
    background: radial-gradient(circle at 10% 20%, rgba(43, 54, 116, 0.2) 0%, #0b1437 20%);
}

body.dark-mode .hero-title,
body.dark-mode .hero-desc,
body.dark-mode .hero-subtitle {
    color: #ffffff;
}

body.dark-mode .hero-desc {
    color: #a3aed0;
}

body.dark-mode .stats-section {
    background-color: #111c44;
}

body.dark-mode .stat-item h2 {
    color: #ffffff;
}

body.dark-mode .stat-item p {
    color: #ffffff;
}

body.dark-mode .stat-item p span {
    color: #a3aed0;
}

body.dark-mode .audience-section,
body.dark-mode .features-section,
body.dark-mode .testimonials-section {
    background-color: #0b1437 !important;
}

/* Cards */
body.dark-mode .audience-card,
body.dark-mode .feature-card,
body.dark-mode .testimonial-card,
body.dark-mode .pricing-card,
body.dark-mode .faq-item {
    background-color: #111c44;
    border-color: #2b3674;
    box-shadow: none;
}

body.dark-mode .audience-card h3,
body.dark-mode .feature-card h3,
body.dark-mode .testimonial-card p.quote,
body.dark-mode .section-header h2,
body.dark-mode .plan-name,
body.dark-mode .plan-price,
body.dark-mode .faq-question,
body.dark-mode .user-info h4 {
    color: #ffffff;
}

body.dark-mode .audience-card p,
body.dark-mode .feature-card p,
body.dark-mode .section-header p,
body.dark-mode .plan-description,
body.dark-mode .features-list li,
body.dark-mode .faq-answer,
body.dark-mode .feature-list li,
body.dark-mode .user-info span {
    color: #a3aed0;
}

body.dark-mode .pricing-container {
    background-image: radial-gradient(#2b3674 1px, transparent 1px);
}

body.dark-mode .pricing-toggle .toggle-label {
    color: #a3aed0;
}

body.dark-mode .pricing-toggle .toggle-label.active {
    color: var(--primary);
}

body.dark-mode .toggle-btn {
    background-color: #2b3674;
}

body.dark-mode .toggle-btn::after {
    background-color: #a3aed0;
}

body.dark-mode .toggle-btn.active::after {
    background-color: #ffffff;
}

body.dark-mode .comparison-section,
body.dark-mode .faq-section {
    background-color: #0b1437;
}

body.dark-mode .comparison-table td {
    color: #a3aed0;
    border-bottom-color: #2b3674;
}

body.dark-mode .comparison-table tr:hover td {
    background-color: #111c44;
}

body.dark-mode .main-footer {
    background-color: #0b1437;
    border-top: 1px solid #2b3674;
}

body.dark-mode .footer-links h4 {
    color: #ffffff;
}

body.dark-mode .footer-links a {
    color: #a3aed0;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
    padding: 8px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

body.dark-mode .theme-toggle-btn {
    color: #ffffff;
}

.theme-toggle-btn:hover {
    color: var(--primary);
}

/* Footer Brand Text Size Increase */
.footer-brand p {
    font-size: 14px !important;
}

/* Increase Footer Text Sizes */
.footer-links h4 {
    font-size: 14px !important;
}

.footer-links ul li a {
    font-size: 12px !important;
}

.footer-bottom p {
    font-size: 14px !important;
}

.footer-legal a {
    font-size: 14px !important;
}

.footer-app h4 {
    font-size: 14px !important;
}

/* Account Type Overrides */
.account-type-container {
    max-width: 1000px;
    margin: 30px auto 0px;
    padding: 0 40px;
}

.account-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.account-card {
    display: block;
    height: 100%;
}

.card-content {
    border-radius: 10px;
    padding: 30px 0px;
    min-height: 100px;
    height: 100%;
}

/* Account Type Typography & Icon Overrides */
.card-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.card-content p {
    font-size: 14px;
}

.badge-free {
    font-size: 14px;
    top: 15px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    font-size: 30px;
    margin: 15px 0;
}

.icon-circle svg {
    width: 30px;
    height: 30px;
}