/* =====================================================
   Design tokens
   ===================================================== */

:root {
    --bg: #FAF7F1;
    --surface: #FFFFFF;
    --ink: #1E2A32;
    --ink-strong: #131C22;
    --muted: #66727C;
    --line: #EBE4D8;
    --green: #17594C;
    --green-deep: #0F3F36;
    --green-soft: #E4F0EA;
    --amber: #F5B02E;
    --peach: #FFF3E4;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 12px 32px rgba(30, 42, 50, 0.07);
    --shadow-lift: 0 18px 44px rgba(30, 42, 50, 0.12);
}

/* =====================================================
   Base
   ===================================================== */

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
}

h1, h2, h3, .display-4, .display-6 {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--ink-strong);
    letter-spacing: -0.015em;
}

a {
    color: var(--green);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--amber);
}

.section-pad {
    padding-block: 5.5rem;
}

.text-muted,
.text-secondary {
    color: var(--muted) !important;
}

/* =====================================================
   Buttons
   ===================================================== */

.btn-brand {
    background: var(--green);
    border: 1px solid var(--green);
    color: #fff;
    border-radius: 999px;
    padding: 0.7rem 1.6rem;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--green-deep);
    border-color: var(--green-deep);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 63, 54, 0.22);
}

.btn-brand:disabled {
    background: var(--green);
    opacity: 0.75;
}

.btn-brand.btn-lg {
    padding: 0.85rem 2rem;
}

.btn-outline-ink {
    border: 1.5px solid var(--ink);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.7rem 1.6rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-outline-ink:hover {
    background: var(--ink);
    color: #fff;
}

.btn-soft {
    background: var(--green-soft);
    color: var(--green-deep);
    border-radius: 999px;
    font-weight: 600;
    border: none;
    padding: 0.55rem 1.25rem;
}

.btn-soft:hover {
    background: #d5e8df;
    color: var(--green-deep);
}

/* =====================================================
   Navigation
   ===================================================== */

.site-nav {
    background: rgba(250, 247, 241, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding-block: 0.65rem;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.site-nav .navbar-brand {
    color: var(--ink-strong);
    letter-spacing: -0.01em;
}

.site-nav .nav-link {
    color: var(--muted);
    font-weight: 500;
    margin-inline: 0.15rem;
    border-radius: 999px;
    padding-inline: 0.9rem !important;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--ink-strong);
    background: rgba(23, 89, 76, 0.08);
}

.flash-wrap:not(:empty) {
    padding-top: 1rem;
    background: transparent;
}

/* =====================================================
   Hero
   ===================================================== */

/* Hero slider with Ken Burns effect */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.slider-wrap {
    position: absolute;
    inset: 0;
}

.slider-wrap .slide {
    position: absolute;
    inset: -60px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.4s ease-in-out, transform 8s ease-out;
}

.slider-wrap .slide.active {
    opacity: 1;
    transform: scale(1.12);
    transition: opacity 1.4s ease-in-out, transform 8s ease-out;
}

/* Ken Burns: each slide gets a unique pan direction */
.slider-wrap .slide:nth-child(1) { animation: kb1 8s ease-out forwards; }
.slider-wrap .slide:nth-child(2) { animation: kb2 8s ease-out forwards; }
.slider-wrap .slide:nth-child(3) { animation: kb3 8s ease-out forwards; }
.slider-wrap .slide:nth-child(4) { animation: kb4 8s ease-out forwards; }
.slider-wrap .slide:nth-child(5) { animation: kb5 8s ease-out forwards; }
.slider-wrap .slide:nth-child(6) { animation: kb6 8s ease-out forwards; }
.slider-wrap .slide:nth-child(7) { animation: kb7 8s ease-out forwards; }

@keyframes kb1 { from { transform: scale(1) translate(0,0); } to { transform: scale(1.15) translate(-2%, -1%); } }
@keyframes kb2 { from { transform: scale(1) translate(0,0); } to { transform: scale(1.18) translate(2%, -2%); } }
@keyframes kb3 { from { transform: scale(1) translate(0,0); } to { transform: scale(1.12) translate(-1%, 2%); } }
@keyframes kb4 { from { transform: scale(1) translate(0,0); } to { transform: scale(1.16) translate(1%, 1%); } }
@keyframes kb5 { from { transform: scale(1) translate(0,0); } to { transform: scale(1.14) translate(-2%, 1%); } }
@keyframes kb6 { from { transform: scale(1) translate(0,0); } to { transform: scale(1.17) translate(2%, 1%); } }
@keyframes kb7 { from { transform: scale(1) translate(0,0); } to { transform: scale(1.13) translate(-1%, -1%); } }

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3,47,40,0.82) 0%, rgba(3,47,40,0.55) 50%, rgba(3,47,40,0.35) 100%);
    z-index: 1;
}

.slider-content {
    z-index: 2;
    position: relative;
    padding-block: 5rem 4rem;
}

.slider-content .hero-title,
.slider-content .hero-sub,
.slider-content .hero-chip,
.slider-content .trust-row,
.slider-content .btn {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.slider-content .hero-sub {
    opacity: 0.9;
}

.slider-content .btn-light {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
    backdrop-filter: blur(4px);
}

.slider-content .btn-light:hover {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.5);
}

.slider-content .trust-item {
    color: rgba(255,255,255,0.85);
}

.slider-content .trust-item strong {
    color: #fff;
}

.hero-title {
    font-size: clamp(2.4rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    font-weight: 600;
    color: #fff;
}

.hero-sub {
    font-size: 1.13rem;
    max-width: 34rem;
    color: rgba(255,255,255,0.88);
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.trust-item i {
    color: var(--amber);
}

.trust-item strong {
    color: var(--ink-strong);
}

/* Hero visual */

.hero-visual {
    max-width: 380px;
}

.deal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
    padding: 1.75rem;
    position: relative;
    z-index: 2;
}

.deal-amount {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--ink-strong);
    line-height: 1;
}

.approved-pill {
    display: inline-flex;
    align-items: center;
    background: var(--green-soft);
    color: var(--green-deep);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
}

.deal-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    padding-block: 0.55rem;
    border-bottom: 1px dashed var(--line);
}

.deal-row:last-of-type {
    border-bottom: none;
}

.deal-bar {
    height: 8px;
    border-radius: 99px;
    background: #EEF1EC;
    overflow: hidden;
    margin-top: 0.9rem;
}

.deal-bar span {
    display: block;
    height: 100%;
    width: 62%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--green), #2E8B72);
}

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    padding: 0.5rem 0.95rem;
    z-index: 3;
}

.float-chip i {
    color: var(--green);
}

.chip-a {
    top: -18px;
    right: -14px;
    animation: bob 5s ease-in-out infinite alternate;
}

.chip-b {
    bottom: -16px;
    left: -22px;
    animation: bob 6s 0.8s ease-in-out infinite alternate;
}

@keyframes bob {    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

/* Reassurance strip */

.reassure-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 3rem;
    padding: 1.4rem 2rem;
    margin-top: -1.5rem;
    position: relative;
    z-index: 4;
}

.reassure-box > div {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.reassure-box i {
    color: var(--green);
}

/* =====================================================
   Stats
   ===================================================== */

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

.stat-strip .num {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--green-deep);
}

.stat-strip small {
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* =====================================================
   Service cards
   ===================================================== */

.service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green-soft);
    color: var(--green-deep);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.icon-badge-lg {
    width: 68px;
    height: 68px;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.icon-badge-sm {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    border-radius: 14px;
}

.card-arrow {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.card-arrow i {
    transition: transform 0.15s ease;
}

.service-card:hover .card-arrow i {
    transform: translateX(4px);
}

.tick-list li {
    margin-bottom: 0.45rem;
    color: var(--muted);
}

.tick-list li strong,
.tick-list li {
    font-size: 0.95rem;
}

.tick-list i {
    color: var(--green);
}

/* =====================================================
   Steps
   ===================================================== */

.step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--green);
    color: var(--green-deep);
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    height: 100%;
}

/* =====================================================
   Why / about
   ===================================================== */

.why-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.4rem;
    height: 100%;
    transition: transform 0.15s ease;
}

.why-box:hover {
    transform: translateY(-4px);
}

.about-figure {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-figure img {
    min-height: 340px;
    object-fit: cover;
    display: block;
}

.about-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: rgba(3,47,40,0.82);
    color: #fff;
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.why-box i {    font-size: 1.4rem;
    color: var(--green);
    background: var(--green-soft);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   Calculator
   ===================================================== */

.calc-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius-lg) + 8px);
    box-shadow: var(--shadow-soft);
}

.calc-result {
    background: var(--green-deep);
    border-radius: var(--radius-lg);
}

.calc-result .display-6 {
    color: #fff;
}

.form-range::-webkit-slider-thumb {
    background: var(--green);
}

.form-range::-moz-range-thumb {
    background: var(--green);
}

/* =====================================================
   FAQ & testimonials
   ===================================================== */

.faq-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--ink-strong);
}

.accordion-button:not(.collapsed) {
    background: var(--green-soft);
    color: var(--green-deep);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--line);
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.quote-glyph {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 3.4rem;
    line-height: 1;
    color: var(--amber);
    height: 2rem;
}

.avatar-circle {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    background: var(--green-soft) !important;
    color: var(--green-deep) !important;
    font-size: 0.85rem;
}

/* =====================================================
   CTA band
   ===================================================== */

.cta-panel {
    background: linear-gradient(135deg, var(--green-deep), var(--green));
    border-radius: calc(var(--radius-lg) + 8px);
    color: #fff;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-panel::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(245, 176, 46, 0.16);
    top: -140px;
    right: -80px;
}

.cta-panel h2 {
    color: #fff;
}

.cta-image-wrap {
    position: relative;
    min-height: 280px;
}

.cta-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3,47,40,0.55), transparent 35%);
}

.cta-image-wrap img {
    display: block;
}

.cta-panel .text-white-50 {
    color: rgba(255, 255, 255, 0.72) !important;
}

.btn-amber {
    background: var(--amber);
    border: 1px solid var(--amber);
    color: #3A2B05;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.85rem 2rem;
}

.btn-amber:hover {
    background: #E5A21F;
    border-color: #E5A21F;
    color: #3A2B05;
}

/* =====================================================
   Inner page head
   ===================================================== */

.page-head {
    background: var(--green-deep);
    padding-block: 3.25rem;
    position: relative;
    overflow: hidden;
}

.page-head::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(245, 176, 46, 0.12);
    top: -120px;
    right: -60px;
}

.page-head h1 {
    color: #fff;
}

.page-head .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.page-head .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

/* =====================================================
   Forms
   ===================================================== */

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink-strong);
}

.form-control,
.form-select {
    border-radius: 12px;
    border-color: #DDD5C7;
    padding: 0.65rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 0.2rem rgba(23, 89, 76, 0.12);
}

.panel-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.quick-links li + li {
    border-top: 1px solid var(--line);
}

.quick-links a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.12s ease;
}

.quick-links a:hover {
    background: var(--bg);
    color: var(--green-deep);
}

.contact-list li {
    display: flex;
    gap: 1rem;
    padding-block: 0.9rem;
    border-bottom: 1px dashed var(--line);
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list i {
    color: var(--green);
    margin-top: 0.25rem;
}

/* =====================================================
   Footer
   ===================================================== */

.site-footer {
    background: var(--green-deep);
    color: rgba(255, 255, 255, 0.72);
    margin-top: auto;
}

.site-footer h5,
.site-footer h6 {
    color: #fff;
}

.site-footer .text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--amber);
}

.footer-mail {
    color: #fff;
    text-decoration: none;
}

.footer-mail:hover {
    color: var(--amber);
}

.site-footer hr {
    opacity: 0.15;
}

/* =====================================================
   Admin
   ===================================================== */

.currency-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 0.9rem 0.5rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.12s ease;
    height: 100%;
}

.currency-option:hover {
    border-color: var(--green);
}

.currency-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.currency-option .cur-symbol {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink-strong);
}

.currency-option .cur-name {
    font-size: 0.8rem;
    color: var(--muted);
}

.currency-option .cur-code {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--green);
}

.currency-option.selected {
    border-color: var(--green);
    background: var(--green-soft);
}

.admin-body {
    background: #F4F6F8 !important;
    font-family: 'Inter', system-ui, sans-serif;
}

.admin-body h1,
.admin-body h2,
.admin-body h3 {
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: 0;
}

.stat-card {
    transition: transform 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.btn-toggle {
    cursor: pointer;
    pointer-events: auto;
}

.stat-primary { background: #E8EFFC; color: #24549C; }
.stat-success { background: #DCF3E5; color: #198754; }
.stat-warning { background: #FFF3CD; color: #997404; }
.stat-info    { background: #E0F2FE; color: #0B6AB0; }

.table > :not(caption) > * > * {
    vertical-align: middle;
}

/* ---- Customer account portal ---- */
.auth-logo {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
}

.loan-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.loan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}

.loan-amount {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--green-deep);
}

.loan-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1rem;
}

.loan-meta > div {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    display: flex;
    flex-direction: column;
}

.loan-meta span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}

.loan-meta strong {
    font-size: 0.95rem;
    color: var(--ink-strong);
    margin-top: 0.15rem;
}

.loan-summary {
    background: var(--green-deep);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.loan-summary > div {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.loan-summary span {
    color: rgba(255,255,255,.75);
}

.loan-summary strong {
    font-weight: 700;
}

.hr-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 0.5rem;
}

.hr-text::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

@media (max-width: 991px) {
    .hero-visual {
        margin-top: 3rem;
    }
}

/* ---- Auth pages (login / register) ---- */
.auth-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 1.35rem;
    color: var(--green-deep);
    background: linear-gradient(135deg, rgba(23,89,76,.12), rgba(245,176,46,.18));
    margin-bottom: 0.9rem;
}

.auth-head-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink-strong);
    margin-bottom: 0.3rem;
}

.auth-head-sub {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0;
    max-width: 340px;
    margin-inline: auto;
}

.auth-input .input-group-text {
    background: var(--bg);
    border-color: var(--line);
    color: var(--green-deep);
    min-width: 44px;
    justify-content: center;
}

.auth-input.form-control,
.auth-input .form-control {
    border-color: var(--line);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.auth-input .form-control:focus {
    box-shadow: 0 0 0 3px rgba(23,89,76,.12);
    border-color: var(--green-deep);
}

.auth-divider {
    border-top: 1px solid var(--line);
    opacity: 1;
    margin: 1.25rem 0 0.9rem;
}

.auth-secure-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
}

.auth-secure-note i {
    color: #198754;
    margin-right: 0.3rem;
}

/* ---- User dashboard cards ---- */
.dash-greeting-card {
    background: linear-gradient(120deg, var(--green-deep), #0e5a4b);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 1.75rem 2rem;
}

.dash-greeting-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    background: rgba(255,255,255,.16);
    color: #fff;
}

.dash-greeting-card .dash-sub {
    color: rgba(255,255,255,.8);
}

.btn-brand-light {
    background: #fff;
    color: var(--green-deep);
    border: 1px solid transparent;
    font-weight: 600;
}

.btn-brand-light:hover,
.btn-brand-light:focus {
    background: #f3f0e8;
    color: var(--green-deep);
}

.dash-stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.25rem 1.4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dash-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}

.dash-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.dash-stat-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}

.dash-stat-value {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--ink-strong);
    line-height: 1.1;
}

.dash-stat-sub {
    font-size: 0.78rem;
    color: var(--muted);
}

.dash-stat-icon.mgreen { background: #DCF3E5; color: #198754; }
.dash-stat-icon.mink  { background: #E8EFFC; color: #24549C; }
.dash-stat-icon.mgold { background: #FFF3CD; color: #997404; }
.dash-stat-icon.mrose { background: #FDE8EC; color: #C62855; }

.loan-card .progress {
    height: 6px;
    background: var(--bg);
    border-radius: 999px;
}

.loan-card .progress-bar {
    background: var(--green-deep);
    border-radius: 999px;
}

.dash-section-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink-strong);
}
