/*-------------------------------------
Variables and Resets
--------------------------------------*/
:root {
    --primary: #006d5b;
    --accent: #00b383;
    --mpesa: #34b233;
    --bg: #f9fbfc;
    --text: #1a202c;
    --muted: #718096;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    }

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #006d5b;
    --white: #ffffff;
}


/*-------------------------------------
General Layout for Body and HTML
--------------------------------------*/
html, body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh; 
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

html {
    scroll-behavior: smooth;
}



/*-------------------------------------
Header
--------------------------------------*/

header {
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
}

.logo img {
    height: 40px;
    width: auto;
}


nav {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.8;
    background-color: #004d40;
}

nav .auth-buttons {
    display: flex;
    gap: 20px;
    margin-left: 2rem;
}

nav .auth-buttons button {
    background-color: #00897b;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

nav .auth-buttons button:hover {
    background-color: #004d40;
}


nav .auth-buttons button {
    background-color: #00897b;
    border: none;
    padding: 8px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

nav .auth-buttons button:hover {
    background-color: #004d40;
}

nav a.active {
border-bottom: 2px solid var(--accent);
}

nav a.active:hover {
opacity: 1;
}




/*Hamburger Menu for Mobile*/
.hamburger {
    display: none;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    border-radius: 10px;
    background: none;
    backdrop-filter: blur(8px);
    border: 1px solid none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 130;
    transition: background 0.3s ease, transform 0.3s ease;
    position: fixed;
    top: 1rem;
    right: 1rem;
}

.hamburger:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.4s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Panel */
.mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    padding: 4rem 1.5rem 2rem;
    gap: 1rem;
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(18px);
    z-index: 120;
    transition: top 0.4s ease-in-out;
    overflow-y: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.mobile-nav.active {
    top: 0;
}

.mobile-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;

    background: rgba(7, 130, 139, 0.644);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-links a {
    white-space: nowrap;
    overflow: visible;
    flex: 0 1 auto;
    width: auto;
    padding: 0.5rem 1rem;
    background: rgba(7, 130, 139, 0.644);
    border-radius: 6px;
    text-align: center; 
}

/* Unique Hover for .mobile-links a */
.mobile-links a:hover {
    background: linear-gradient(135deg, rgba(0,212,255,0.8), rgba(9,145,193,0.9));
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 8px rgba(0, 225, 255, 0.5);
    color: #ffffff;
    transform: scale(1.03);
}



.mobile-auth {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: nowrap;
    overflow-x: auto; 
    width: 100%;
}

.mobile-nav .mobile-auth button {
    flex: 0 0 auto;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #00bcd4, #007d8c);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(223, 21, 21, 0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 120px;
    text-align: center;
    white-space: nowrap;
}

.mobile-nav .mobile-auth button:hover {
    background: linear-gradient(135deg, #00e1ff, #008c9e);
    box-shadow: 0 0 10px rgba(0, 225, 255, 0.4);
    transform: scale(1.03);
}



.mobile-nav a,
.mobile-nav button {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0.75rem 0;
    border-radius: 6px;
    text-align: left;
    word-break: break-word;
    transition: all 0.3s ease;
}

.mobile-nav a:not(.mobile-links a),
.mobile-nav button {
    width: 100%;
}




#mobileProfileLink {
    width:100%;
    height: auto;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(0, 225, 255, 0.4); /* Stylish border */
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    margin: 0 auto; /* Center in container */
    cursor: pointer;
}

#mobileProfileLink:hover {
    background: rgba(0, 225, 255, 0.1);
    border-color: rgba(0, 225, 255, 0.8);
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 225, 255, 0.4);
}


/* Profile Dropdown */
.profile-dropdown {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1rem;
}

.profile-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
    text-decoration: none;
}

/* Profile Icon */
#mobileProfileIcon.profile-icon {
    font-size: 1.4rem;
    display: inline-block;
    vertical-align: middle;
}


.profile-initials {
    width: 40px;
    height: 40px;
    background-color: #ffffff33; /* semi-transparent white */
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}



/* Dropdown Menu */
.dropdown-menu {
    margin-top: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    animation: fadeIn 0.3s ease forwards;
}

.dropdown-menu a {
    padding-left: 1rem;
    font-size: 1rem;
    word-wrap: break-word;
}

/* Fade In Animation */
@keyframes fadeIn {
from {
    opacity: 0;
    transform: translateY(-6px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}






/* Mobile Only */
@media (max-width: 768px) {
    nav.main-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav a,
    .mobile-nav button {
        font-size: 1rem;
    }
}







/*SPA Navigation*/

.modal-box.hidden {
    display: none;
}

.modal-box.active {
    display: block;
}

.modal-overlay.active {
    display: block;
}



/* SPA Section Visibility */
.section.active {
    display: block; 
}

.hidden {
    display: none !important; 
}

/* Fix anchor scroll offset for fixed header */
.section {
  scroll-margin-top: 80px; 
}







/*-------------------------------------
Loading Spinner
--------------------------------------*/
.loading-spinner {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/*-------------------------------------
Modals (Login & Registration)
--------------------------------------*/

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 1000;
}

.modal-overlay.active {
    display: block;
}

.modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 420px;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    z-index: 1001;
    transition: all 0.3s ease;
}

.modal-box.active {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--primary);
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
}

/* Input Fields */
.modal-box input[type="text"],
.modal-box input[type="tel"],
.modal-box input[type="email"],
.modal-box input[type="password"],
.modal-box select,
.modal-box textarea {
    width: 100%;
    padding: 12px 14px;
    margin: 10px 0;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s ease;
}

.modal-box input:focus,
.modal-box select:focus,
.modal-box textarea:focus {
    border-color: var(--primary);
}

.modal-box select {
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23666' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 12px;
}

.modal-box textarea {
    resize: vertical;
    min-height: 100px;
}

/* Password visibility */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 40px; /* space for the eye icon */
}

.eye-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.1rem;
    color: #666;
}

/* Agreement row */
.agree-terms {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 10px;
}

.agree-terms input[type="checkbox"] {
    margin: 0;
}

.agree-terms label {
    font-size: 0.9rem;
    color: #333;
}

.agree-terms a {
    color: var(--primary);
    text-decoration: none;
}

.agree-terms a:hover {
    text-decoration: underline;
}

/* Submit button */
button[type="submit"] {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #004d40;
}

/* Popup message (success/error) */
.popup-message {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    display: none;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

.popup-message.success {
    background-color: #4CAF50;
}

.popup-message.error {
    background-color: #f44336;
}





/* ========================= Home Section Base ========================= */
.home {
    background: linear-gradient(135deg, #f2fdfc, #ffffff);
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ========================= Hero Container ========================= */
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: start;
}

/* ========================= Features ========================= */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    flex: 1 1 280px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

.feature-item .icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 1rem;
    color: var(--muted);
    text-align: start;
}

/* ========================= CTA Buttons ========================= */
.cta-primary,
.cta-secondary {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 0.5rem;
    text-align: center;
    white-space: nowrap;
}

.cta-primary {
    background: var(--accent);
    color: var(--white);
    border: none;
}

.cta-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.cta-primary:hover,
.cta-secondary:hover {
    transform: scale(1.05);
}

/* ========================= Hero Image ========================= */
.hero-image {
    width: 100%;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* ========================= Highlight Message ========================= */
.highlight-message {
    background: #e6f5f3;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.highlight-message h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.highlight-message p {
    font-size: 1.1rem;
    color: var(--text);
    text-align: start;
}

/* ========================= More Content ========================= */
.more-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.more-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.more-content p {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    text-align: start;
}

.cta-section {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cta-section h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* ========================= Empower Message ========================= */
.empower-message {
    background: #e8f9f6;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 2rem;
}

.empower-message h2 {
    font-size: 1.75rem;
    color: #007055;
    margin-bottom: 1rem;
}

.empower-message p {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: start;
}

.home-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================= Testimonial Section ========================= */
.testimonial-section {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.testimonial-section h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.testimonial-section p {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    text-align: start;
}

.video-placeholder iframe {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ========================= How It Works ========================= */
.how-it-works {
    padding: 2rem 1rem;
    text-align: center;
}

.how-it-works h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.how-it-works-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
    text-align: center;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1 1 280px;
    background: #f0f4f5;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.step-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.step h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}


/* ========================= Unique Features ========================= */
.unique-features {
    background: #ffffff;
    padding: 2rem 1rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.unique-features h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.unique-intro {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: start;
}

.unique-features ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 1.5rem;
    max-width: 800px;
    text-align: left;
}

.unique-features ul li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 1rem;
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

.unique-features ul li::before {
    content: "✅";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.whatsapp-contact {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}


/* ========================= WhatsApp Contact ========================= */
.whatsapp-contact {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================= Responsive Design ========================= */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .features {
        flex-direction: column;
    }

    .feature-item {
        width: 100%;
    }

    .step {
        max-width: 100%;
    }

    .video-placeholder iframe {
        width: 100%;
    }
}




/*-------------------------------------
Contact Section (Centered & Enhanced)
--------------------------------------*/
.contact {
    background-color: #f8f9fa;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.contact-container {
    max-width: 1000px;
    width: 100%;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
    margin: 0 auto;
}

.contact h2 {
    font-size: 2.25rem;
    color: #111827;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.contact p {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.contact-list li {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: #1f2937;
}

.contact-list strong {
    display: inline-block;
    width: 80px;
    color: #374151;
}

.contact-list a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Support Categories */
.support-categories {
    background: #f9f9f9;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
}

.support-categories h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.support-categories ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.support-categories ul li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #333;
}

/* Social Section */
.contact-socials {
    margin-top: 2.5rem;
    text-align: center;
}

.contact-socials p {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.4rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-icons a:hover {
    transform: scale(1.1);
    background-color: var(--accent);
}

/* -------------------------
    Responsive (≤ 768px)
-------------------------- */
@media (max-width: 768px) {
    .contact {
        padding: 3rem 1rem;
    }

    .contact-container {
        padding: 2rem;
    }

    .contact h2 {
        font-size: 1.8rem;
    }

    .support-categories {
        padding: 1rem;
    }

    .support-categories h3 {
        font-size: 1.1rem;
    }
}






/* =================== Company Section =================== */
.company {
    max-width: 1000px;
    margin: 1.5rem auto;
    padding: 1rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif;
    color: #333;
}

.company-header {
    text-align: center;
    margin-bottom: 2rem;
}

.company-header h2 {
    font-size: 2rem;
    color: #006d5b;
    margin-bottom: 0.5rem;
}

.company-header p {
    font-size: 1.1rem;
    color: #555;
    text-align: start;
}

.company-block {
    background: #f9f9f9;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.company-block h3 {
    font-size: 1.4rem;
    color: #006d5b;
    margin-bottom: 0.8rem;
}

.company-block p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

.core-values {
    list-style-type: disc;
    padding-left: 1.2rem;
    margin-top: 1rem;
    color: #444;
}

.core-values li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* News Section */
.company-news {
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.company-news h3 {
    text-align: center;
    color: #006d5b;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.news-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.8rem;
}

.news-card h4 {
    font-size: 1.2rem;
    color: #006d5b;
    margin-bottom: 0.5rem;
}

.news-card p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.read-more {
    font-size: 0.95rem;
    color: #00796b;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}

.read-more:hover {
    text-decoration: underline;
    color: #004d40;
}


/* Policies Section */
.company-policies {
    background: #f9f9f9;
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.company-policies h3 {
    font-size: 1.5rem;
    color: #006d5b;
    margin-bottom: 1rem;
    text-align: center;
}

.company-policies ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
    text-align: left;
}

.company-policies li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.company-policies a {
    color: #00796b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.company-policies a:hover {
    color: #004d40;
    text-decoration: underline;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .company {
        padding: 1.5rem 1rem;
    }

    .news-grid {
        flex-direction: column;
        align-items: center;
    }

    .news-card {
        width: 100%;
        max-width: 340px;
    }

    .company-header h2 {
        font-size: 1.6rem;
    }

    .company-block h3,
    .company-news h3,
    .company-policies h3 {
        font-size: 1.3rem;
    }
}



/* 🔒 Policy Sections */
.policy {
    background-color: #ffffff;
    padding: 3rem 2rem;
    min-height: 100vh;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

.policy h2 {
    font-size: 2rem;
    color: #006d5b;
    margin-bottom: 1.5rem;
}

.policy p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.6;
}

/* .hidden and .active handled globally */
.hidden {
    display: none !important;
}

.active {
    display: block;
}





/*================================================
USER PROFILE
==================================================*/


/*==================================================
DASHBOARD SECTION - General Layout
==================================================*/
#dashboard.section {
    padding: 2rem;
    background: #f4f6f8;
        max-width: 1000px;
    margin: auto;
}


/* Greeting */
#dashboardGreeting {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
}

.greet-name {
    display: block;
    color: #061bdd;
    font-weight: 600;
}

.greet-text {
    display: block;
    font-size: 1.2rem;
    color: #302323;
}

/* Intro Paragraph */
.dashboard-intro {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
    text-align: center;
}

/*==================================================
DASHBOARD CARDS (Savings, Loans, Settings)
==================================================*/
.dashboard-cards {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.dashboard-cards .card {
    flex: 1 1 280px;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.dashboard-cards .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-cards .card h3 {
    margin-top: 0;
}

.dashboard-cards .card button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    background-color: #2563eb;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.dashboard-cards .card button:disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
    pointer-events: none;
}

/*==================================================
SAVINGS GOAL TRACKER
==================================================*/
.savings-goal-tracker {
    background: #fff;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.savings-goal-tracker h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.progress-container {
    background-color: #e5e7eb; /* Light background for contrast */
    height: 20px;
    border-radius: 20px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-bar {
    height: 100%;
    width: 0; /* JS sets actual width */
    border-radius: 20px;
    transition: width 0.5s ease;
    /* Do NOT set background here, JS sets it via inline style: background-color: ${plan.color} */
}

.progress {
    background-color: #2563eb;
    color: white;
    padding-left: 10px;
    line-height: 20px;
    font-size: 0.9rem;
    border-radius: 20px;
}

/*==================================================
DASHBOARD NOTIFICATIONS
==================================================*/
.dashboard-notifications {
    background: #fff;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dashboard-notifications h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.dashboard-notifications ul {
    list-style: none;
    padding: 0;
}

.dashboard-notifications li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/*==================================================
M-PESA LOG
==================================================*/
.mpesa-log {
    background: #fff;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mpesa-log h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.mpesa-log table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.mpesa-log th,
.mpesa-log td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

/*==================================================
LOAN ELIGIBILITY
==================================================*/
.loan-eligibility {
    background: #fff;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.loan-eligibility h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.eligibility-bar {
    background: #e0e0e0;
    height: 22px;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.eligibility-level {
    background-color: #10b981;
    height: 100%;
    color: white;
    line-height: 22px;
    padding-left: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
}

/*==================================================
ACTIVITY TIMELINE
==================================================*/
.activity-timeline {
    background: #fff;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.activity-timeline h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.activity-timeline ul {
    list-style: none;
    padding-left: 0;
}

.activity-timeline li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #ccc;
    font-size: 1rem;
}

.activity-timeline li span {
    margin-right: 0.5rem;
}

/*==================================================
FINANCIAL TIPS
==================================================*/
.financial-tips {
    background: #fff;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.financial-tips h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.financial-tips p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

/*==================================================
PROFILE OVERVIEW
==================================================*/
.profile-overview-widget {
    background: #fff;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-overview-widget h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.profile-overview-widget ul {
    list-style: none;
    padding-left: 0;
}

.profile-overview-widget li {
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

/*==================================================
FINANCIAL LITERACY FORM
==================================================*/
.financial-literacy {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-top: 1.5rem;
}

.financial-literacy h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2563eb;
    text-align: center;
}

.financial-literacy form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.financial-literacy input,
.financial-literacy select {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
}

.financial-literacy button {
    padding: 0.75rem;
    border: none;
    background-color: #2563eb;
    color: white;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.financial-literacy button:hover {
    background-color: #1d4ed8;
}

/*==================================================
PROFILE ICON DROPDOWN (NAV)
==================================================*/
.dashboard-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 24px;
    background-color: #ccc;
    cursor: pointer;
}

.dashboard-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 200px;
    display: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a:hover {
    background-color: #f1f1f1;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.mobile-nav .profile-dropdown .dropdown-menu {
    right: 10px;
    width: 100%;
}

/*==================================================
RESPONSIVE MEDIA QUERIES
==================================================*/
@media (max-width: 768px) {
    #dashboard.section {
        padding: 1rem;
    }

    .dashboard-intro {
        font-size: 0.95rem;
        text-align: center;
    }

    .dashboard-cards {
        flex-direction: column;
        gap: 0.75rem;
    }

    .dashboard-cards .card {
        padding: 0.5rem;
        border-radius: 8px;
    }

    .dashboard-cards .card h3 {
        font-size: 1.1rem;
    }

    .dashboard-cards .card button {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    #dashboardGreeting {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .greet-name,
    .greet-text {
        font-size: 1rem;
        text-align: center;
    }

    .financial-literacy h2 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .financial-literacy input,
    .financial-literacy select {
        font-size: 0.95rem;
        padding: 0.6rem;
        border-radius: 5px;
    }

    .financial-literacy button {
        font-size: 0.95rem;
        padding: 0.6rem;
        border-radius: 5px;
    }
}





/*-------------------------------------------------
Services Section
--------------------------------------------------*/

.services.section {
    background: #f7fafc;
    padding: 4rem 1rem;
    font-family: 'Segoe UI', sans-serif;
}

.services-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-header h2 {
    font-size: 2rem;
    color: #003c3c;
    margin-bottom: 0.5rem;
}

.services-header p {
    color: #555;
    font-size: 1rem;
}

/* Grid */
.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Cards */
.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}

.service-card h3 {
    color: #007b5e;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Form Elements */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background: #fefefe;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.service-card button[type="submit"] {
    padding: 0.75rem 1.5rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.service-card button[type="submit"]:hover {
    background-color: #1e4ed8;
}

/* Payment Options */
.payment-options button {
    display: inline-block;
    margin-right: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: #00a37a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.payment-options button:hover {
    background-color: #007a5a;
}

/* Investment Information Table */
.interest-info {
    margin-top: 4rem;
}

.interest-info h3 {
    font-size: 1.5rem;
    color: #004f4f;
    margin-bottom: 1rem;
}

.interest-info p {
    margin-bottom: 1.5rem;
    color: #444;
}

.responsive-table {
    overflow-x: auto;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.info-table th,
.info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eef1f4;
}

.info-table th {
    background: #e6f4f1;
    color: #003c3c;
    font-weight: 600;
}

.info-table td {
    font-size: 0.95rem;
    color: #333;
}

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

/*-------------------------------------------------
Responsive Styles
--------------------------------------------------*/
@media (max-width: 768px) {
    .services.section {
        padding: 1rem 0.4rem;
    }

    .services-container {
        padding: 0 0.4rem;
    }

    .services-header h2 {
        font-size: 1.5rem;
    }

    .services-header p {
        font-size: 0.95rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    label {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    select {
        padding: 0.6rem;
        font-size: 0.95rem;
        border-radius: 6px;
        margin-bottom: 1rem;
    }

    .service-card button[type="submit"] {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }

    .payment-options button {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        margin-right: 0.5rem;
        border-radius: 6px;
    }

    .interest-info {
        margin-top: 2rem;
    }

    .interest-info h3 {
        font-size: 1.3rem;
        text-align: center;
    }

    .interest-info p {
        font-size: 0.95rem;
        text-align: center;
    }

    .info-table {
        width: 100%;
        table-layout: fixed;
        word-wrap: break-word;
    }

    .info-table th,
    .info-table td {
        padding: 0.5rem;
        font-size: 0.82rem;
        line-height: 1.2;
        word-break: break-word;
        vertical-align: top;
    }

    .info-table th {
        font-size: 0.88rem;
    }
}



/*-------------------------------------
Payment Methods Section
--------------------------------------*/
.payment-methods {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.payment-methods button {
    padding: 10px 16px;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    background: #006d5b;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.payment-methods button:hover {
    background: #009377;
}

/*-------------------------------------
Modals (Shared Style)
--------------------------------------*/
.modal.hidden {
    display: none;
}

.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: #fff;
    padding: 25px 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.modal-content h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #006d5b;
    text-align: center;
}

/* Shared Inputs */
.modal-content form input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Shared Button */
.modal-content form button {
    width: 100%;
    background: #006d5b;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.modal-content form button:hover {
    background: #009377;
}

/* Close Icon */
.modal-content .close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    color: #888;
    cursor: pointer;
}

.modal-content .close:hover {
    color: #000;
}

/* M-PESA Specific */
#mpesa-status {
    font-size: 14px;
    color: #007b5e;
    margin-top: 10px;
    text-align: center;
}

/*-------------------------------------
Responsive Adjustments
--------------------------------------*/
@media (max-width: 480px) {
    .modal-content {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .modal-content h3 {
        font-size: 18px;
    }

    .modal-content form input {
        padding: 8px 10px;
        font-size: 13px;
        border-radius: 6px;
    }

    .modal-content form button {
        padding: 9px;
        font-size: 15px;
        border-radius: 6px;
    }

    .payment-methods button {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 8px;
        margin-bottom: 5px;
    }
}



/*-------------------------------------
Saving Plans Section
--------------------------------------*/
.saving-plans {
    padding: 4rem 1rem;
    max-width: 1000px;
    margin: auto;
}

.saving-plans h1 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary, #006d5b);
    margin-bottom: 2rem;
}

/* Dynamic Plans Grid */
.plans-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .plans-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Individual Plan Card */
.plan {
    background: var(--white, #fff);
    border-radius: var(--radius, 10px);
    padding: 1.5rem;
    box-shadow: var(--shadow, 0 4px 8px rgba(0,0,0,0.05));
    transition: transform 0.2s ease;
}


.plan-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2b6cb0;
    margin-bottom: 0.5rem;
}

.plan-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    margin: 0.4rem 0;
}

.period,
.loan-limit {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.progress-label {
    font-size: 0.85rem;
    color: #444;
    margin-top: 1rem;
}

.progress-container {
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    height: 14px;
    margin-top: 0.4rem;
}



.message {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

/* Payment Buttons */
.saving-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.saving-buttons button {
    background: var(--primary, #006d5b);
    color: white;
    padding: 0.45rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.saving-buttons button:hover {
    background: #009377;
}

/* Loan Form Box */
.form-box {
    margin-top: 3rem;
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary, #006d5b);
    text-align: center;
}

.form-box form,
#loan-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-box input,
.form-box textarea,
#loan-form input,
#loan-form textarea {
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fdfdfd;
    transition: border 0.3s ease;
    width: 100%;
}

#loan-form input:focus,
#loan-form textarea:focus {
    outline: none;
    border-color: #00a77c;
    box-shadow: 0 0 0 3px rgba(0, 167, 124, 0.15);
}

#loan-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-box button,
#loan-form button[type="submit"] {
    background-color: #00a77c;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-box button:hover,
#loan-form button[type="submit"]:hover {
    background-color: #007f5c;
}

/*-------------------------------------
Responsive (Mobile & Small Devices)
--------------------------------------*/
@media (max-width: 768px) {
    .saving-plans {
        padding: 1rem 0.6rem;
    }

    .saving-plans h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .plans-container {
        gap: 1rem;
    }

    .plan {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    .plan-title,
    .plan-name {
        font-size: 1rem;
    }

    .period,
    .loan-limit,
    .progress-label,
    .message {
        font-size: 0.85rem;
    }

    .progress-container {
        height: 10px;
        border-radius: 6px;
    }

    .saving-buttons {
        gap: 0.4rem;
        margin-top: 0.8rem;
    }

    .saving-buttons button {
        padding: 0.35rem 0.7rem;
        font-size: 0.85rem;
        border-radius: 5px;
    }

    .form-box {
        padding: 1.2rem;
        margin-top: 1.5rem;
        border-radius: 10px;
    }

    .form-box h2 {
        font-size: 1.3rem;
    }

    .form-box input,
    .form-box textarea,
    #loan-form input,
    #loan-form textarea {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }

    #loan-form textarea {
        min-height: 80px;
    }

    .form-box button,
    #loan-form button[type="submit"] {
        padding: 0.75rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }
}



/* LOAN MODAL ONLY */
#loan-popup.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    overflow: auto;
    padding: 20px;
}

#loan-popup .modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px 28px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.3s ease-in-out;
}

#loan-popup .close-button {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

#loan-popup h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

#loan-popup form input,
#loan-popup form select,
#loan-popup form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

#loan-popup form input:focus,
#loan-popup form select:focus,
#loan-popup form textarea:focus {
    border-color: #0077cc;
    outline: none;
}

#loan-popup form fieldset {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

#loan-popup form legend {
    font-weight: bold;
    font-size: 1rem;
    padding: 0 8px;
    color: #0077cc;
}

#loan-popup form label {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

#loan-popup form button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #0077cc;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

#loan-popup form button[type="submit"]:hover {
    background-color: #005fa3;
}

#loan-popup #loan-warning {
    color: red;
    font-weight: bold;
    text-align: center;
    margin-top: -8px;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 600px) {
    #loan-popup .modal-content {
        padding: 18px 20px;
        max-height: 95vh;
    }

    #loan-popup form fieldset {
        padding: 14px 12px;
    }
}

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



/* ===============Profile Section Container======================== */
/* ================================
   👤 My Profile Section Container
   ================================ */
#my-profile.section {
    max-width: 1000px;
    margin: 1rem auto;
    padding: 1rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}

/* Heading */
#my-profile h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a202c;
    text-align: center;
}



/* =====================
   📸 Profile Header
   ===================== */
/* =====================
   📸 Profile Header
   ===================== */
.profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.profile-photo {
    flex: 0 0 auto;
    text-align: center;
}

.profile-photo img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    border: 2px solid #e2e8f0;
}

.profile-photo input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    background: #f7fafc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.profile-photo input[type="file"]:hover {
    background: #edf2f7;
}

/* =====================
   🏷️ Status Badges
   ===================== */
.status-badges {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
}

.badge.verified {
    background-color: #38a169; /* green */
}

.badge.unverified {
    background-color: #718096; /* gray */
}

.badge.kyc-pending {
    background-color: #dd6b20; /* orange */
}

/* =====================
   ✅ Verification Buttons
   ===================== */
#phoneVerifyWrapper,
#emailVerifyWrapper,
#kycVerifyWrapper {
    margin: 1rem 0;
}

#phoneVerifyWrapper button,
#emailVerifyWrapper button,
#kycVerifyWrapper button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: none;
    background-color: #3182ce;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#phoneVerifyWrapper button:hover,
#emailVerifyWrapper button:hover,
#kycVerifyWrapper button:hover {
    background-color: #2b6cb0;
}

#phoneVerifyInput,
#emailVerifyInput,
#kycUploadInput {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#phoneVerifyInput input,
#emailVerifyInput input,
#kycUploadInput input {
    padding: 0.6rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.9rem;
}

#phoneVerifyInput button,
#emailVerifyInput button,
#kycUploadInput button {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    background-color: #38a169;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#phoneVerifyInput button:hover,
#emailVerifyInput button:hover,
#kycUploadInput button:hover {
    background-color: #2f855a;
}




/* =====================
   📝 Profile Form
   ===================== */
#profileForm {
    margin-bottom: 2rem;
}

#profileForm label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
}

#profileForm input[type="text"],
#profileForm input[type="email"],
#profileForm input[type="tel"] {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-top: 0.5rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    background: #f9f9f9;
    transition: border 0.3s ease;
}

#profileForm input:focus {
    border-color: #3182ce;
    outline: none;
    background: #fff;
}

#profileForm button {
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: #3182ce;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#profileForm button:hover {
    background: #2b6cb0;
}

/* =====================
   📄 KYC Upload Section
   ===================== */
.kyc-upload {
    margin-top: 2rem;
    padding: 1rem;
    background: #f7f7f7;
    border-radius: 10px;
}

.kyc-upload h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.kyc-upload label {
    display: block;
    font-weight: 500;
    margin-top: 0.75rem;
}

.kyc-upload input[type="file"] {
    margin-bottom: 1rem;
    display: block;
    padding: 0.5rem;
}


/*<!-- VIEW MODE -->*/
.profile-display {

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 20px;
    width: 100%;
    line-height: 1;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.profile-display p {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
}

.profile-display p:last-child {
    border-bottom: none;
}

.profile-display strong {
    color: #444;
    min-width: 160px;
    font-weight: 600;
}

.profile-display span {
    color: #222;
    font-weight: 500;
}

.profile-display button {
    margin-top: 20px;
    background-color: #0057a3;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profile-display button:hover {
    background-color: #004080;
}



/* =============================
   🔔 Notification Preferences
   ============================= */
.notification-settings {
    margin-top: 2rem;
}

.notification-settings h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.notification-settings label {
    display: block;
    margin: 0.5rem 0;
    font-weight: 500;
}

/* =====================
   📜 Activity Log
   ===================== */
.activity-log {
    margin-top: 2rem;
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 10px;
}

.activity-log h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.activity-log ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.activity-log li {
    margin: 0.4rem 0;
    font-size: 0.95rem;
}

/* =====================
   📌 Account Status
   ===================== */
.account-status {
    margin-top: 2rem;
    text-align: center;
}

.account-status h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.status-tag {
    font-weight: bold;
    color: #38a169;
}

/* =============================
   📱 Responsive Adjustments
   ============================= */
@media (max-width: 768px) {
    #my-profile.section {
        padding: 1rem;
        margin: 1rem;
    }

    #my-profile h1 {
        font-size: 1.4rem;
        text-align: center;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .profile-photo img {
        max-width: 90px;
    }

    .profile-photo input[type="file"] {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 6px;
    }

    #profileForm label,
    .kyc-upload label,
    .notification-settings label {
        font-size: 0.9rem;
    }

    #profileForm input,
    .kyc-upload input[type="file"] {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    #profileForm button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .kyc-upload h2,
    .notification-settings h2,
    .activity-log h2,
    .account-status h2 {
        font-size: 1rem;
    }

    .activity-log {
        padding: 0.75rem;
    }

    .activity-log li {
        font-size: 0.85rem;
    }

    .status-tag {
        font-size: 1rem;
    }
}






/* ================================
   💰 My Balance Section Styles
   ================================ */
.my-balance-section {
    padding: 3rem 1rem;
    background: #f4f9ff;
}

.my-balance-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.my-balance-heading {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #005b4f;
}

.my-balance-card {
    background: #f0faff;
    border: 2px solid #d2eff4;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.my-balance-subheading {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #007a70;
}

.my-balance-amount {
    font-size: 1.75rem;
    font-weight: bold;
    color: #0b8057;
}

/* ========================
   📊 Account Table Styles
   ======================== */
.responsive-table {
    overflow-x: auto;
}

.my-balance-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.my-balance-table th,
.my-balance-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eef2f5;
}

.my-balance-table th {
    background-color: #f2f9fc;
    color: #005b4f;
    font-weight: 600;
}

.my-balance-table td {
    color: #333;
    font-size: 1rem;
}

.my-balance-table tr:last-child td {
    border-bottom: none;
}

.my-balance-table td:last-child {
    font-weight: bold;
    color: #0a6b4a;
}

/* ========================
   📁 Investment Listing
   ======================== */
.investment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.investment-list li {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.investment-list li span {
    font-weight: bold;
    color: #0a6b4a;
}

/* ========================
   🧭 Tab Navigation Styles
   ======================== */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: #777c7c;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.tab-btn.active {
    background: #0b8057;
    color: white;
}

.tab-btn:hover {
    background: #009688;
    color: #fff;
}

.tab-content {
    display: block;
}

.tab-content.hidden {
    display: none;
}

/* ========================
   💸 Withdraw Form Styles
   ======================== */
#withdrawForm input,
#withdrawForm textarea {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#withdrawForm button {
    background: #0b8057;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#withdrawForm button:hover {
    background: #0a6b4a;
}

.selected-account-my-balance {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #0b8057;
}

/* ========================
   📱 Responsive Media Query
   ======================== */
@media (max-width: 768px) {
    .my-balance-section {
        padding: 1rem;
    }

    .my-balance-container {
        padding: 1rem;
    }

    .my-balance-heading {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .my-balance-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .my-balance-subheading {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .my-balance-amount {
        font-size: 1.5rem;
    }

    .investment-list li {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .my-balance-table th,
    .my-balance-table td {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .tab-buttons {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    #withdrawForm input,
    #withdrawForm textarea {
        padding: 0.6rem;
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
    }

    #withdrawForm button {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        width: 100%;
    }
}







/*===============My Loans===================== */
/* 💸 My Loans Section Styling */
#my-loans.section {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fdfdfd;
    border-radius: 16px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', sans-serif;
    color: #1e293b;
    transition: all 0.3s ease-in-out;
}

#my-loans h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #0f172a;
}

/* 🧾 Summary Section */
.loan-summary {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 1.1rem;
}

.loan-summary p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* 📁 Loan Categories */
.loan-categories {
    margin-bottom: 2rem;
}

.loan-categories h2 {
    font-size: 1.4rem;
    margin: 1.8rem 0 1rem;
    color: #2563eb;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.4rem;
}

.loan-categories ul {
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.loan-categories ul li {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.98rem;
}

/* 📄 Loan History Table */
.loan-categories table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.loan-categories th,
.loan-categories td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.loan-categories th {
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
}

.loan-categories td {
    font-size: 0.93rem;
    color: #475569;
}

/* 🧾 Delays Message */
.loan-categories p {
    background: #fff7ed;
    padding: 1rem;
    border-left: 4px solid #fb923c;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* 💳 Repayment Options */
.repayment-options {
    text-align: center;
    margin-top: 3rem;
}

.repayment-options h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #059669;
}

.repayment-options button {
    margin: 0.5rem;
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    background-color: #2563eb;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.repayment-options button:hover {
    background-color: #1d4ed8;
}

/* Second Button: Bank Transfer */
.repayment-options button:nth-child(3) {
    background-color: #64748b;
}

.repayment-options button:nth-child(3):hover {
    background-color: #475569;
}

/* 📱 Responsive Styling */
@media (max-width: 768px) {
    #my-loans.section {
        padding: 1.2rem;
        margin: 1rem;
    }

    #my-loans h1 {
        font-size: 1.6rem;
    }

    .loan-summary {
        font-size: 1rem;
        padding: 1rem;
    }

    .loan-categories h2,
    .repayment-options h2 {
        font-size: 1.2rem;
    }

    .loan-categories th,
    .loan-categories td {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .repayment-options button {
        width: 100%;
        margin: 0.5rem 0;
    }
}


.incomplete {
	color: red;
	font-style: italic;
}

.highlight-callout {
	background-color: #f87171;
	color: white;
	font-weight: bold;
	animation: pulse 1s infinite alternate;
}

@keyframes pulse {
	from { transform: scale(1); }
	to { transform: scale(1.05); }
}




/* ===============Savings Section ==========================*/
#my-savings.section {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    font-family: 'Segoe UI', sans-serif;
    color: #2d3748;
}

/* Heading */
#my-savings h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #1a202c;
}

/* Overview Box */
.savings-overview {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.1rem;
}

.savings-overview p {
    margin: 0.5rem 0;
}

.savings-overview progress {
    width: 100%;
    height: 20px;
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background-color: #e2e8f0;
    border-radius: 10px;
}

progress::-webkit-progress-value {
    background-color: #38a169;
    border-radius: 10px;
}

/* Categories List */
.savings-categories {
    margin-bottom: 2rem;
}

.savings-categories h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2b6cb0;
}

.savings-categories ul {
    list-style: none;
    padding-left: 1rem;
}

.savings-categories li {
    margin: 0.5rem 0;
    font-size: 1rem;
    background: #f1f5f9;
    padding: 0.8rem;
    border-radius: 8px;
}

/* Deposit Form */
.savings-actions {
    background: #f7f7f7;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 0 0 1px #e2e8f0;
}

.savings-actions h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #2f855a;
}

.savings-actions input[type="number"],
.savings-actions select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 1rem;
}

.savings-actions button {
    width: 100%;
    padding: 0.8rem;
    background-color: #3182ce;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.savings-actions button:hover {
    background-color: #2b6cb0;
}


@media (max-width: 768px) {
    #my-savings.section {
        padding: 1rem;
        margin: 1rem;
    }

    #my-savings h1 {
        font-size: 1.4rem;
    }

    .savings-overview {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .savings-overview progress {
        height: 16px;
    }

    .savings-categories h2,
    .savings-actions h2 {
        font-size: 1.1rem;
    }

    .savings-categories li {
        font-size: 0.95rem;
        padding: 0.6rem;
    }

    .savings-actions input[type="number"],
    .savings-actions select,
    .savings-actions button {
        font-size: 0.95rem;
        padding: 0.7rem;
    }
}




/* ========================SETTINGS CONTAINER============================ */
/* ============================
   ⚙️ Settings Container
   ============================ */
#settings.section {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    font-family: 'Segoe UI', sans-serif;
    color: #2d3748;
}

/* Section Heading */
#settings h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #1a202c;
}

/* ============================
   Settings Block
   ============================ */
.settings-block {
    margin-bottom: 2.5rem;
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 0 0 1px #e2e8f0;
}

/* Block Headings */
.settings-block h2 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: #2b6cb0;
}

/* ============================
   Forms
   ============================ */
.settings-block form label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #2d3748;
}

.settings-block input[type="text"],
.settings-block input[type="password"],
.settings-block select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 1rem;
}

.settings-block input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* ============================
   Buttons
   ============================ */
.settings-block button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    background-color: #3182ce;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.settings-block button:hover {
    background-color: #2b6cb0;
}

/* Danger & Remove Buttons */
.device-list button,
.settings-block button:nth-of-type(2) {
    background-color: #e53e3e;
    margin-left: 1rem;
}

.device-list button:hover,
.settings-block button:nth-of-type(2):hover {
    background-color: #c53030;
}

/* ============================
   Linked Devices
   ============================ */
.device-list {
    list-style: none;
    padding-left: 0;
}

.device-list li {
    background: #edf2f7;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================
   Language Select + Accessibility
   ============================ */
#languageSelect {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    background: #fff;
}

/* ============================
   Mobile Responsive
   ============================ */
@media (max-width: 768px) {
    #settings.section {
        padding: 1rem;
        margin: 1rem;
    }

    #settings h1 {
        font-size: 1.5rem;
    }

    .settings-block h2 {
        font-size: 1.1rem;
    }

    .settings-block form label {
        font-size: 0.95rem;
    }

    .settings-block input[type="text"],
    .settings-block input[type="password"],
    .settings-block select {
        font-size: 0.95rem;
        padding: 0.7rem;
    }

    .settings-block button {
        width: 100%;
        font-size: 0.95rem;
        padding: 0.7rem;
    }

    .device-list li {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.9rem;
    }

    .device-list button {
        margin-top: 0.5rem;
        margin-left: 0;
    }
}







/*<!-- AI Chat Floating Button -->*/

/* Blur Overlay (Hidden by Default) */
#chat-blur-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
backdrop-filter: blur(6px);
background: rgba(0, 0, 0, 0.2); /* semi-transparent */
z-index: 9998; /* Just below the chat box */
display: none;
transition: opacity 0.3s ease;
}


/* Floating Toggle Button */
#ai-chat-toggle {
position: fixed;
bottom: 160px;
right: 20px;
z-index: 9999;
cursor: pointer;
width: 58px;
height: 58px;
border-radius: 50%;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
transition: transform 0.3s ease;
}

#ai-chat-toggle:hover {
transform: scale(1.08);
}

#ai-chat-toggle img {
width: 100%;
height: 100%;
border-radius: 50%;
display: block;
}

/* Chat Popup Box */
#ai-chat-box {
position: fixed;
bottom: 220px; /* 20px above toggle */
right: 20px;
width: 320px;
max-height: 460px;
background: #ffffff;
border-radius: 12px;
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
display: none;
flex-direction: column;
overflow: hidden;
z-index: 10000;
}

/* Chat Header */
.chat-header {
background-color: #0676b8;
color: white;
padding: 1rem;
font-weight: bold;
position: relative;
text-align: center;
}

/* Close Icon */
.chat-header .close-btn {
position: absolute;
top: 10px;
right: 12px;
font-size: 1.2rem;
cursor: pointer;
}

/* Messages Container */
#chat-messages {
flex: 1;
padding: 0.75rem;
overflow-y: auto;
background: #f9f9f9;
}

/* Chat Bubble Styles */
.chat-bubble {
margin-bottom: 1rem;
display: flex;
align-items: flex-start;
}

.chat-bubble.user .content {
background-color: #e2f0cb;
margin-left: auto;
border-radius: 12px 12px 0 12px;
}

.chat-bubble.ai {
flex-direction: row;
}

.chat-bubble.ai .icon img {
width: 30px;
height: 30px;
margin-right: 0.5rem;
border-radius: 50%;
}

.chat-bubble .content {
padding: 0.6rem 0.9rem;
background: #ffffff;
border-radius: 12px;
max-width: 80%;
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.timestamp {
font-size: 0.75rem;
color: gray;
margin-top: 0.3rem;
}

/* Input Area */
.input-area {
display: flex;
border-top: 1px solid #eee;
background: white;
}

.input-area input {
flex: 1;
padding: 0.7rem 1rem;
border: none;
outline: none;
font-size: 1rem;
}

.input-area button {
background-color: #00a77c;
color: white;
border: none;
padding: 0 1rem;
font-size: 1rem;
cursor: pointer;
transition: background 0.2s ease;
}

.input-area button:hover {
background-color: #007f5c;
}

/* Date Heading */
.date-heading {
text-align: center;
font-size: 0.8rem;
color: #888;
margin: 0.5rem 0;
}

/* Responsive Styles */
@media (max-width: 480px) {
#ai-chat-box {
    position: fixed;
    bottom: 200px !important; /* Ensures chat opens above toggle */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 10px); /* 5px padding on both sides */
    max-height: 75vh;
    box-sizing: border-box;
}

#ai-chat-toggle {
    bottom: 150px;
    width: 40px;
    height: 40px;
}
}



/* WhatsApp Floating Button */
#whatsapp-button {
position: fixed;
bottom: 100px;
right: 20px;
z-index: 9999;
width: 50px;
height: 50px;
display: block;
cursor: pointer;
}

#whatsapp-button img {
width: 100%;
height: 100%;
border-radius: 50%;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
transition: transform 0.2s ease;
}

#whatsapp-button:hover img {
transform: scale(1.05);
}

/* Responsive for small screens */
@media (max-width: 480px) {
#whatsapp-button {
    width: 40px;
    height: 40px;
    right: 15px;
    bottom: 90px;
}
}









/*-------------------------------------
MPESA Payment Section
--------------------------------------*/
.mpesa-section {
max-width: 480px;
margin: 4rem auto;
padding: 2rem;
background: var(--white);
border-radius: var(--radius);
box-shadow: var(--shadow);
text-align: center;
}

.mpesa-section h2 {
color: var(--primary);
margin-bottom: 1rem;
}

.mpesa-section button {
background: var(--mpesa);
margin-top: 1rem;
}

.mpesa-status {
font-weight: 600;
margin-top: 1rem;
color: var(--primary);
}


@media (max-width: 768px) {
.contact {
    padding: 1rem 0.5rem;
    min-height: auto;
}

.contact-container {
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.contact h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
}

.contact p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.contact-list li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.contact-list strong {
    width: 70px;
    font-size: 0.9rem;
}

.contact-list a {
    font-size: 0.9rem;
}

.contact-socials {
    margin-top: 1.5rem;
}

.contact-socials p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.social-icons {
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}
}



/*-------------------------------------
Forgot Password Modal
--------------------------------------*/
#forgotModal form input {
padding: 0.75rem;
border-radius: 8px;
border: 1px solid #ccc;
}

#forgotModal button {
background: var(--accent);
}

/*-------------------------------------
AI Chart
--------------------------------------*/
#ai-chat-box {
position: fixed;
bottom: 160px;
right: 80px;
width: 320px;
background: white;
border: 1px solid #ccc;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
z-index: 9998;
font-family: Inter, sans-serif;
}

#ai-chat-box .header {
background: #006d5b;
color: white;
padding: 10px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
font-weight: bold;
text-align: center;
}

#ai-chat-box .messages {
padding: 10px;
height: 240px;
overflow-y: auto;
font-size: 14px;
display: flex;
flex-direction: column;
gap: 10px;
}

.chat-bubble {
display: flex;
align-items: flex-start;
gap: 8px;
}

.date-heading {
text-align: center;
color: #888;
font-size: 13px;
margin: 10px 0 5px;
font-weight: bold;
border-bottom: 2px solid #3e6411;
}

.chat-bubble.user {
justify-content: flex-end;
}

.chat-bubble.user .content {
background-color: #d0f0f3;
border-radius: 16px 16px 0 16px;
padding: 10px;
max-width: 80%;
color: #00695c;
}

.chat-bubble.ai .icon img {
width: 24px;
height: 24px;
border-radius: 50%;
}

.chat-bubble.ai .content {
background-color: #f1f1f1;
border-radius: 16px 16px 16px 0;
padding: 10px;
max-width: 80%;
color: #333;
}

.timestamp {
font-size: 11px;
color: #888;
margin-top: 5px;
text-align: right;
}

#ai-chat-box .input-area {
display: flex;
border-top: 1px solid #ddd;
}

#ai-chat-box input {
flex: 1;
border: none;
padding: 10px;
font-size: 14px;
}

#ai-chat-box button {
background: #00b383;
color: white;
border: none;
padding: 10px 15px;
cursor: pointer;
}






/*-------------------------------------
Loading Spinner
--------------------------------------*/
/* Loading Spinner */
#loading {
display: none;
margin: 1rem auto;
border: 5px solid #f3f3f3;
border-top: 5px solid var(--accent);
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 0.8s linear infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}










/*-----------------------
----------------Admin Page-----------*/
/* Admin Dashboard Styles */
/* Admin Dashboard Styles */
.admin-dashboard {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 40px auto;
}

.admin-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.stat {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 30%;
    transition: all 0.3s ease;
}

.stat:hover {
    background-color: #e8f5e9;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.stat p {
    font-size: 24px;
    color: #333;
}

button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

#transaction-table,
#users-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

#transaction-table th,
#users-table th,
#transaction-table td,
#users-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

#transaction-table th,
#users-table th {
    background-color: #f4f4f4;
}

#users-table td button {
    background-color: #28a745;
    padding: 8px 12px;
    border-radius: 5px;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#users-table td button:hover {
    background-color: #218838;
}

#transaction-flagging form {
    display: flex;
    flex-direction: column;
}

#transaction-flagging label {
    margin-bottom: 8px;
}

#transaction-flagging input {
    padding: 10px;
    font-size: 16px;
    margin-bottom: 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

#transaction-flagging button {
    background-color: #dc3545;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#transaction-flagging button:hover {
    background-color: #c82333;
}

#admin-logout button {
    background-color: #dc3545;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#admin-logout button:hover {
    background-color: #c82333;
}



/*-------------------------------------
Footer
--------------------------------------*/
footer {
background: var(--primary);
color: var(--white);
padding: 2rem 1rem;
text-align: center;
margin-top: auto; /* Ensures footer stays at the bottom */
}

.footer-content {
max-width: 1024px;
margin: auto;
}

.footer-nav a {
color: var(--white);
margin: 0 1rem;
text-decoration: none;
font-size: 0.9rem;
}

.footer-nav a:hover {
text-decoration: underline;
}

.social-icons a {
margin: 0 0.5rem;
color: var(--white);
font-size: 1.2rem;
transition: color 0.3s ease;
}

.social-icons a:hover {
color: #505525;
}

/*-------------------------------------
Utility Classes
--------------------------------------*/

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

.flex {
display: flex;
}

.justify-center {
justify-content: center;
}

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

/*-------------------------------------
Page Layout
--------------------------------------*/
main {
flex-grow: 1; /* Ensures main content area grows to fill remaining space */
}


@media (max-width: 768px) {
footer {
    padding: 1rem 0.5rem;
    font-size: 0.85rem;
}

.footer-content {
    padding: 0 0.5rem;
}

.footer-nav a {
    display: block;
    margin: 0.4rem 0;
    font-size: 0.85rem;
}

.social-icons a {
    margin: 0 0.3rem;
    font-size: 1rem;
}

/* Utility classes stay the same unless you want to hide or adjust them */
.text-center {
    text-align: center;
}

.flex {
    flex-direction: column; /* Stack on mobile if needed */
}

.justify-center {
    justify-content: center;
}

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

main {
    padding: 0.5rem;
}
}
