:root {
    --primary-purple: #6a3bd7;
    --primary-purple-accessible: #5f34c2;
    --primary-purple-light: rgba(95, 52, 194, 0.1);
    --dark-bg: #121212;
    --light-grey: #f8f9fa;
    --text-color: #333;
    --text-light: #f1f1f1;
    --text-muted: #6c757d;
    --border-color: #e0e0e0;

    --blob-color-1: rgba(106, 59, 215, 0.2);
    --blob-color-2: rgba(180, 150, 255, 0.2);
    --base-bg-color: #f9f7ff;

    --section-padding: clamp(60px, 8vw, 100px) 0;
    --soft-shadow: 0 8px 30px rgba(95, 52, 194, 0.1);
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    background-color: var(--base-bg-color);
    background-image:
        radial-gradient(circle at 15% 50%, var(--blob-color-1), transparent 40%),
        radial-gradient(circle at 85% 30%, var(--blob-color-2), transparent 40%),
        radial-gradient(circle at 20% 120%, var(--blob-color-2), transparent 50%),
        radial-gradient(circle at 90% 110%, var(--blob-color-1), transparent 50%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

*:focus-visible {
    outline: 3px solid var(--primary-purple);
    outline-offset: 3px;
    border-radius: var(--border-radius-md);
}
body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 { font-weight: 700; margin-top: 0; color: var(--text-color); }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.2; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); line-height: 1.3; }
h3 { font-size: 1.5rem; }
p { margin-top: 0; margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }

.text-center { text-align: center; }
.text-green { color: var(--primary-purple-accessible); }

.btn { display: inline-block; padding: 12px 28px; border-radius: var(--border-radius-md); font-weight: 600; transition: all var(--transition-smooth); border: none; cursor: pointer; }
.btn-primary { background-color: var(--primary-purple-accessible); color: #fff; }
.btn-primary:hover { background-color: #512bA8; transform: translateY(-2px); }
.btn-light { background-color: #fff; color: var(--dark-bg); }
.btn-light:hover { background-color: #f0f0f0; }

.section-header { margin-bottom: 60px; }
.section-subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 10px auto 0; }

.page-header {
    color: var(--text-light);
    padding: var(--section-padding);
    text-align: center;
}
.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--text-light);
}
.page-header .subtitle { color: #ccc; }

.how-it-works, .founders-section, .contact-section, .page-header, .header.admin-header, .admin-main {
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1.5px);
    background-size: 40px 40px, 80px 80px;
    background-position: 0 0, 20px 20px;
}

.header {
    background-color: var(--dark-bg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.navbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.logo {
    grid-column: 1;
    justify-self: start;
    font-family: 'Lexend', sans-serif;
    text-transform: uppercase;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    z-index: 1001;
}
.logo strong {
    color: var(--primary-purple);
}
.nav-links { grid-column: 2; justify-self: center; display: flex; list-style: none; margin: 0; padding: 0; gap: 40px; }
.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 20px; }

.nav-links a { color: var(--text-light); font-weight: 500; font-size: 0.9rem; transition: color var(--transition-smooth); text-transform: uppercase; letter-spacing: 1px; position: relative; padding-bottom: 5px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background-color: var(--primary-purple); transform: scaleX(0); transform-origin: bottom right; transition: transform 0.3s cubic-bezier(0.65, 0.05, 0.36, 1); }
.nav-links a:hover { color: var(--primary-purple); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: bottom left; }
.nav-links a.active { color: var(--primary-purple); font-weight: 700; }
.nav-links a.active::after { transform: scaleX(1); }

.mobile-nav-toggle { display: none; }
.mobile-nav-overlay { display: none; }

.hero {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(ellipse at center, rgba(95, 52, 194, 0.15), transparent 70%),
        radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.5px);
    background-size: 100% 100%, 30px 30px, 60px 60px;
    background-position: center, 0 0, 30px 30px;
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero .tagline { display: inline-block; border: 1px solid #555; padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; background-color: rgba(0,0,0,0.2); }
.hero h1 { margin-bottom: 25px; color: var(--text-light); }
.hero .subtitle { font-size: 1.2rem; color: #ccc; max-width: 800px; margin: 0 auto 40px; line-height: 1.6; }
.app-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.app-store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    box-sizing: border-box;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #777;
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-smooth);
}
.app-store-btn:hover { background-color: rgba(255, 255, 255, 0.1); border-color: #fff; transform: translateY(-3px); }
.app-store-btn i { font-size: 2.2rem; }
.app-store-btn div { text-align: left; }
.app-store-btn span { display: block; font-size: 0.8rem; line-height: 1; }
.app-store-btn strong { display: block; font-size: 1.2rem; line-height: 1.2; font-weight: 600; }

.features-section, .faq-section, .partner-section, .principles-section,
.calculator-section, .vision-section, .compliance-section, .testimonials-section {
    padding: var(--section-padding);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.features-grid { display: grid; grid-template-columns: 1fr 250px 1fr; grid-template-rows: 1fr 1fr; align-items: center; gap: 60px 40px; position: relative; margin-top: 50px; }
.feature-item { text-align: center; }
.feature-item:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
.feature-item:nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
.feature-item:nth-child(3) { grid-area: 2 / 1 / 3 / 2; }
.feature-item:nth-child(4) { grid-area: 2 / 3 / 3 / 4; }
.feature-item .icon { font-size: 2rem; color: var(--primary-purple-accessible); margin-bottom: 15px; }
.feature-item h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 5px; line-height: 1.4; }
.phone-mockup { grid-area: 1 / 2 / 3 / 3; justify-self: center; }
.phone-mockup img { max-width: 100%; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); }

.calculator-card, .partner-card, .compliance-item, .application-widget, .success-widget, .testimonial-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--soft-shadow);
    padding: 40px;
    margin-top: 60px;
}
.application-widget { max-width: 800px; margin-left: auto; margin-right: auto; text-align: left; }
.success-widget { max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; }

.calculator-card { display: flex; gap: 40px; }
.calc-inputs { flex: 1; text-align: left; }
.calc-results { flex: 1; text-align: left; border-left: 1px solid rgba(0,0,0,0.1); padding-left: 40px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-weight: 500; margin-bottom: 10px; }
.input-group input, .input-group select, .input-group textarea { width: 100%; box-sizing: border-box; padding: 12px; border-radius: var(--border-radius-md); border: 1px solid var(--border-color); font-size: 1rem; font-family: 'Inter', sans-serif; transition: all var(--transition-fast); }
.input-group textarea { min-height: 120px; resize: vertical; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { border-color: var(--primary-purple-accessible); box-shadow: 0 0 0 3px var(--primary-purple-light); }

.slider-group .slider-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 5px;
}
.slider-group #loan-duration-value {
    font-weight: 600;
    color: var(--primary-purple-accessible);
    background-color: var(--primary-purple-light);
    padding: 5px 12px;
    border-radius: var(--border-radius-md);
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: #e9e4f5;
    border-radius: 5px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: var(--primary-purple-accessible);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    margin-top: -7px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type=range]:hover::-webkit-slider-thumb {
    transform: scale(1.1);
}

input[type=range]:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px var(--primary-purple-light);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #e9e4f5;
    border-radius: 5px;
}

input[type=range]::-moz-range-thumb {
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: var(--primary-purple-accessible);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type=range]:hover::-moz-range-thumb {
    transform: scale(1.1);
}

input[type=range]:focus::-moz-range-thumb {
    box-shadow: 0 0 0 4px var(--primary-purple-light);
    border-color: var(--primary-purple-accessible);
}

.calc-results h3 { font-size: 1.2rem; margin-bottom: 20px; }
.result-item { display: flex; justify-content: space-between; align-items: center; margin: 25px 0; }
.result-item p { margin: 0; color: var(--text-muted); }
.result-item span { font-size: 1.5rem; font-weight: 700; }
.result-item.savings p { color: var(--text-color); font-weight: 500; }
.result-item.savings span { background-color: var(--primary-purple-light); color: var(--primary-purple-accessible); padding: 8px 15px; border-radius: var(--border-radius-md); }

.result-item.highlight {
    padding: 20px;
    border-radius: var(--border-radius-md);
    background-color: var(--primary-purple-light);
    border: 1px solid rgba(95, 52, 194, 0.2);
    margin-top: 0;
}
.result-item.highlight p {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}
.result-item.highlight span {
    font-size: 1.8rem;
    color: var(--primary-purple-accessible);
}

.calculator-card hr { border: none; border-top: 1px dashed rgba(0,0,0,0.1); }
.disclaimer { margin-top: 20px; color: var(--text-muted); font-size: 0.9rem; }

.how-it-works { padding: var(--section-padding); color: var(--text-light); }
.how-it-works h2, .how-it-works h3 { color: var(--text-light); }
.how-it-works-content { display: flex; align-items: center; gap: 80px; }
.steps { flex: 1; }
.how-it-works-img { flex: 1; text-align: center; }
.how-it-works-img img { max-width: 100%; }
.steps h2, .steps .section-subtitle { text-align: left; margin-left: 0; margin-right: 0; }
.steps-list { list-style: none; padding-left: 0; margin-top: 30px; counter-reset: steps-counter; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.steps-list li { padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); display: flex; align-items: center; counter-increment: steps-counter; font-size: 1.1rem; font-weight: 600; }
.steps-list li::before { content: "0" counter(steps-counter); color: var(--primary-purple); font-weight: 700; font-size: 1.5rem; margin-right: 20px; }
.steps-conclusion { margin-top: 25px; text-align: left; }
.steps-conclusion h3 { color: var(--primary-purple); font-weight: 700; font-size: 1.5rem; }

.faq-accordion { max-width: 800px; margin: 60px auto 0; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); }
.faq-item summary { font-size: 1.2rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: color var(--transition-fast); padding: 25px 0; }
.faq-item summary:hover { color: var(--primary-purple-accessible); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), padding 0.5s ease; padding: 0; }
.faq-item[open] .faq-answer { max-height: 1000px; padding-bottom: 25px; transition: max-height 1s ease-in-out, padding 0.5s ease; }
.faq-answer p, .faq-answer ul { color: var(--text-muted); line-height: 1.8; }
.faq-answer ul { padding-left: 20px; margin-top: 15px; }
.plus-icon { font-size: 1.5rem; color: var(--primary-purple-accessible); font-weight: 400; transition: transform var(--transition-smooth) cubic-bezier(0.25, 0.1, 0.25, 1); }
.faq-item[open] summary { color: var(--primary-purple-accessible); }
.faq-item[open] .plus-icon { transform: rotate(45deg); }

.partner-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 60px; }
.partner-card { padding: 30px; margin-top:0; transition: all var(--transition-smooth); }
.partner-card:hover { transform: translateY(-5px); box-shadow: var(--soft-shadow); border-color: rgba(255, 255, 255, 0.8); }
.partner-card h3 { margin-bottom: 15px; }
.checklist { list-style: none; padding-left: 0; margin-top: 20px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.checklist li i { color: var(--primary-purple-accessible); margin-top: 5px; }
.contact-section { padding: var(--section-padding); color: var(--text-light); }
.contact-section h2, .contact-section label { color: var(--text-light); }
.contact-form { max-width: 800px; margin: 60px auto 0; }
.contact-form .btn { width: 100%; padding: 15px; font-size: 1.1rem; margin-top: 10px; }

.vision-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.vision-grid img { width: 100%; height: 100%; border-radius: var(--border-radius-lg); box-shadow: var(--soft-shadow); object-fit: cover; aspect-ratio: 4 / 3; }
.vision-content h2 { margin-bottom: 20px; }
.vision-content p { font-size: 1.2rem; line-height: 1.8; color: var(--text-muted); }

.principles-layout-container {
    margin-top: 60px;
}
.principles-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}
.principles-row:not(:last-child) {
    margin-bottom: 40px;
}
.principle-item {
    text-align: center;
    flex-basis: 30%;
    min-width: 280px;
    flex-grow: 1;
    max-width: 350px;
}
.principle-item .icon { font-size: 2.5rem; color: var(--primary-purple-accessible); margin-bottom: 20px; display: inline-block; }
.principle-item h3 { font-size: 1.25rem; margin-bottom: 10px; }
.principle-item p { color: var(--text-muted); }

.founders-section { padding: var(--section-padding); }
.founders-section .section-header h2 { color: var(--text-light); }
.founders-section .founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 60px; }
.founders-section .founder-card { background-color: rgba(26, 26, 26, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); padding: 30px; border-radius: var(--border-radius-lg); display: flex; flex-direction: column; align-items: center; text-align: center; color: #ccc; transition: transform var(--transition-smooth), box-shadow var(--transition-smooth); }
.founders-section .founder-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
.founders-section .founder-card img { width: 140px; height: 140px; border-radius: 50%; border: 4px solid #1a1a1a; outline: 2px solid var(--primary-purple); margin-bottom: 20px; object-fit: cover; }
.founders-section .founder-card h4 { color: #fff; margin-bottom: 5px; font-size: 1.3rem; }
.founders-section .founder-card h5 { color: var(--primary-purple); font-weight: 600; margin: 0 0 15px; }
.founder-socials { display: flex; gap: 20px; margin-top: 20px; }
.founder-socials a { color: #888; font-size: 1.2rem; }
.founder-socials a:hover { color: var(--primary-purple); }

.compliance-section .container > .section-subtitle { margin-bottom: 60px; }
.compliance-item { margin-top: 0; margin-bottom: 30px; }
.compliance-item:first-of-type { margin-top: 60px; }
.compliance-item h3 { display: flex; align-items: center; gap: 15px; font-size: 1.3rem; margin-bottom: 20px; }
.compliance-item i { color: var(--primary-purple-accessible); }
.compliance-item ul { padding-left: 20px; margin: 0; }
.grievance-box { border: 1px solid var(--border-color); padding: 20px; border-radius: var(--border-radius-md); margin-top: 15px; background: #fff; line-height: 1.8; }
.disclaimer-box { background: var(--primary-purple-light); color: var(--primary-purple-accessible); border: 1px solid var(--primary-purple); text-align: center; padding: 20px; border-radius: var(--border-radius-lg); margin-top: 40px; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}
.testimonial-card {
    padding: 30px;
    text-align: left;
    margin-top: 0;
}
.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}
.quote-icon {
    font-size: 2.5rem;
    color: var(--primary-purple);
    opacity: 0.1;
    line-height: 1;
}
.star-rating {
    color: #ffc107;
    font-size: 1.1rem;
    display: flex;
    gap: 5px;
}
.review-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}
.customer-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}
.customer-detail {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer {
    color: #ccc;
    background-color: var(--dark-bg);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 50px;
    margin-bottom: 30px;
    border-bottom: 1px solid #444;
}

.footer-col h4 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col p {
    margin: 0 0 15px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
}

.footer-tagline-col {
    text-align: center;
    align-self: center;
    padding: 0 20px;
}

.footer-tagline-col p {
    font-size: 1.2rem;
    font-weight: 500;
    color: #aaa;
    margin: 0;
    font-style: italic;
}

.app-download-col {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: flex-end;
}

.app-download-col .qr-code {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: #fff;
    padding: 8px;
    border-radius: var(--border-radius-md);
}

.app-buttons-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.app-buttons-footer .app-store-btn {
    width: 160px;
    padding: 8px 12px;
    gap: 10px;
}
.app-buttons-footer .app-store-btn i {
    font-size: 1.8rem;
}
.app-buttons-footer .app-store-btn span {
    font-size: 0.7rem;
}
.app-buttons-footer .app-store-btn strong {
    font-size: 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    font-size: 0.85rem;
    color: #888;
}

.social-icons {
    display: flex;
    gap: 20px;
}
.social-icons a {
    color: #ccc;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}
.social-icons a:hover {
    color: var(--primary-purple);
    transform: translateY(-2px);
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-legal a {
    color: #888;
    transition: color var(--transition-fast);
}
.footer-legal a:hover {
    color: var(--primary-purple);
}

.copyright {
    margin: 0;
}

.application-widget form { display: flex; flex-direction: column; gap: 25px; }
.application-widget .form-section h3 { font-size: 1.2rem; font-weight: 600; color: var(--text-color); margin-bottom: 25px; padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,0.1); }
.application-widget .form-group { margin-bottom: 15px; }
.application-widget label, .form-label { display: block; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; font-size: 0.9rem; }
.application-widget input[type="text"], .application-widget input[type="tel"], .application-widget input[type="password"], .application-widget input[type="number"], .form-control { width: 100%; box-sizing: border-box; padding: 14px 16px; font-size: 1rem; color: var(--text-color); background-color: rgba(255, 255, 255, 0.8); border: 1px solid var(--border-color); border-radius: var(--border-radius-md); transition: all 0.3s ease; }
.application-widget input::placeholder { color: rgba(0, 0, 0, 0.4); }
.application-widget input[type="text"]:focus, .application-widget input[type="tel"]:focus, .application-widget input[type="password"]:focus, .application-widget input[type="number"]:focus, .form-control:focus { outline: none; border-color: var(--primary-purple-accessible); box-shadow: 0 0 0 3px var(--primary-purple-light); }
.application-widget input[type="file"] { width: 100%; font-size: 0.9rem; color: var(--text-muted); }
.application-widget input[type="file"]::file-selector-button { padding: 12px 28px; margin-top: 5px; margin-right: 15px; font-size: 0.9rem; font-weight: 600; background-color: var(--primary-purple-accessible); color: white; border: none; border-radius: var(--border-radius-md); cursor: pointer; transition: all 0.3s ease; }
.application-widget input[type="file"]::file-selector-button:hover { transform: translateY(-2px); background-color: #512bA8; }
.application-widget .btn-primary, .application-widget input[type="submit"] { width: 100%; padding: 15px; font-size: 1.05rem; margin-top: 10px; font-weight: 600; }
.form-text-muted { font-size: 0.85rem; color: var(--text-muted); margin-top: 5px; display: block; }

.application-widget input[type=number]::-webkit-inner-spin-button, 
.application-widget input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
.application-widget input[type=number] {
  -moz-appearance: textfield;
}

.flash-message { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: var(--border-radius-md); font-size: 0.95rem; text-align: center; }
.flash-danger, .flash-error { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
.flash-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
.form-group .error, .owner-signature .error { color: #d9534f; font-size: 0.8rem; font-weight: 500; margin-top: 5px; display: block; }

.success-widget .success-icon { margin-bottom: 25px; }
.success-widget h2 { font-size: 2rem; margin-bottom: 20px; }
.success-widget p { max-width: 500px; margin-left: auto; margin-right: auto; }
.success-widget .highlight-message { font-size: 1.2rem; font-weight: 500; color: var(--text-color); margin-bottom: 25px; }
.success-widget .button-group { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.5rem; }

.processing-widget .success-icon {
    font-size: 4rem;
    color: var(--primary-purple-accessible);
    line-height: 1;
}

.loan-details-box {
    background-color: var(--primary-purple-light);
    border: 1px solid rgba(95, 52, 194, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 20px 30px;
    margin: 40px 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.detail-row:not(:last-child) {
    border-bottom: 1px dashed rgba(95, 52, 194, 0.3);
}

.detail-row .label {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
}

.detail-row .sub-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 5px 0 0 0;
    padding: 0;
    line-height: 1.4;
}

.detail-row .value-col {
    text-align: right;
}

.detail-row .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple-accessible);
}

.admin-main { min-height: calc(100vh - 71px); padding: 60px 0; }
.header.admin-header .navbar { display: flex; justify-content: space-between; }
.header.admin-header .logo { color: #fff; }
.header.admin-header .btn-primary { background-color: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.header.admin-header .btn-primary:hover { background-color: rgba(255,255,255,0.2); }
.admin-main h2 { color: #fff; margin-bottom: 40px; font-size: 2rem; }

.dashboard-table-container { overflow-x: auto; background-color: #1c1c1c; border: 1px solid #333; border-radius: var(--border-radius-lg); padding: 20px; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th, td { padding: 15px 20px; border-bottom: 1px solid #333; color: var(--text-light); }
thead th { font-weight: 600; font-size: 0.8rem; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; }
tbody tr:last-child td { border-bottom: none; }
td:last-child { text-align: right; }
.dashboard-table-container .btn { border-radius: 8px; font-size: 0.8rem; padding: 5px 15px; }

.view-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; }
.view-header h2 { margin-bottom: 0; text-align: left; font-size: 2.2rem; color: #fff; }
.application-details-container { text-align: left; color: #fff; }
.detail-section { background-color: #1c1c1c; border: 1px solid #333; border-radius: var(--border-radius-lg); padding: 30px; margin-bottom: 30px; }
.detail-section h3 { font-size: 1.3rem; font-weight: 600; color: var(--primary-purple); padding-bottom: 15px; margin-bottom: 25px; border-bottom: 1px solid #333; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, auto)); gap: 25px; }
.detail-item label { display: block; font-size: 0.9rem; font-weight: 500; color: #aaa; margin-bottom: 8px; }
.detail-item p { font-size: 1.05rem; font-weight: 500; word-wrap: break-word; text-align: left; margin: 0; color: #fff; }
pre { background-color: #111; padding: 15px; border-radius: 8px; max-height: 400px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; font-size: 0.8rem; border: 1px solid #333; color: #eee; }
.danger-zone { border: 2px solid #d9534f; background-color: rgba(217, 83, 79, 0.1); }
.danger-zone h3 { color: #f5c6cb; }
.danger-zone .danger-zone-text { font-size: 0.95rem; font-weight: 500; color: #f5c6cb; max-width: 100%; text-align: left; margin: 0; }
.btn-danger { background-color: #d9534f; color: white; }
.btn-danger:hover { background-color: #c9302c; }
.btn-outline { background-color: transparent; border: 1px solid #555; color: #ccc; }
.btn-outline:hover { background-color: #222; border-color: #777; color: #fff; }

.input-wrapper { position: relative; }
.input-icon, .password-toggle-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; }
.password-toggle-icon { cursor: pointer; }
.input-wrapper .form-control { padding-right: 45px; padding-left: 15px; }
.input-icon img, .password-toggle-icon img { width: 100%; height: 100%; filter: invert(70%); }

.document-widget { margin-top: 60px; padding: 30px 40px; background-color: #fff; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); border: 1px solid #e8e8e8; border-radius: 10px; max-width: 800px; margin-left: auto; margin-right: auto; text-align: left; font-family: 'Times New Roman', Times, serif; color: #333; }
.document-widget form { display: flex; flex-direction: column; gap: 20px; }
.document-header { text-align: center; margin-bottom: 30px; }
.document-header h4, .document-header h5 { font-family: 'Inter', sans-serif; }
.document-body p { margin: 15px 0; line-height: 1.8; text-align: left; font-size: 1.05rem; max-width: 100%; }
.filled-data { font-weight: 700; font-family: 'Courier New', Courier, monospace; text-decoration: underline; text-underline-offset: 3px; padding: 2px 5px; background-color: #f0f0f0; border-radius: 3px; color: #000; }
.signature-area { display: flex; justify-content: space-between; gap: 40px; margin-top: 50px; flex-wrap: wrap; }
.signature-box { flex: 1; min-width: 250px; display: flex; flex-direction: column; }
.signature-box hr { border: none; border-top: 1px solid #000; margin: 5px 0; }
.signature-box > span { font-size: 0.8rem; color: var(--text-muted); font-family: 'Inter', sans-serif; }
.owner-signature { justify-content: flex-end; }
.owner-signature input[type="text"] { border: none; border-bottom: 2px dotted #aaa; border-radius: 0; background-color: transparent; font-family: 'Dancing Script', cursive; font-size: 1.8rem; text-align: center; padding: 10px 0 5px 0; color: var(--dark-bg); margin-top: auto; }
.owner-signature input[type="text"]:focus { outline: none; border-bottom: 2px solid var(--primary-purple-accessible); }
.financier-signature { text-align: center; justify-content: flex-end; }
.financier-signature img { height: 50px; object-fit: contain; opacity: 0.8; }
.document-footer { margin-top: 30px; padding-top: 20px; border-top: 2px dashed #ccc; text-align: center; }
.signed-name { font-family: 'Dancing Script', cursive; font-size: 2rem; text-align: center; color: var(--dark-bg); padding: 10px 0 5px 0; }
.document-view-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 2rem 1rem; gap: 20px; }
.document-view-page .container { padding: 0; width: 100%; max-width: 800px; margin: 0; }
.document-view-page .document-widget { margin-top: 0; }

@media (max-width: 992px) {
    .navbar { display: flex; justify-content: space-between; }
    .nav-links { display: none; }
    .header-actions .btn-primary { display: none; }
    .mobile-nav-toggle { display: block; background: none; border: none; padding: 0; cursor: pointer; z-index: 1001; }
    .mobile-nav-toggle .icon-bar { display: block; width: 25px; height: 2px; background-color: var(--text-light); margin: 6px 0; transition: all 0.4s cubic-bezier(0.65, 0.05, 0.36, 1); }
    body.menu-open .mobile-nav-toggle { position: fixed; top: 28px; right: 20px; }
    body.menu-open .mobile-nav-toggle .icon-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    body.menu-open .mobile-nav-toggle .icon-bar:nth-child(2) { opacity: 0; }
    body.menu-open .mobile-nav-toggle .icon-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .mobile-nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--dark-bg); z-index: 1000; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.4s ease, visibility 0.4s ease; }
    body.menu-open .mobile-nav-overlay { opacity: 1; visibility: visible; pointer-events: auto; }
    .mobile-nav-overlay .nav-links { display: flex; flex-direction: column; text-align: center; gap: 20px; margin-bottom: 40px; }
    .mobile-nav-overlay .nav-links a { font-size: 1.5rem; }
    .calculator-card, .how-it-works-content { flex-direction: column; gap: 40px; }
    .calc-results { border-left: none; padding-left: 0; margin-top: 20px; padding-top: 30px; border-top: 1px dashed var(--border-color); }
    .partner-cards-grid, .founders-section .founders-grid, .vision-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .principles-row { flex-direction: column; align-items: center; }
    .features-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .phone-mockup { grid-area: 2 / 1 / 3 / 3; margin-top: 40px; }
    .feature-item:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
    .feature-item:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
    .feature-item:nth-child(3) { grid-area: 3 / 1 / 4 / 2; }
    .feature-item:nth-child(4) { grid-area: 3 / 2 / 4 / 3; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .app-download-col {
        justify-content: center;
    }
    .app-buttons-footer {
        align-items: center;
    }
    .footer-col {
        margin-bottom: 20px;
    }
    .footer-tagline-col {
        order: -1;
        margin-bottom: 40px;
    }
}
@media (max-width: 768px) {
    body { background-attachment: scroll; }

    .hero {
        padding-top: 40px;
        padding-bottom: 40px;
        min-height: 92vh;
    }
    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.5rem);
        line-height: 1.4;
        margin-bottom: 30px;
    }
    .hero .subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 50px;
    }
    .hero .tagline {
        font-size: 0.8rem;
        padding: 4px 12px;
        margin-bottom: 25px;
    }
    
    .app-buttons { flex-direction: column; align-items: center; }
    .features-grid { grid-template-columns: 1fr; gap: 40px; }
    .feature-item { grid-area: auto !important; }
    .phone-mockup { display: none; }
    .calculator-card, .partner-card, .compliance-item, .application-widget, .testimonial-card { padding: 20px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
    .result-item { flex-direction: column; gap: 10px; text-align: center; }

    .loan-details-box {
        padding: 15px 20px;
    }
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .detail-row .value-col {
        align-self: flex-end;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .footer-legal {
        justify-content: center;
    }
    .app-download-col {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Responsive Admin Table to Card View */
    .dashboard-table-container table { border: none; }
    .dashboard-table-container thead { display: none; }
    .dashboard-table-container tr { display: block; border: 1px solid #333; border-radius: var(--border-radius-md); margin-bottom: 20px; }
    .dashboard-table-container td { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; border-bottom: 1px solid #2a2a2a; text-align: right; }
    .dashboard-table-container td:last-child { border-bottom: none; }
    .dashboard-table-container td::before { content: attr(data-label); font-weight: 600; text-align: left; color: #aaa; margin-right: 20px; }
    
    .view-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .detail-grid { gap: 15px; }
    .danger-zone { padding: 20px; }
}

.processing-widget .success-icon {
    font-size: 4rem;
    color: var(--primary-purple-accessible);
    line-height: 1;
}

.loan-details-box {
    background-color: var(--primary-purple-light);
    border: 1px solid rgba(95, 52, 194, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 20px 30px;
    margin: 40px 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.detail-row:not(:last-child) {
    border-bottom: 1px dashed rgba(95, 52, 194, 0.3);
}

.detail-row .label {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
}

.detail-row .sub-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 5px 0 0 0;
    padding: 0;
    line-height: 1.4;
}

.detail-row .value-col {
    text-align: right;
}

.detail-row .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple-accessible);
}

.loan-options-box {
    text-align: left;
    margin: 30px 0;
}

.slider-group .slider-wrapper span.slider-value {
    font-weight: 600;
    color: var(--primary-purple-accessible);
    background-color: var(--primary-purple-light);
    padding: 5px 12px;
    border-radius: var(--border-radius-md);
    min-width: 110px;
    text-align: center;
    flex-shrink: 0;
}

.emi-display-box {
    background-color: var(--primary-purple-light);
    border: 1px solid rgba(95, 52, 194, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 25px 30px;
    margin-top: 30px;
    text-align: center;
}
.emi-display-box .label {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}
.emi-display-box .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-purple-accessible);
}