/* ============================================
   Zenze Capital LLP - Professional Loan Website CSS
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary-color: #0A1F44;
    --primary-light: #1a3a6b;
    --secondary-color: #00C853;
    --secondary-light: #00e676;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --medium-gray: #e0e0e0;
    --dark-gray: #666666;
    --text-color: #333333;
    --shadow: 0 4px 20px rgba(10, 31, 68, 0.1);
    --shadow-hover: 0 8px 30px rgba(10, 31, 68, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@supports (content-visibility: auto) {
    section:not(.hero):not(#welcomeSection):not(.admin-section),
    .table-container,
    .footer {
        content-visibility: auto;
        contain-intrinsic-size: 1px 720px;
    }
}

/* Loading Animation */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 45%, rgba(10, 54, 132, 0.36), transparent 28%),
        radial-gradient(circle at 36% 62%, rgba(12, 34, 78, 0.34), transparent 26%),
        linear-gradient(145deg, #01030a 0%, #051022 50%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 18px;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-wrapper.loading-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.loader-wrapper::after {
    content: 'Loading...';
    color: rgba(237, 246, 255, 0.94);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(89, 150, 255, 0.55);
    animation: loaderTextPulse 1.15s ease-in-out infinite;
}

.loader {
    position: relative;
    width: 88px;
    height: 88px;
    border: 6px solid rgba(125, 174, 255, 0.18);
    border-top-color: rgba(237, 246, 255, 0.98);
    border-right-color: rgba(33, 112, 230, 0.96);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(218, 235, 255, 0.94) 0 7px, transparent 8px);
    box-shadow:
        0 0 0 1px rgba(49, 96, 169, 0.30),
        0 0 34px rgba(10, 51, 128, 0.50),
        inset 0 0 22px rgba(24, 91, 186, 0.16);
    animation: loaderOrbitSpin 0.78s linear infinite;
    transform: translateZ(0);
    will-change: transform;
}

.loader::before,
.loader::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: inherit;
}

.loader::before {
    border: 2px solid transparent;
    border-bottom-color: rgba(0, 200, 83, 0.9);
    border-left-color: rgba(0, 200, 83, 0.45);
    animation: loaderOrbitSpin 1.15s linear infinite reverse;
}

.loader::after {
    inset: -12px;
    border: 1px solid rgba(22, 80, 166, 0.46);
    animation: loaderPulseRing 1.15s ease-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes loaderOrbitSpin {
    to { transform: rotate(360deg); }
}

@keyframes loaderPulseRing {
    0% {
        opacity: 0.9;
        transform: scale(0.78);
    }
    100% {
        opacity: 0;
        transform: scale(1.22);
    }
}

@keyframes loaderTextPulse {
    0%, 100% {
        opacity: 0.58;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(2px);
    }
}

@media (max-width: 480px) {
    .loader {
        width: 74px;
        height: 74px;
    }

    .loader-wrapper::after {
        font-size: 12px;
        letter-spacing: 0.1em;
    }
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-hover);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    width: 210px;
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

@media (max-width: 768px) {
    .logo img {
        width: 140px;
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 120px;
        max-width: 130px;
    }
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-cta {
    background: var(--secondary-color);
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 25px;
    font-weight: 600 !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    background: rgba(10, 31, 68, 0.06);
    flex: 0 0 auto;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--secondary-color);
}

.hero-review-stage {
    position: relative;
    width: min(100%, 430px);
    height: 144px;
    margin: 26px 0 0;
    contain: layout paint;
}

.hero-review-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 18px;
    overflow: hidden;
    border: 1px solid rgba(78, 119, 207, 0.34);
    border-radius: 18px;
    background: linear-gradient(145deg, #0b1732 0%, #02040a 100%);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(18px, 0, 0) scale(0.985);
    transition: opacity 520ms ease, transform 520ms ease, visibility 0s linear 520ms;
    will-change: opacity, transform;
    pointer-events: none;
}

.hero-review-card.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: 0s;
}

.hero-review-card .testimonial-rating {
    margin-bottom: 7px;
    font-size: 14px;
    letter-spacing: 1px;
}

.hero-review-card .testimonial-text {
    display: -webkit-box;
    margin-bottom: 10px;
    overflow: hidden;
    color: #dce7ff;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hero-review-card .testimonial-author {
    gap: 9px;
}

.hero-review-card .author-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    background: linear-gradient(135deg, #245fd1, #132b5e);
    font-size: 13px;
}

.hero-review-card .author-info h4 {
    margin: 0 0 2px;
    color: #ffffff;
    font-size: 13px;
}

.hero-review-card .author-info p,
.hero-review-empty p {
    margin: 0;
    color: #9cb3df;
    font-size: 12px;
}

.hero-review-loading {
    flex-direction: row;
    gap: 10px;
    align-items: center;
    color: #b8c9ed;
}

.review-form-wrapper .review-form-cards {
    margin: 26px auto 0;
}

.hero-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 34px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    font-family: 'Poppins', sans-serif;
    min-width: 180px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09);
    will-change: transform;
}

.btn-primary {
    background: linear-gradient(135deg, #00c853 0%, #43d17a 48%, #00e676 100%);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.18);
    background-size: 200% 200%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
    background-position: 100% 0;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.12));
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 14px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.18));
    border-color: rgba(255,255,255,0.55);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-hover);
    max-width: 400px;
    width: 100%;
}

.hero-card h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 20px;
}

.loan-types {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.loan-type-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 12px;
    transition: var(--transition);
}

.loan-type-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.loan-type-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.loan-type-info h4 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 3px;
}

.loan-type-info p {
    color: var(--dark-gray);
    font-size: 13px;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: var(--light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-number span {
    color: var(--secondary-color);
}

.stat-label {
    color: var(--dark-gray);
    font-size: 15px;
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 17px;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--medium-gray);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    color: var(--white);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    transform: rotate(5deg) scale(1.1);
}

.feature-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--dark-gray);
    font-size: 15px;
}

/* Steps Section */
.steps {
    padding: 100px 0;
    background: linear-gradient(180deg, #f9fbfc 0%, #ffffff 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background: var(--white);
    border: 1px solid rgba(10, 31, 68, 0.08);
    border-radius: 28px;
    padding: 40px 32px;
    box-shadow: 0 18px 45px rgba(10, 31, 68, 0.06);
}

.step-card-top {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
    margin-bottom: 28px;
}

.step-number {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(0, 200, 83, 0.14);
    border: 1px solid rgba(0, 200, 83, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.step-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

.step-card h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 12px;
    text-align: center;
}

.step-card p {
    color: var(--dark-gray);
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--shadow);
    border: 1px solid var(--medium-gray);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-rating {
    color: #FFC107;
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
}

.author-info h4 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 3px;
}

.author-info p {
    color: var(--dark-gray);
    font-size: 13px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 38px;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 28px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

    .admin-entry-btn {
        margin-top: 18px;
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 999px;
        width: min(100%, 345px);
        min-height: 47px;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

.footer-entry-actions {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    width: 100%;
}

.footer-entry-actions .admin-entry-btn {
    flex: 0 1 345px;
    margin-left: 0;
    margin-right: 0;
}

/* Balanced login layout for system / desktop screens. */
@media (min-width: 860px) {
    body.public-theme .auth-section {
        padding: 64px 0;
    }

    body.public-theme .auth-section > .container {
        width: min(94%, 1320px);
    }

    body.public-theme .auth-row {
        display: grid;
        grid-template-columns: minmax(320px, 0.88fr) minmax(480px, 1.12fr);
        gap: 32px;
        align-items: stretch;
    }

    body.public-theme .auth-side-panel,
    body.public-theme .auth-container {
        min-width: 0;
        min-height: 565px;
        max-width: none;
        border-radius: 28px !important;
    }

    body.public-theme .auth-side-panel {
        padding: 28px;
    }

    body.public-theme .auth-side-content {
        width: 100%;
        max-width: none;
        min-height: 100%;
        padding: 52px 46px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: 22px;
    }

    body.public-theme .auth-side-content h2 {
        max-width: 390px;
        font-size: 32px;
        margin-bottom: 18px;
    }

    body.public-theme .auth-side-content p {
        max-width: 440px;
        margin-bottom: 30px;
    }

    body.public-theme .auth-container {
        padding: 44px 46px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    body.public-theme .auth-card-header {
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .footer-entry-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 18px;
    }

    .footer-entry-actions .admin-entry-btn {
        flex: none;
        margin-top: 0;
        width: min(100%, 345px);
    }
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-size: 42px;
    color: var(--white);
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--secondary-color);
}

/* Apply Loan Form */
.apply-section {
    padding: 80px 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow);
    border: 1px solid var(--medium-gray);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 14px;
}

.form-group label span {
    color: #ff4444;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: var(--light-gray);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.1);
}

.form-control.error {
    border-color: #ff4444;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-control.error + .error-message {
    display: block;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    margin-top: 10px;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 40px;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 40px;
    color: var(--white);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-message h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.success-message p {
    color: var(--dark-gray);
    margin-bottom: 25px;
}

.application-id {
    background: var(--light-gray);
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 18px;
}

/* EMI Calculator */
.emi-section {
    padding: 80px 0;
}

.emi-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.emi-form {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--medium-gray);
}

.emi-form h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary-color);
}

.input-wrapper {
    position: relative;
}

.input-wrapper .currency {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-gray);
    font-weight: 500;
}

.input-wrapper .unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-gray);
    font-weight: 500;
}

.input-wrapper input {
    padding-left: 35px;
}

.input-wrapper input.has-unit {
    padding-right: 50px;
}

.range-value {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: var(--dark-gray);
}

input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--medium-gray);
    border-radius: 3px;
    outline: none;
    margin-top: 10px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(0, 200, 83, 0.2);
}

.emi-result {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--border-radius);
    padding: 40px;
    color: var(--white);
    position: sticky;
    top: 100px;
}

.emi-result h3 {
    font-size: 22px;
    margin-bottom: 30px;
    text-align: center;
}

.emi-main {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.emi-main .label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.emi-main .amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--secondary-color);
}

.emi-main .amount span {
    font-size: 24px;
}

.emi-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.breakdown-item .label {
    color: rgba(255, 255, 255, 0.7);
}

.breakdown-item .value {
    font-weight: 600;
}

/* About Page */
.about-section {
    padding: 80px 0;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--dark-gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-image {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.about-image .icon-large {
    font-size: 120px;
    color: var(--white);
    opacity: 0.9;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

.mv-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--medium-gray);
    text-align: center;
}

.mv-card .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--white);
}

.mv-card h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.mv-card p {
    color: var(--dark-gray);
    line-height: 1.7;
}

.why-choose {
    text-align: center;
}

.why-choose h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.why-item {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    transition: var(--transition);
}

.why-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.why-item .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.why-item h4 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 10px;
}

.why-item p {
    color: var(--dark-gray);
    font-size: 14px;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
}

.contact-info > p {
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--dark-gray);
    font-size: 14px;
}

.contact-item a {
    color: var(--secondary-color);
    font-weight: 500;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: var(--white);
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 10px;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.contact-form-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--medium-gray);
}

.contact-form-container h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Admin Panel */
.admin-section {
    padding: 80px 0;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-header h2 {
    color: var(--primary-color);
    font-size: 28px;
}

.admin-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-stat {
    background: var(--light-gray);
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
}

.admin-stat .number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.admin-stat .label {
    font-size: 12px;
    color: var(--dark-gray);
}

.admin-table {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--primary-color);
    color: var(--white);
}

th, td {
    padding: 15px 20px;
    text-align: left;
    font-size: 14px;
}

th {
    font-weight: 600;
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--light-gray);
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #FFF3E0;
    color: #FF9800;
}

.status-approved {
    background: #E8F5E9;
    color: #4CAF50;
}

.status-rejected {
    background: #FFEBEE;
    color: #F44336;
}

.status-badge.qr-source {
    background: #E3F2FD;
    color: #1565C0;
}

.qr-apply-banner {
    background: #E8F4FF;
    border: 1px solid #B3D4FF;
    color: #0D47A1;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.5;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
    margin-right: 5px;
}

.action-btn.approve {
    background: #4CAF50;
    color: var(--white);
}

.action-btn.reject {
    background: #F44336;
    color: var(--white);
}

.action-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--dark-gray);
}

.no-data .icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    z-index: 9999;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: var(--secondary-color);
}

.toast.error {
    background: #F44336;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto 35px;
    }

    .hero-review-stage {
        margin: 26px auto 0;
        text-align: left;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .emi-container,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .emi-result {
        position: static;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li:last-child {
        margin-top: 10px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 130px 0 60px;
    }

    body.public-theme .features {
        padding-top: 48px;
        padding-bottom: 44px;
    }

    body.public-theme .features .section-header {
        margin-bottom: 34px;
    }

    body.public-theme .features .section-header h2 {
        margin-bottom: 12px;
    }

    body.public-theme .features-cta .btn {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body.public-theme .steps {
        padding-top: 44px;
        padding-bottom: 74px;
    }

    body.public-theme .steps .section-header {
        margin-bottom: 34px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        min-width: auto;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .features-grid,
    .steps-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid::before {
        display: none;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    th, td {
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    body.public-theme .features {
        padding-top: 38px;
        padding-bottom: 34px;
    }

    body.public-theme .features .section-header {
        margin-bottom: 28px;
    }

    body.public-theme .steps {
        padding-top: 34px;
        padding-bottom: 64px;
    }

    body.public-theme .steps .section-header {
        margin-bottom: 28px;
    }

    body.public-theme .whatsapp-float {
        display: none;
    }

    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .emi-main .amount {
        font-size: 36px;
    }
}

/* ============================================
   NEW UPGRADE STYLES
   ============================================ */

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Sticky Mobile Apply Button */
.sticky-apply-btn {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9997;
}

.sticky-apply-btn a {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--secondary-color);
    color: var(--white);
    padding: 14px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
}

.sticky-apply-btn a:hover {
    background: var(--secondary-light);
}

/* Trust Badges Section */
.trust-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.trust-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--white);
}

.trust-item h4 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 8px;
}

.trust-item p {
    color: var(--dark-gray);
    font-size: 13px;
}

/* RBI Disclaimer */
.rbi-disclaimer {
    background: #FFF8E1;
    border-left: 4px solid #FFC107;
    padding: 20px 25px;
    margin: 40px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.rbi-disclaimer h4 {
    color: #F57F17;
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rbi-disclaimer p {
    color: #666;
    font-size: 13px;
    line-height: 1.7;
}

/* SSL Badge */
.ssl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E8F5E9;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #2E7D32;
    font-weight: 500;
}

.ssl-badge i {
    color: #4CAF50;
}

/* Captcha Styles */
.captcha-container {
    background: var(--light-gray);
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.captcha-question {
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 500;
}

.captcha-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.captcha-input input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.captcha-refresh {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.captcha-refresh:hover {
    background: var(--primary-light);
}

/* Admin Search & Filter */
.admin-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.admin-search {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.admin-search input {
    width: 100%;
    padding: 12px 18px 12px 45px;
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.admin-search input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.admin-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-gray);
}

.filter-select {
    padding: 12px 18px;
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* EMI Graph */
.emi-graph {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.emi-graph h4 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.graph-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 30px;
    height: 150px;
}

.graph-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bar {
    width: 60px;
    border-radius: 8px 8px 0 0;
    transition: height 0.5s ease;
}

.bar.principal {
    background: var(--secondary-color);
}

.bar.interest {
    background: #FFC107;
}

.bar-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.bar-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

/* Footer Trust Bar */
.footer-trust-bar {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
}

.footer-trust-items {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-trust-item i {
    color: var(--secondary-color);
    font-size: 18px;
}

/* Responsive for new elements */
@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-filters {
        flex-direction: column;
    }
    
    .admin-search {
        min-width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .sticky-apply-btn {
        display: block;
    }
    
    .whatsapp-float {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    
    .footer-trust-items {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .graph-bars {
        gap: 15px;
    }
    
    .bar {
        width: 45px;
    }
}

/* ============================================
   LOGIN & SIGN UP STYLES
   ============================================ */

/* Auth Section */
.auth-section {
    padding: 80px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(0,0,0,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(0,0,0,0.03)"/><circle cx="50" cy="50" r="1" fill="rgba(0,0,0,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.auth-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
}

.auth-side-panel {
    flex: 1;
    min-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-side-content {
    background: var(--secondary-color);
    color: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    max-width: 420px;
}

.auth-side-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.auth-side-content p {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
}

.auth-side-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-side-content ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
}

.auth-side-content ul li i {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
}

.auth-container {
    flex: 1;
    max-width: 540px;
    margin: 0;
    background: var(--white);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 30px 80px rgba(15, 38, 75, 0.08);
    border: 1px solid rgba(15, 38, 75, 0.08);
}

.auth-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.auth-card-header h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: var(--primary-color);
}

.auth-card-header p {
    margin: 0;
    color: var(--dark-gray);
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
}

.auth-tab-actions {
    display: flex;
    gap: 10px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    border-bottom: none;
}

.auth-tab-btn {
    flex: 0 0 auto;
    padding: 12px 18px;
    background: var(--light-gray);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-gray);
    border-radius: 999px;
    transition: var(--transition);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-tab-btn.active {
    color: var(--white);
    background: var(--secondary-color);
}

.auth-tab-btn:hover {
    color: var(--white);
    background: var(--secondary-color);
}

@media (max-width: 992px) {
    .auth-row {
        flex-direction: column-reverse;
        gap: 25px;
    }

    .auth-side-panel,
    .auth-container {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .auth-container {
        padding: 30px 24px;
    }

    .auth-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-tab-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .auth-container {
        padding: 30px 20px;
    }

    .auth-side-content {
        padding: 30px 20px;
    }
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form .form-group {
    margin-bottom: 25px;
}

.auth-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 14px;
}

.auth-form label span {
    color: var(--secondary-color);
}

.auth-form .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: var(--light-gray);
    color: var(--text-color);
    box-shadow: none;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.1);
}

.auth-form .form-control.error {
    border-color: var(--secondary-color);
}

/* ============================================
   Admin Panel - Loan Category Styling
   ============================================ */

#loanCategoryName,
#loanCategoryRate,
#loanCategoryDescription {
    padding: 12px 14px !important;
    border: 2px solid var(--medium-gray) !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-family: 'Poppins', sans-serif !important;
    transition: var(--transition) !important;
}

#loanCategoryName:focus,
#loanCategoryRate:focus,
#loanCategoryDescription:focus {
    outline: none !important;
    border-color: var(--secondary-color) !important;
}

/* Monthly Revenue Graph Styling */
.stat-card.stat-card-graph {
    width: 100%;
    min-height: 360px;
    padding: 28px;
    background: linear-gradient(145deg, #08120d 0%, #041209 50%, #0f8a3a 100%);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}
.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.graph-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.revenue-range-toggle {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.revenue-range-btn {
    padding: 8px 14px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.revenue-range-btn.active,
.revenue-range-btn:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-1px);
}
.graph-subtitle {
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    margin-top: 12px;
}
.graph-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.btn-chart-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-chart-download:hover {
    background: rgba(255,255,255,0.26);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.graph-total {
    font-size: 32px;
    font-weight: 800;
}
.monthly-revenue-chart-wrapper {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: flex-end;
    min-height: 220px;
}
.revenue-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
}
.monthly-revenue-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    min-height: 180px;
    padding-bottom: 8px;
}
.revenue-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}
.revenue-bar-inner {
    width: 100%;
    max-width: 42px;
    min-height: 28px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(180deg, rgba(38,194,129,0.95), rgba(7,38,21,0.18));
    box-shadow: inset 0 0 18px rgba(38,194,129,0.45);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.revenue-bar:hover .revenue-bar-inner {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(38,194,129,0.25);
}
.revenue-bar::before {
    content: attr(data-value);
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.revenue-bar:hover::before {
    opacity: 1;
    transform: translate(-50%, -4px);
}
.revenue-bar-label {
    color: rgba(255,255,255,0.92);
    font-size: 12px;
    text-align: center;
}
.graph-note {
    margin-top: 18px;
    color: rgba(255,255,255,0.78);
    font-size: 13px;
}

/* Enhanced stat cards for new metrics */
.stat-card {
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Responsive improvements for admin panel */
@media (max-width: 768px) {
    #loanCategoryName,
    #loanCategoryRate,
    #loanCategoryDescription {
        margin-bottom: 8px !important;
    }
}

/* Public website dark blue theme - admin panel intentionally excluded */
body.public-theme {
    --primary-color: #f8fbff;
    --primary-light: #d9e8ff;
    --secondary-color: #2563ff;
    --secondary-light: #4ea1ff;
    --white: #0c1226;
    --light-gray: rgba(255, 255, 255, 0.07);
    --medium-gray: rgba(255, 255, 255, 0.12);
    --dark-gray: #aeb9d6;
    --text-color: #edf4ff;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.30);
    --shadow-hover: 0 24px 60px rgba(37, 99, 255, 0.26);
    background:
        radial-gradient(circle at 78% 4%, rgba(37, 99, 255, 0.34), transparent 32%),
        radial-gradient(circle at 8% 18%, rgba(43, 92, 255, 0.16), transparent 30%),
        linear-gradient(180deg, #030611 0%, #070b1c 45%, #030611 100%);
    color: #edf4ff;
}

body.public-theme::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 92px 92px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.95), transparent 78%);
}

body.public-theme .header {
    background: rgba(4, 7, 18, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

body.public-theme .logo,
body.public-theme .nav-links a,
body.public-theme .footer-links ul li a {
    color: #f8fbff;
}

body.public-theme .nav-links a:hover,
body.public-theme .nav-links a.active,
body.public-theme .breadcrumb a,
body.public-theme .contact-item a {
    color: #70a5ff;
}

body.public-theme .nav-links a::after,
body.public-theme .section-title::after {
    background: linear-gradient(90deg, #2563ff, #72b7ff);
}

body.public-theme .nav-cta,
body.public-theme .btn-primary,
body.public-theme .btn-submit,
body.public-theme .admin-entry-btn,
body.public-theme .welcome-btn-primary {
    background: linear-gradient(135deg, #155dfc 0%, #2f7dff 55%, #69b3ff 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 16px 34px rgba(37, 99, 255, 0.34) !important;
}

body.public-theme .btn-secondary,
body.public-theme .welcome-btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f8fbff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

body.public-theme .admin-entry-btn {
    box-shadow: none !important;
}

body.public-theme .hero,
body.public-theme .page-header,
body.public-theme .cta-section,
body.public-theme #welcomeSection,
body.public-theme .apply-section[style],
body.public-theme .interest-rates[style] {
    background:
        radial-gradient(circle at 76% 18%, rgba(37, 99, 255, 0.36), transparent 34%),
        linear-gradient(135deg, #070b1d 0%, #040716 55%, #030611 100%) !important;
    color: #f8fbff !important;
}

body.public-theme #welcomeSection {
    min-height: min(620px, calc(100dvh - 86px));
    padding: clamp(52px, 8vw, 96px) 0 !important;
    margin-bottom: 0 !important;
    background:
        radial-gradient(circle at 78% 22%, rgba(29, 78, 216, 0.32), transparent 34%),
        radial-gradient(circle at 18% 88%, rgba(37, 99, 255, 0.16), transparent 32%),
        linear-gradient(135deg, #01030a 0%, #050b19 52%, #000000 100%) !important;
    isolation: isolate;
}

body.public-theme #welcomeSection > div[style*="absolute"] {
    display: none !important;
}

body.public-theme #welcomeSection::before {
    content: '';
    position: absolute;
    inset: -18% -10% auto auto;
    width: min(58vw, 620px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(57, 118, 255, 0.18), transparent 58%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 58%);
    border: 1px solid rgba(105, 162, 255, 0.12);
    pointer-events: none;
    z-index: 0;
}

body.public-theme #welcomeSection::after {
    display: none;
}

body.public-theme #welcomeSection > .container {
    position: relative;
    z-index: 2;
}

body.public-theme #welcomeSection > .container > div {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
    align-items: center;
    gap: clamp(28px, 6vw, 76px);
    max-width: 1120px !important;
    min-height: min(430px, 56dvh);
    margin: 0 auto !important;
    text-align: left !important;
}

body.public-theme #welcomeSection > .container > div::after {
    content: '';
    grid-column: 2;
    grid-row: 1 / span 3;
    justify-self: center;
    width: min(260px, 28vw);
    aspect-ratio: 0.58;
    border-radius: 32px;
    background:
        radial-gradient(circle at 50% 23%, rgba(130, 177, 255, 0.98) 0 18px, transparent 19px),
        linear-gradient(180deg, transparent 0 36%, rgba(37, 99, 255, 0.20) 37% 48%, transparent 49%),
        linear-gradient(160deg, #111827 0%, #030712 56%, #0b1220 100%);
    border: 3px solid rgba(105, 162, 255, 0.70);
    box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.58),
        0 0 54px rgba(37, 99, 255, 0.24),
        inset 0 0 0 6px rgba(255, 255, 255, 0.04);
    transform: rotate(8deg);
}

body.public-theme #welcomeSection h2 {
    max-width: 680px;
    margin: 0 0 22px !important;
    color: #ffffff !important;
    font-size: clamp(34px, 7vw, 84px) !important;
    line-height: 0.98 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
}

body.public-theme #welcomeSection h2 i {
    color: #8bb8ff !important;
    filter: drop-shadow(0 0 18px rgba(37, 99, 255, 0.32));
}

body.public-theme #welcomeSection h2 span {
    display: block;
    margin-top: 10px;
    background: linear-gradient(180deg, #f8fbff 0%, #72a7ff 58%, #2563ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-shadow: none;
}

body.public-theme #welcomeSection #welcomeMessage {
    max-width: 560px;
    margin: 0 0 30px !important;
    color: rgba(248, 251, 255, 0.86) !important;
    font-size: clamp(16px, 2vw, 22px) !important;
    line-height: 1.55 !important;
    opacity: 1 !important;
    overflow-wrap: anywhere;
}

body.public-theme #welcomeSection .message-tag {
    background: rgba(37, 99, 255, 0.18) !important;
    color: #cfe0ff !important;
    border: 1px solid rgba(105, 162, 255, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.public-theme #welcomeSection .welcome-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 560px;
    margin-top: 30px;
}

body.public-theme #welcomeSection .welcome-trust-item {
    min-width: 0;
    padding: 20px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(10, 23, 48, 0.92), rgba(2, 6, 15, 0.88));
    border: 1px solid rgba(105, 162, 255, 0.18);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: center;
}

body.public-theme #welcomeSection .welcome-trust-item i {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    border-radius: 14px;
    color: #9fc2ff;
    background: rgba(37, 99, 255, 0.18);
    box-shadow: 0 0 24px rgba(37, 99, 255, 0.20);
    font-size: 20px;
}

body.public-theme #welcomeSection .welcome-trust-item span {
    display: block;
    color: #f8fbff;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body.public-theme #welcomeSection .welcome-actions {
    display: none !important;
}

body.public-theme #welcomeSection .welcome-btn {
    min-height: 54px;
    justify-content: center;
    padding: 14px 28px !important;
    border-radius: 999px !important;
    white-space: normal;
}

body.public-theme #welcomeSection .welcome-btn-primary {
    background: linear-gradient(135deg, #155dfc 0%, #2f7dff 58%, #69b3ff 100%) !important;
    color: #ffffff !important;
    border-color: rgba(165, 198, 255, 0.48) !important;
    box-shadow: 0 18px 38px rgba(37, 99, 255, 0.30) !important;
}

body.public-theme #welcomeSection .welcome-btn-secondary {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #f8fbff !important;
    border-color: rgba(105, 162, 255, 0.30) !important;
}

body.public-theme .hero::before,
body.public-theme .page-header::before {
    background: radial-gradient(circle, rgba(46, 125, 255, 0.28) 0%, transparent 70%);
}

body.public-theme .hero-text h1,
body.public-theme .page-header h1,
body.public-theme .section-header h2,
body.public-theme .section-title,
body.public-theme .cta-section h2,
body.public-theme .contact-info h3,
body.public-theme .contact-form-container h3,
body.public-theme .auth-card-header h3,
body.public-theme .auth-side-content h2,
body.public-theme .why-choose h2,
body.public-theme .fd-page h2,
body.public-theme .calculator-result h3 {
    color: #f8fbff !important;
    overflow-wrap: anywhere;
}

body.public-theme .hero-text h1 span,
body.public-theme .section-header h2 span {
    color: #3d7bff;
    text-shadow: 0 0 24px rgba(61, 123, 255, 0.45);
}

body.public-theme p,
body.public-theme .section-header p,
body.public-theme .hero-text p,
body.public-theme .page-header p,
body.public-theme .cta-section p,
body.public-theme .footer-brand p,
body.public-theme .footer-bottom,
body.public-theme .breadcrumb,
body.public-theme .helper-text,
body.public-theme .result-label,
body.public-theme .result-note {
    color: #b7c4e3 !important;
}

body.public-theme .hero-card,
body.public-theme .feature-card,
body.public-theme .step-card,
body.public-theme .testimonial-card,
body.public-theme .rate-card,
body.public-theme .form-container,
body.public-theme .contact-form-container,
body.public-theme .contact-item,
body.public-theme .mv-card,
body.public-theme .why-item,
body.public-theme .auth-container,
body.public-theme .auth-side-panel,
body.public-theme .calculator-container,
body.public-theme .calculator-result,
body.public-theme .emi-result,
body.public-theme .benefit-card,
body.public-theme .feature-item,
body.public-theme .interest-highlight {
    background: linear-gradient(180deg, rgba(16, 24, 52, 0.88), rgba(8, 13, 31, 0.88)) !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.30) !important;
    color: #edf4ff !important;
    backdrop-filter: blur(14px);
}

body.public-theme .hero-card h3,
body.public-theme .loan-type-info h4,
body.public-theme .feature-card h3,
body.public-theme .step-card h3,
body.public-theme .author-info h4,
body.public-theme .mv-card h3,
body.public-theme .why-item h4,
body.public-theme .contact-item h4,
body.public-theme .benefit-card h3,
body.public-theme .emi-result h3,
body.public-theme .emi-graph h4,
body.public-theme .footer-links h4,
body.public-theme .form-group label,
body.public-theme .auth-form label,
body.public-theme .calculator-form label {
    color: #f8fbff !important;
}

body.public-theme .loan-type-info p,
body.public-theme .feature-card p,
body.public-theme .step-card p,
body.public-theme .testimonial-text,
body.public-theme .author-info p,
body.public-theme .mv-card p,
body.public-theme .why-item p,
body.public-theme .contact-item p,
body.public-theme .benefit-card p,
body.public-theme .emi-main .label,
body.public-theme .breakdown-item .label,
body.public-theme .bar-label {
    color: #b7c4e3 !important;
}

body.public-theme .emi-main .amount,
body.public-theme .breakdown-item .value,
body.public-theme .bar-value {
    color: #f8fbff !important;
}

body.public-theme .emi-main .amount {
    color: #70a5ff !important;
    text-shadow: 0 0 22px rgba(37, 99, 255, 0.35);
}

body.public-theme .loan-type-item,
body.public-theme .feature-item,
body.public-theme .result-breakdown,
body.public-theme .preview-panel,
body.public-theme .auth-tabs,
body.public-theme .review-section {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
}

body.public-theme .feature-icon,
body.public-theme .step-icon,
body.public-theme .loan-type-icon,
body.public-theme .mv-icon,
body.public-theme .logo-icon,
body.public-theme .contact-item .icon,
body.public-theme .benefit-icon,
body.public-theme .author-avatar,
body.public-theme .success-icon {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6 55%, #60a5fa) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 255, 0.28);
    color: #ffffff !important;
}

body.public-theme .form-control,
body.public-theme input,
body.public-theme select,
body.public-theme textarea {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f8fbff !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

body.public-theme .form-control::placeholder,
body.public-theme input::placeholder,
body.public-theme textarea::placeholder {
    color: rgba(226, 232, 240, 0.58) !important;
}

body.public-theme .form-control:focus,
body.public-theme input:focus,
body.public-theme select:focus,
body.public-theme textarea:focus {
    border-color: #4f8cff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.18) !important;
}

body.public-theme .footer {
    background: #030611;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #f8fbff !important;
}

body.public-theme .footer-brand h3,
body.public-theme .footer-brand h3 .logo-icon + *,
body.public-theme .footer-links li,
body.public-theme .footer-links li i,
body.public-theme .footer-bottom p,
body.public-theme .footer-bottom a {
    color: #f8fbff !important;
}

body.public-theme .footer-brand h3 {
    line-height: 1.25;
    text-shadow: 0 0 18px rgba(96, 165, 250, 0.22);
}

body.public-theme .footer-social a {
    background: rgba(37, 99, 255, 0.24) !important;
    border: 1px solid rgba(112, 165, 255, 0.36);
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(37, 99, 255, 0.20);
}

body.public-theme .footer-social a i {
    color: #ffffff !important;
    opacity: 1;
    text-shadow: 0 0 14px rgba(112, 165, 255, 0.55);
}

body.public-theme .footer-social a:hover {
    background: linear-gradient(135deg, #155dfc, #60a5fa) !important;
    border-color: rgba(255, 255, 255, 0.55);
}

body.public-theme .footer-links li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

body.public-theme .footer-links li i {
    color: #70a5ff !important;
    width: 18px;
    min-width: 18px;
    margin-top: 3px;
}

body.public-theme .footer-bottom a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.public-theme #slideshowSection,
body.public-theme #portalSection,
body.public-theme .features,
body.public-theme .steps,
body.public-theme .testimonials,
body.public-theme .trust-section,
body.public-theme .about-section,
body.public-theme .apply-section,
body.public-theme .contact-section,
body.public-theme .emi-section,
body.public-theme .fd-info-section,
body.public-theme .fd-calculator-section,
body.public-theme .fd-application-section,
body.public-theme .benefits-section,
body.public-theme .fd-features-section,
body.public-theme .auth-section {
    background: transparent !important;
}

body.public-theme .profile-dropdown {
    background: #0c1226 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.public-theme .profile-dropdown p {
    color: #f8fbff !important;
}

body.public-theme .profile-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #0b2a62 0%, #07152f 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(96, 165, 250, 0.55) !important;
    box-shadow: 0 10px 24px rgba(2, 8, 23, 0.28) !important;
    line-height: 1 !important;
    text-transform: uppercase;
}

body.public-theme .profile-btn #profileInitial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1ch;
    color: #ffffff !important;
    font-weight: 800;
}

@media (max-width: 768px) {
    body.public-theme {
        background:
            radial-gradient(circle at 88% 0%, rgba(37, 99, 255, 0.28), transparent 36%),
            linear-gradient(180deg, #030611 0%, #070b1c 50%, #030611 100%);
    }

    body.public-theme .nav-links {
        left: 12px;
        right: 12px;
        width: auto;
        background: rgba(5, 9, 24, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
        max-height: calc(100vh - 92px);
        overflow-y: auto;
    }

    body.public-theme .menu-toggle {
        background: rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    body.public-theme .menu-toggle span {
        background: #f8fbff;
    }

    body.public-theme .hero,
    body.public-theme .page-header {
        padding-top: 118px;
    }

    body.public-theme #welcomeSection {
        min-height: auto;
        padding: 48px 0 42px !important;
    }

    body.public-theme #welcomeSection::before {
        width: 78vw;
        inset: -18vw -24vw auto auto;
    }

    body.public-theme #welcomeSection::after {
        top: 438px;
        opacity: 0.42;
    }

    body.public-theme #welcomeSection > .container > div {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        gap: 22px;
        max-width: 520px !important;
        text-align: center !important;
    }

    body.public-theme #welcomeSection > .container > div::after {
        display: none;
    }

    body.public-theme #welcomeSection h2 {
        max-width: 100%;
        margin-bottom: 18px !important;
        font-size: clamp(36px, 11vw, 54px) !important;
        line-height: 1.06 !important;
    }

    body.public-theme #welcomeSection h2 span {
        margin-top: 8px;
    }

    body.public-theme #welcomeSection #welcomeMessage {
        max-width: 100%;
        margin-bottom: 24px !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    body.public-theme #welcomeSection .welcome-trust-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        max-width: 280px;
        margin: 22px auto 0;
    }

    body.public-theme #welcomeSection .welcome-trust-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 15px;
        text-align: left;
        border-radius: 16px;
    }

    body.public-theme #welcomeSection .welcome-trust-item i {
        width: 38px;
        height: 38px;
        margin: 0;
        border-radius: 12px;
        font-size: 17px;
        flex: 0 0 auto;
    }

    body.public-theme #welcomeSection .welcome-trust-item span {
        font-size: 14px;
    }

    body.public-theme #welcomeSection .welcome-btn {
        width: min(100%, 268px);
        min-height: 52px;
    }

    body.public-theme .hero-text h1,
    body.public-theme .page-header h1 {
        font-size: 34px;
        line-height: 1.16;
    }

    body.public-theme .hero-text p,
    body.public-theme .page-header p,
    body.public-theme .section-header p {
        font-size: 15px;
        line-height: 1.65;
    }

    body.public-theme .hero-card,
    body.public-theme .feature-card,
    body.public-theme .step-card,
    body.public-theme .testimonial-card,
    body.public-theme .form-container,
    body.public-theme .contact-form-container,
    body.public-theme .auth-container,
    body.public-theme .calculator-container,
    body.public-theme .benefit-card {
        border-radius: 18px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        max-width: 100%;
    }

    body.public-theme .footer-bottom p,
    body.public-theme .footer-bottom,
    body.public-theme .footer a,
    body.public-theme .btn,
    body.public-theme .nav-links a {
        overflow-wrap: anywhere;
    }
}

/* Advanced Loan Category Modal Styling */
#loanCategoryModal .modal-content {
    border-top: 4px solid var(--secondary-color);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#loanCategoryModalName,
#loanCategoryModalDescription,
#loanCategoryModalProductEMI {
    transition: all 0.3s ease;
}

#loanCategoryModalName:focus,
#loanCategoryModalDescription:focus,
#loanCategoryModalProductEMI:focus {
    outline: none !important;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.1) !important;
}

/* Modal buttons styling */
#saveLoanCategoryBtn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #00B848 100%);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

#saveLoanCategoryBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
}

/* Product EMI Badge Styling */
.emi-badge {
    display: inline-block;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: #1565C0;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border-left: 3px solid #1976D2;
}

/* Loan Categories table enhancement */
#loanCategoriesBody tr {
    transition: background-color 0.2s ease;
}

#loanCategoriesBody tr:hover {
    background: rgba(0, 200, 83, 0.05);
}

/* Section title enhancement */
.section-title {
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}
    background: rgba(0, 200, 83, 0.05);
}

.auth-form .form-control::placeholder {
    color: var(--dark-gray);
}

.auth-form .error-message {
    color: var(--secondary-color);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.auth-form .form-control.error + .error-message {
    display: block;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.forgot-password {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--secondary-light);
}

.checkbox-full {
    margin-bottom: 25px;
}

.checkbox-full .checkbox-label {
    gap: 10px;
}

.checkbox-full .checkbox-label a {
    color: var(--secondary-color);
    font-weight: 500;
}

.checkbox-full .checkbox-label a:hover {
    color: var(--secondary-light);
}

.btn-block {
    width: 100%;
    margin-bottom: 20px;
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--dark-gray);
}

.auth-footer .switch-tab {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.auth-footer .switch-tab:hover {
    color: var(--white);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

/* Responsive Auth */
@media (max-width: 768px) {
    .auth-container {
        padding: 30px 20px;
    }
    
    .auth-tabs {
        margin-bottom: 30px;
    }
    
    .auth-tab-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 25px 15px;
    }
    
    .auth-tabs {
        margin-bottom: 25px;
    }
    
    .auth-tab-btn {
        padding: 10px 12px;
        font-size: 13px;
        gap: 5px;
    }
    
    .auth-tab-btn i {
        display: none;
    }
}

/* ============================================
   Multi-Step Form Styles
   ============================================ */

/* Step Indicators */
.step-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: var(--transition);
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--medium-gray);
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--secondary-color);
    color: var(--white);
}

.step.completed .step-number {
    background: var(--secondary-color);
    color: var(--white);
}

.step-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--dark-gray);
    text-align: center;
    max-width: 80px;
}

.step.active .step-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Form Steps */
.form-steps {
    position: relative;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Buttons */
.step-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-prev {
    background: var(--light-gray);
    color: var(--dark-gray);
}

.btn-prev:hover {
    background: var(--medium-gray);
    transform: translateY(-2px);
}

.btn-next {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-next:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Review Section */
.review-section {
    margin-bottom: 30px;
}

.review-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.review-item {
    background: var(--light-gray);
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.review-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.review-item span {
    color: var(--text-color);
    font-size: 14px;
}

/* Responsive Multi-Step */
@media (max-width: 768px) {
    #interest-rates {
        padding-bottom: 24px !important;
    }

    #customer-reviews {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    #customer-reviews .review-form-wrapper {
        margin-top: 0 !important;
    }

    #customer-reviews + .trust-section {
        padding-top: 32px !important;
    }

    .hero-buttons {
        gap: 12px;
    }

    .hero-buttons .btn {
        width: min(88%, 310px);
        min-width: 0;
        min-height: 44px;
        margin-inline: auto;
        padding: 11px 20px;
        border-radius: 22px !important;
        font-size: 14px;
        gap: 9px;
    }

    .step-indicators {
        gap: 10px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .step-title {
        font-size: 11px;
        max-width: 70px;
    }
    
    .step-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Site-wide speed, alignment, and overflow guardrails
   ============================================ */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body *,
body *::before,
body *::after {
    min-width: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
label,
span,
strong,
small,
a,
button,
input,
select,
textarea,
.btn,
.form-control,
.section-header,
.review-item,
.testimonial-card,
.feature-card,
.step-card,
.loan-type-item,
.contact-item,
.footer-links li {
    overflow-wrap: anywhere;
    word-break: normal;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

section,
header,
footer,
.container,
.form-container,
.auth-container,
.emi-container,
.contact-grid,
.features-grid,
.steps-grid,
.testimonials-grid,
.footer-grid,
.stats-grid,
.trust-grid,
.review-grid {
    max-width: 100%;
}

.table-responsive,
.admin-table,
.table-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (hover: none), (pointer: coarse), (max-width: 768px) {
    :root {
        --transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
        --shadow: 0 3px 12px rgba(10, 31, 68, 0.08);
        --shadow-hover: 0 6px 18px rgba(10, 31, 68, 0.10);
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    .loader,
    .loader::before {
        animation-duration: 0.78s !important;
        animation-iteration-count: infinite !important;
        animation-timing-function: linear !important;
    }

    .loader::before {
        animation-duration: 1.15s !important;
        animation-direction: reverse !important;
    }

    .loader::after,
    .loader-wrapper::after {
        animation-duration: 1.15s !important;
        animation-iteration-count: infinite !important;
    }

    .feature-card:hover,
    .step-card:hover,
    .testimonial-card:hover,
    .trust-item:hover,
    .loan-type-item:hover,
    .stat-card:hover,
    .btn:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .nav-cta:hover,
    .action-btn:hover,
    .whatsapp-float:hover,
    .revenue-bar:hover .revenue-bar-inner {
        transform: none !important;
    }

    .header,
    .nav-links,
    .hero-card,
    .feature-card,
    .step-card,
    .testimonial-card,
    .form-container,
    .contact-form-container,
    .auth-container,
    .emi-form,
    .admin-table,
    .table-container {
        box-shadow: var(--shadow) !important;
    }

    .logo img,
    body.public-theme .header,
    body.public-theme .hero-card,
    body.public-theme .feature-card,
    body.public-theme .step-card,
    body.public-theme .testimonial-card,
    body.public-theme .form-container,
    body.public-theme .contact-form-container,
    body.public-theme .auth-container,
    body.public-theme .calculator-container,
    body.public-theme .benefit-card {
        filter: none !important;
        backdrop-filter: none !important;
    }

    .hero,
    .page-header {
        overflow: hidden;
    }

    .hero-content,
    .about-grid,
    .contact-grid,
    .emi-container {
        gap: 28px;
    }

    .section-header,
    .hero-text,
    .page-header,
    .cta-section {
        text-align: center;
    }

    .form-container,
    .contact-form-container,
    .auth-container,
    .emi-form,
    .emi-result,
    .calculator-container,
    .calculator-result,
    .hero-card,
    .feature-card,
    .step-card,
    .testimonial-card,
    .benefit-card {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .btn,
    .btn-submit,
    .btn-primary,
    .btn-secondary,
    .nav-cta {
        min-width: 0;
        white-space: normal;
    }

    .nav-links {
        max-height: calc(100dvh - 82px);
        overflow-y: auto;
    }

    .footer,
    .footer * {
        text-align: center;
    }

    .footer-brand h3,
    .footer-social,
    .footer-trust-items {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-text h1,
    .page-header h1 {
        line-height: 1.18;
    }

    .section-header h2,
    .cta-section h2,
    .emi-form h3,
    .contact-form-container h3 {
        line-height: 1.25;
    }

    .form-control,
    input,
    select,
    textarea {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .loader {
        animation: loaderOrbitSpin 0.78s linear infinite !important;
    }

    .loader::before {
        animation: loaderOrbitSpin 1.15s linear infinite reverse !important;
    }

    .loader::after {
        animation: loaderPulseRing 1.15s ease-out infinite !important;
    }

    .loader-wrapper::after {
        animation: loaderTextPulse 1.15s ease-in-out infinite !important;
    }
}

/* Customer active loan standalone page */
.customer-portal-glass {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 0%, rgba(13, 42, 96, 0.42), transparent 30%),
        radial-gradient(circle at 10% 16%, rgba(4, 16, 42, 0.72), transparent 38%),
        linear-gradient(180deg, #050913 0%, #06142c 42%, #01040b 100%) !important;
    color: #f8fafc;
}
.customer-portal-glass .container {
    max-width: 1180px;
    width: min(100% - 28px, 1180px);
}
.customer-portal-glass .portal-heading h2 {
    color: #ffffff;
    line-height: 1.2;
}
.customer-portal-glass .portal-heading p {
    color: rgba(226, 232, 240, 0.74) !important;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.customer-portal-glass .portal-offer-glass {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    border-radius: 18px !important;
    border: 1px solid rgba(92, 145, 220, 0.24) !important;
    background:
        linear-gradient(145deg, rgba(15, 31, 61, 0.86), rgba(3, 9, 22, 0.92)) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(147, 197, 253, 0.12) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 28px !important;
}
.active-loan-panel {
    text-align: left !important;
}
.active-loan-panel * {
    max-width: 100%;
    box-sizing: border-box;
}
.active-loan-panel .active-loan-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}
.active-loan-panel .active-loan-header h3 {
    margin: 0 0 6px;
    color: #ffffff;
}
.active-loan-panel p {
    color: rgba(226, 232, 240, 0.78);
}
.active-loan-panel .active-loan-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.active-loan-panel .active-loan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.active-loan-panel .active-loan-metric {
    min-width: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    padding: 14px;
}
.active-loan-panel .active-loan-metric span {
    display: block;
    color: rgba(226, 232, 240, 0.68);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}
.active-loan-panel .active-loan-metric strong {
    display: block;
    color: #ffffff;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.active-loan-panel .active-loan-progress {
    margin-top: 18px;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}
.active-loan-panel .active-loan-progress > span {
    display: block;
    height: 100%;
    width: var(--active-loan-progress, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #38bdf8);
}
.active-loan-empty {
    text-align: center !important;
}

@media (max-width: 900px) {
    .customer-portal-glass .portal-offer-glass {
        padding: 22px 18px !important;
    }
    .active-loan-panel .active-loan-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
    .active-loan-panel .active-loan-status {
        justify-self: start;
    }
    .active-loan-panel .active-loan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .active-loan-panel .active-loan-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Compact shared footer layout for mobile pages */
@media (max-width: 768px) {
    .footer {
        padding: 34px 0 18px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
        row-gap: 22px;
        margin-bottom: 24px;
    }
    .footer-grid > .footer-brand,
    .footer-grid > .footer-links:last-child {
        grid-column: 1 / -1;
    }
    .footer-brand h3 {
        margin-bottom: 10px;
        font-size: 23px;
    }
    .footer-brand p {
        max-width: 520px;
        margin: 0 auto 14px;
        line-height: 1.55;
    }
    .footer-links h4 {
        margin-bottom: 11px;
        font-size: 16px;
    }
    .footer-grid > .footer-links:not(:last-child),
    .footer-grid > .footer-links:not(:last-child) h4,
    .footer-grid > .footer-links:not(:last-child) ul,
    .footer-grid > .footer-links:not(:last-child) li,
    .footer-grid > .footer-links:not(:last-child) a {
        text-align: left !important;
    }
    .footer-links ul li {
        margin-bottom: 6px;
        line-height: 1.4;
    }
    .footer-links ul li a {
        font-size: 13px;
    }
    .footer-grid > .footer-links:last-child ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 20px;
    }
    .footer-grid > .footer-links:last-child ul li {
        margin-bottom: 0;
    }
    .footer-bottom {
        padding-top: 16px;
        font-size: 12px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .footer {
        padding-top: 28px;
    }
    .footer-grid {
        row-gap: 18px;
        margin-bottom: 20px;
    }
    .footer-links h4 {
        font-size: 15px;
    }
    .footer-grid > .footer-links:last-child ul {
        flex-direction: column;
        align-items: center;
        gap: 7px;
    }
}

/* Login and sign-up checkbox row alignment */
.auth-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    line-height: 1.45;
}
.auth-form .checkbox-label input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px;
    height: 18px;
    margin: 1px 0 0;
    padding: 0;
}
.auth-form .checkbox-label > span {
    flex: 1 1 auto;
    min-width: 0;
}
.auth-form .remember-forgot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.auth-form .remember-forgot .checkbox-label {
    flex: 1 1 auto;
    align-items: center;
    white-space: nowrap;
    min-height: 20px;
    line-height: 20px;
    margin: 0 !important;
}
.auth-form .remember-forgot .checkbox-label input[type="checkbox"] {
    margin-top: 0;
}
.auth-form .remember-forgot .forgot-password {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    line-height: 20px;
}

/* Keep the public loan-type native dropdown readable on light option menus */
body.public-theme select option {
    background: #ffffff;
    color: #111827 !important;
}
body.public-theme select option:checked {
    background: #2563eb;
    color: #ffffff !important;
}
body.public-theme #loanType option {
    background: #ffffff;
    color: #111827 !important;
}
body.public-theme #loanType option:checked {
    background: #2563eb;
    color: #ffffff !important;
}
body.public-theme #contactSubject option {
    background: #ffffff;
    color: #111827 !important;
}
body.public-theme #contactSubject option:checked {
    background: #2563eb;
    color: #ffffff !important;
}

@media (max-width: 480px) {
    .auth-form .checkbox-label,
    .auth-form .forgot-password {
        font-size: 13px;
    }
    .auth-form .remember-forgot {
        gap: 10px;
    }
    .auth-form .checkbox-full .checkbox-label {
        gap: 8px;
    }
}
