/* ========================================================
   LocoBiz | AI - MODERN, SIMPLE & INTUITIVE DESIGN SYSTEM
   LocoBiz | AI - MODERN, SIMPLE & INTUITIVE DESIGN SYSTEM
   Optimized for Rural Micro-Entrepreneurs & Ease of Use
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- DESIGN TOKENS --- */
:root {
    --primary: #16a34a;
    --primary-hover: #15803d;
    --primary-light: #ecfdf5;
    --primary-border: #bbf7d0;
    
    --accent: #0284c7;
    --accent-light: #e0f2fe;

    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-muted: #f1f5f9;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border: #e2e8f0;
    --border-focus: #16a34a;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.08);

    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html[data-theme="dark"] {
    --bg-page: #090909;
    --bg-card: #1a1a1a;
    --bg-muted: #242424;
    --text-primary: #f5f5f5;
    --text-secondary: #d1d1d1;
    --text-muted: #a3a3a3;
    --border: #404040;
    --primary-light: #173521;
    --primary-border: #237a46;
    --accent-light: #12334a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* --- RESET & GLOBALS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

button, input, select {
    font-family: inherit;
}

span {
    color: var(--primary);
}

/* --- NAVBAR --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

html[data-theme="dark"] header { background: rgba(9, 9, 9, 0.95); }
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .official-scheme-card,
html[data-theme="dark"] .stat-box,
html[data-theme="dark"] input,
html[data-theme="dark"] select { background: var(--bg-card); color: var(--text-primary); }
html[data-theme="dark"] .features-section { background: #121212; }

.site-preferences { display: flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 14px; }
.theme-toggle, .language-select { border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary); border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; min-height: 36px; padding: 7px 10px; cursor: pointer; }
.theme-toggle { min-width: 42px; }
.translation-status { color: var(--text-muted); font-size: 11px; font-weight: 700; white-space: nowrap; }

.schemes-section { padding: 90px 24px; background: var(--bg-muted); }
.scheme-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.official-scheme-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); }
.scheme-badge { display: inline-block; color: #166534; background: var(--primary-light); border: 1px solid var(--primary-border); border-radius: var(--radius-full); font-size: 12px; font-weight: 800; letter-spacing: .6px; padding: 4px 10px; margin-bottom: 14px; }
.official-scheme-card h3 { font-size: 20px; margin-bottom: 10px; }
.official-scheme-card > p, .official-scheme-card li { color: var(--text-secondary); font-size: 14px; }
.official-scheme-card h4 { font-size: 14px; margin: 18px 0 7px; }
.official-scheme-card ul { padding-left: 19px; display: grid; gap: 6px; }
.official-scheme-card a { display: inline-block; color: var(--primary); font-size: 14px; font-weight: 800; margin-top: 20px; }
.scheme-disclaimer { max-width: 900px; color: var(--text-muted); font-size: 13px; margin: 24px auto 0; text-align: center; }

.navbar {
    max-width: 1200px;
    margin: auto;
    min-height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 2px;
    letter-spacing: -0.5px;
}

.logo span,
.logo-main span {
    color: var(--primary);
}

.logo-sub {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-button {
    background: var(--primary);
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.nav-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

/* --- BUTTONS --- */
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #ffffff !important;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
    transition: all 0.2s ease;
}

.primary-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.secondary-button:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* --- HERO SECTION --- */
.hero {
    max-width: 1200px;
    margin: auto;
    min-height: 600px;
    padding: 60px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-content {
    max-width: 600px;
}

.tagline {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--primary-border);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-text {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* HERO LIVE CARD */
.hero-card {
    width: 400px;
    background: #ffffff;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    font-size: 22px;
}

.card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.stat-box {
    background: var(--bg-muted);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.stat-box p {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.stat-box h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 4px;
}

.profit-box {
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

.profit-box p {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

.profit-box h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-hover);
    margin: 4px 0;
}

.profit-box span {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: #ffffff;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
}

/* --- HOW IT WORKS (SIMPLE 3 STEPS) --- */
.how-it-works {
    max-width: 1200px;
    margin: auto;
    padding: 40px 24px 80px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.step-card {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    transition: transform 0.2s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

.step-number {
    width: 44px;
    height: 44px;
    margin: 0 auto 18px;
    background: var(--primary);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- FEATURES SECTION --- */
.features-section {
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 80px 24px;
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading p:first-child {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-heading h2 span {
    color: var(--primary);
}

.section-heading p:last-child {
    font-size: 16px;
    color: var(--text-secondary);
}

.feature-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-page);
    padding: 30px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- ABOUT SECTION --- */
.about-section {
    max-width: 1200px;
    margin: auto;
    padding: 80px 24px;
}

.about-content {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid var(--primary-border);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 900px;
    margin: auto;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 12px;
}

.about-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.about-content p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

/* --- FOOTER --- */
footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 40px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content h3 {
    font-size: 20px;
    font-weight: 800;
}

.footer-content p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========================================================
   ANALYSIS PAGE (FEASIBILITY CALCULATOR)
   ======================================================== */
.analysis-page {
    padding: 40px 24px 80px;
}

.analysis-container {
    max-width: 860px;
    margin: auto;
}

.analysis-heading {
    text-align: center;
    margin-bottom: 36px;
}

.analysis-heading h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 10px 0;
}

.analysis-heading p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 580px;
    margin: auto;
}

.analysis-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 36px;
}

.analysis-card-heading {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 28px;
}

.analysis-card-heading h2 {
    font-size: 22px;
    font-weight: 800;
}

.analysis-card-heading p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.analysis-section {
    margin-bottom: 30px;
}

.analysis-section h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: var(--bg-page);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.address-input-wrapper { position: relative; }

.location-suggestions {
    position: absolute; z-index: 10; top: calc(100% + 6px); right: 0; left: 0;
    overflow: hidden; margin: 0; padding: 6px; list-style: none; background: white;
    border: 1px solid #bbf7d0; border-radius: 8px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.location-suggestions li { padding: 10px 12px; border-radius: 6px; color: #374151; cursor: pointer; font-size: 14px; }
.location-suggestions li:hover, .location-suggestions li[aria-selected="true"] { background: #f0fdf4; color: #15803d; }
.form-help { color: #6b7280; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--border-focus);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.capital-input {
    display: flex;
    align-items: center;
    position: relative;
}

.capital-input span {
    position: absolute;
    left: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
}

.capital-input input {
    width: 100%;
    padding: 14px 14px 14px 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 700;
    background: var(--bg-page);
}

.capital-input input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

/* Quick Capital Chips */
.quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chip-btn {
    background: var(--bg-page);
    border: 1px solid var(--border);
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.chip-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.chip-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.analysis-section small {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.analysis-submit {
    margin-top: 32px;
}

.analysis-submit button {
    width: 100%;
    font-size: 16px;
    padding: 15px;
}

/* Output preview on analysis card */
.analysis-output-preview {
    margin-top: 40px;
    background: var(--bg-muted);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.analysis-output-preview h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.output-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.output-item {
    background: #ffffff;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.output-item span {
    font-size: 20px;
}

.output-item h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 6px 0 2px;
}

.output-item p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================================
   RESULT PAGE (REPORT)
   ======================================================== */
.result-page {
    padding: 40px 24px 80px;
}

.result-container {
    max-width: 900px;
    margin: auto;
}

.result-heading {
    text-align: center;
    margin-bottom: 32px;
}

.result-heading h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 10px 0;
}

.result-location {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 16px;
}

.result-location p {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.result-location h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.result-card {
    background: #ffffff;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.result-card:nth-child(2) {
    border-color: var(--primary-border);
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.result-icon {
    font-size: 26px;
    margin-bottom: 12px;
}

.result-card p {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.result-card h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 6px 0;
}

.result-card:nth-child(2) h2 {
    color: var(--primary);
}

.result-card span {
    font-size: 12px;
    color: var(--text-muted);
}

/* SCHEME CARD */
.scheme-card {
    background: #ffffff;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 36px;
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.scheme-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.scheme-content {
    flex: 1;
}

.scheme-content p {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.scheme-content h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 4px 0 16px;
}

.scheme-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.scheme-details span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.scheme-details strong {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 700;
}

.report-preview {
    background: #ffffff;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.report-heading h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 6px 0;
}

.report-heading p:last-child {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.report-card {
    background: var(--bg-page);
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.report-card span {
    font-size: 22px;
}

.report-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 8px 0 4px;
}

.report-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.report-button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

/* --- AI FEASIBILITY REPORT DETAILED SECTIONS --- */
.feasibility-section {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.feasibility-section:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
}

.feasibility-title {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.feasibility-title span {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.feasibility-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feasibility-title p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.feasibility-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.analysis-box {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    transition: all 0.2s ease;
}

.analysis-box:hover {
    background: #ffffff;
    border-color: var(--primary-border);
}

.analysis-box strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.analysis-box p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* SWOT ANALYSIS GRID & CARDS */
.swot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.swot-card {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    position: relative;
    transition: all 0.2s ease;
}

.swot-card:hover {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.swot-card:nth-child(1) {
    border-left: 4px solid #10b981;
}

.swot-card:nth-child(2) {
    border-left: 4px solid #f59e0b;
}

.swot-card:nth-child(3) {
    border-left: 4px solid #3b82f6;
}

.swot-card:nth-child(4) {
    border-left: 4px solid #ef4444;
}

.swot-card span {
    font-size: 24px;
    display: inline-block;
    margin-bottom: 10px;
}

.swot-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.swot-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* AI ADVISOR CTA IN RESULT */
.advisor-cta {
    margin-top: 36px;
    padding: 30px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.advisor-cta .tagline {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 6px;
}

.advisor-cta h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.advisor-cta p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.5;
    margin: 0;
}

.advisor-cta .report-button {
    max-width: 250px;
    flex-shrink: 0;
}

/* ========================================================
   AI ADVISOR (CHAT & GUIDANCE)
   ======================================================== */
.advisor-page {
    padding: 36px 24px 80px;
}

.advisor-container {
    max-width: 1000px;
    margin: auto;
}

.advisor-header {
    text-align: center;
    margin-bottom: 28px;
}

.advisor-header h1 {
    font-size: 34px;
    font-weight: 800;
    margin: 6px 0;
}

.ai-status {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 16px 22px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.ai-status-icon {
    font-size: 26px;
}

.ai-status h3 {
    font-size: 15px;
    font-weight: 700;
}

.ai-status p {
    font-size: 13px;
    color: var(--text-secondary);
}

.online-status {
    margin-left: auto;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.advisor-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    margin-bottom: 36px;
}

.advisor-chat {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 520px;
    overflow: hidden;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-page);
}

.chat-avatar {
    font-size: 22px;
}

.chat-header h2 {
    font-size: 16px;
    font-weight: 700;
}

.chat-header p {
    font-size: 12px;
    color: var(--text-muted);
}

.chat-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #ffffff;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 85%;
}

.message-avatar {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 4px;
}

.message-content {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.5;
}

.ai-message {
    align-self: flex-start;
}

.ai-message .message-content {
    background: var(--bg-muted);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
    border: 1px solid var(--border);
}

.user-message {
    align-self: flex-end;
}

.user-message .message-content {
    background: var(--primary);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.chat-input {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    background: #ffffff;
}

.chat-input input {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    background: var(--bg-page);
}

.chat-input input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: #ffffff;
}

.chat-input button {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-input button:hover {
    background: var(--primary-hover);
}

/* Quick Advice Panel */
.quick-advice {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.quick-advice h2 {
    font-size: 17px;
    font-weight: 700;
}

.quick-advice p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0 18px;
}

.advice-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.advice-options button {
    background: var(--bg-page);
    border: 1px solid var(--border);
    padding: 11px 14px;
    border-radius: var(--radius-md);
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.advice-options button:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(3px);
}

/* Recommendations */
.recommendations {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.section-title h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 18px;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.recommendation-card {
    background: var(--bg-page);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius-md);
}

.recommendation-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.recommendation-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.recommendation-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 4px 0 8px;
}

.recommendation-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.advisor-disclaimer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================================
   DASHBOARD PAGE
   ======================================================== */
.dashboard-page {
    padding: 40px 24px 80px;
}

.dashboard-container {
    max-width: 1100px;
    margin: auto;
}

.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-welcome h1 {
    font-size: 32px;
    font-weight: 800;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.dashboard-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card-top p {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.dashboard-card-top h2 {
    font-size: 26px;
    font-weight: 800;
    margin-top: 4px;
}

.dashboard-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.overview-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.overview-row:last-child {
    border-bottom: none;
}

.overview-row span:first-child {
    color: var(--text-secondary);
}

.overview-row strong {
    color: var(--text-primary);
}

.quick-section {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.quick-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.quick-card {
    background: var(--bg-page);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.quick-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.quick-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.quick-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.quick-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================================
   FINANCE & BUSINESS PAGES
   ======================================================== */
.finance-page,
.business-page {
    padding: 40px 24px 80px;
}

.finance-container,
.business-container {
    max-width: 1000px;
    margin: auto;
}

.finance-header,
.business-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.finance-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.finance-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.transaction-section,
.business-section {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.transaction-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 14px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.transaction-table-wrapper {
    overflow-x: auto;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.transaction-table th,
.transaction-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.transaction-table th {
    background: var(--bg-page);
    font-weight: 700;
    color: var(--text-secondary);
}

.income-amount {
    color: var(--primary);
    font-weight: 700;
}

.expense-amount {
    color: #ef4444;
    font-weight: 700;
}

.business-profile-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 18px;
}

.business-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.business-info-grid,
.goal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-item,
.goal-card {
    background: var(--bg-page);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius-md);
}

.business-tip {
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-top: 24px;
    display: flex;
    gap: 14px;
    align-items: center;
}

/* ========================================================
   AUTH PAGES (LOGIN & REGISTER)
   ======================================================== */
.login-page,
.register-page {
    padding: 60px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
}

.login-container,
.register-container {
    width: 100%;
    max-width: 480px;
}

.login-box,
.register-form {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.login-heading,
.register-heading {
    text-align: center;
    margin-bottom: 28px;
}

.login-heading h1,
.register-heading h1 {
    font-size: 26px;
    font-weight: 800;
}

.login-heading p,
.register-heading p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-button,
.form-submit button {
    width: 100%;
    padding: 13px;
    font-size: 15px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.register-link a {
    color: var(--primary);
    font-weight: 700;
}

/* ========================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ======================================================== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }

    .hero-content {
        max-width: 100%;
    }

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

    .hero-card {
        width: 100%;
        max-width: 460px;
    }

    .feature-grid,
    .report-grid,
    .output-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid,
    .result-stats,
    .dashboard-stats,
    .finance-stats,
    .recommendation-grid,
    .quick-grid {
        grid-template-columns: 1fr;
    }

    .advisor-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .advisor-chat {
        height: 460px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        gap: 18px;
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-text {
        font-size: 15px;
    }

    .analysis-grid,
    .business-info-grid,
    .goal-grid,
    .scheme-details {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .report-grid,
    .output-grid,
    .feasibility-content,
    .swot-grid {
        grid-template-columns: 1fr;
    }

    .advisor-cta {
        flex-direction: column;
        text-align: center;
        padding: 24px 18px;
    }

    .advisor-cta p {
        max-width: 100%;
        margin-bottom: 12px;
    }

    .advisor-cta .report-button {
        max-width: 100%;
        width: 100%;
    }

    .transaction-form {
        grid-template-columns: 1fr;
    }

    .analysis-card,
    .result-page,
    .advisor-page,
    .login-box,
    .register-form {
        padding: 24px 18px;
    }
}

/* --- DARK THEME: FORM READABILITY --- */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .capital-input,
html[data-theme="dark"] .chat-input,
html[data-theme="dark"] .location-suggestions {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

html[data-theme="dark"] select option {
    background: #1e293b;
    color: #f8fafc;
}

html[data-theme="dark"] .form-group label,
html[data-theme="dark"] .form-help,
html[data-theme="dark"] .capital-input span,
html[data-theme="dark"] .login-options,
html[data-theme="dark"] .remember-me,
html[data-theme="dark"] .location-suggestions li {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group select:focus,
html[data-theme="dark"] .capital-input input:focus,
html[data-theme="dark"] .chat-input input:focus {
    background: #1e293b !important;
    border-color: #4ade80 !important;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2) !important;
}

html[data-theme="dark"] .location-suggestions li:hover,
html[data-theme="dark"] .location-suggestions li[aria-selected="true"] {
    background: #153c27 !important;
    color: #dcfce7 !important;
}

/* Neutral table surfaces in dark mode, including finance and report tables. */
html[data-theme="dark"] .transaction-table-wrapper,
html[data-theme="dark"] .table-container,
html[data-theme="dark"] .schedule-card,
html[data-theme="dark"] table {
    background: #1f1f1f !important;
    color: #f5f5f5 !important;
    border-color: #404040 !important;
}

html[data-theme="dark"] table th {
    background: #303030 !important;
    color: #ffffff !important;
    border-color: #4a4a4a !important;
}

html[data-theme="dark"] table td {
    background: #242424 !important;
    color: #e5e5e5 !important;
    border-color: #404040 !important;
}

html[data-theme="dark"] table tr:nth-child(even) td {
    background: #292929 !important;
}

/* Replace hard-coded white panels left by individual page styles. */
html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .features-section,
html[data-theme="dark"] footer,
html[data-theme="dark"] .analysis-card,
html[data-theme="dark"] .output-item,
html[data-theme="dark"] .result-location,
html[data-theme="dark"] .result-card,
html[data-theme="dark"] .scheme-card,
html[data-theme="dark"] .scheme-details,
html[data-theme="dark"] .report-preview,
html[data-theme="dark"] .feasibility-section,
html[data-theme="dark"] .ai-status,
html[data-theme="dark"] .advisor-chat,
html[data-theme="dark"] .chat-area,
html[data-theme="dark"] .chat-input,
html[data-theme="dark"] .quick-advice,
html[data-theme="dark"] .recommendations,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .dashboard-panel,
html[data-theme="dark"] .quick-section,
html[data-theme="dark"] .finance-card,
html[data-theme="dark"] .transaction-section,
html[data-theme="dark"] .business-section,
html[data-theme="dark"] .business-profile-card,
html[data-theme="dark"] .login-box,
html[data-theme="dark"] .register-form,
html[data-theme="dark"] .nav-links.active {
    background: #d4d4d4 !important;
    color: #171717 !important;
}

html[data-theme="dark"] .result-card:nth-child(2),
html[data-theme="dark"] .scheme-card {
    background: linear-gradient(135deg, #d4d4d4 0%, #bdbdbd 100%) !important;
}

html[data-theme="dark"] .profit-box span,
html[data-theme="dark"] .feature-card:hover,
html[data-theme="dark"] .analysis-box:hover,
html[data-theme="dark"] .swot-card:hover {
    background: #d4d4d4 !important;
}
/* ==========================================
   SMART FINANCIAL CALCULATOR
========================================== */

.finance-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.section-header p {
    color: #666;
}


.finance-card,
.scheme-card,
.emi-card,
.schedule-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}


.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.form-group label {
    font-weight: 600;
}


.form-group input,
.form-group select {
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}


.primary-btn {
    border: none;
    padding: 13px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}


.finance-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}


.finance-stat {
    background: white;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.07);
}


.finance-stat span {
    display: block;
    color: #666;
    margin-bottom: 8px;
}


.finance-stat strong {
    font-size: 23px;
}


.scheme-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}


.scheme-details span {
    display: block;
    color: #777;
    margin-bottom: 6px;
}


.scheme-details strong {
    font-size: 18px;
}


.emi-main {
    text-align: center;
    padding: 25px;
}


.emi-main span {
    display: block;
    color: #666;
    margin-bottom: 10px;
}


.emi-main strong {
    font-size: 38px;
}


.emi-note {
    text-align: center;
    color: #777;
    font-size: 14px;
}


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


.schedule-card table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}


.schedule-card th,
.schedule-card td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: right;
}


.schedule-card th:first-child,
.schedule-card td:first-child {
    text-align: left;
}


.schedule-card th {
    font-weight: 600;
}


@media (max-width: 768px) {

    .form-grid,
    .finance-summary,
    .scheme-details {
        grid-template-columns: 1fr;
    }

    .finance-section {
        padding: 12px;
    }

}

@media (max-width: 768px) {
    .site-preferences { gap: 5px; margin-left: auto; margin-right: 8px; }
    .language-select { width: 84px; padding: 7px 5px; }
    .theme-toggle { min-width: 36px; padding: 7px; }
    .scheme-grid { grid-template-columns: 1fr; }
}
