/* ==========================================================================
   UNIFIED CSS VARIABLES — Single source of truth for all colors
   ========================================================================== */
:root {
    --primary-green: #32AB2E;
    --hover-green: #218838;
    --primary-dark: #1e7e34;
    --dark-green: #27ae60;
    --light-green: #e8f8f5;
    --bg-color: #f4f6f9;
    --bg-light: #f4f7f6;
    --error-red: #ff4d4d;
    --text-muted: #6c757d;
    --text-color: #2c3e50;
    --text-dark: #1e293b;
    --text-gray: #636e72;
    --card-bg: #ffffff;
    --card-white: #ffffff;
    --brand-teal: #32AB2E;
    --light-bg: #f4f7f6;
}

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

/* Set Poppins on body ONLY — never on ::before/::after
   because Font Awesome icon glyphs need their own font on ::before */
body, input, button, select, textarea {
    font-family: 'Poppins', sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Base Body Styles */
body {
    background-color: var(--bg-light);
    color: var(--text-color);
    min-height: 100vh;
    padding-bottom: 100px;
    overflow-x: hidden;
}

/* ==========================================================================
   1. LOGIN / REGISTER PAGE
   ========================================================================== */
.auth-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    will-change: transform, opacity;
}

.illustration-top {
    background-color: var(--primary-green);
    padding: 24px 16px;
    text-align: center;
    color: white;
}

.illustration-top h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 700;
}

.illustration-top p {
    font-size: 13px;
    margin-top: 4px;
    opacity: 0.9;
    line-height: 1.4;
}

.form-section {
    padding: 24px 20px 10px 20px;
}

.form-section h2 {
    display: none;
}

.input-group-auth {
    margin-bottom: 16px;
    position: relative;
}

.input-group-auth input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.15s ease-in-out;
}

.input-group-auth input:focus {
    border-color: var(--primary-green);
}

.input-group-auth i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 16px;
}

.form-options {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--primary-green);
    width: 16px;
    height: 16px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: var(--hover-green);
}

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

.signup-text a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.error-msg {
    background: #fff5f5;
    color: var(--error-red);
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 16px;
    border: 1px solid #ffe3e3;
    text-align: left;
}

/* ==========================================================================
   2. SHARED HEADER / NAVIGATION
   ========================================================================== */
.auth-header {
    background-color: var(--primary-green);
    color: white;
    padding: 40px 20px 80px;
    text-align: center;
    border-radius: 0 0 35px 35px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

.welcome-msg {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

.auth-container {
    padding: 0 15px;
    width: 100%;
    max-width: 500px;
    margin: -50px auto 0;
}

.back-button {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 22px;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.back-button:hover {
    color: rgba(255,255,255,0.7);
    transform: translateY(-50%) scale(1.05);
}

/* Bottom Navigation — Bootstrap fixed-bottom */
.fixed-bottom {
    background: var(--primary-green);
    height: 75px;
    display: flex;
    align-items: center;
    border-top: none;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.7);
    text-align: center;
    font-size: 11px;
    padding: 5px 0;
    text-decoration: none;
    flex: 1;
}

.navbar-nav .nav-link.active {
    color: #fff;
    font-weight: 600;
}

.navbar-nav .nav-link i {
    display: block;
    font-size: 22px;
    margin-bottom: 2px;
}

/* Bottom Navigation — Standalone (wallet.php style) */
.fixed-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--primary-green);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.fixed-bottom-nav .nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none !important;
    font-size: 11px;
    gap: 2px;
}

.fixed-bottom-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: 700;
}

.fixed-bottom-nav .nav-link i {
    font-size: 22px;
}

/* ==========================================================================
   3. HOME / INDEX LOAN DASHBOARD
   ========================================================================== */
.page-content {
    padding-bottom: 90px;
}

.banner-slider {
    margin-bottom: 20px;
}

.banner-item img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.loan-amount-input {
    border: 2px solid var(--primary-green) !important;
    border-right: none !important;
    border-radius: 12px 0 0 12px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    text-align: center;
    color: var(--primary-green) !important;
}

.loan-amount-input-addon {
    background-color: var(--primary-green) !important;
    color: white !important;
    border: 2px solid var(--primary-green) !important;
    border-radius: 0 12px 12px 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

.summary-item {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px 5px;
    text-align: center;
}

.summary-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-green);
    display: block;
}

.summary-label {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
}

.form-range::-webkit-slider-runnable-track {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-green);
    border: 3px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    margin-top: -10px;
}

.btn-check:checked + .btn-outline-primary {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    color: white !important;
}

.btn-outline-primary {
    border-color: #eee !important;
    color: #666 !important;
    font-size: 13px !important;
    padding: 10px 5px !important;
}

/* Bootstrap Overrides */
.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: var(--primary-green);
    color: white;
    border: none;
}

.btn-primary {
    background-color: var(--primary-green) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px !important;
    font-weight: 600 !important;
}

/* Force the header elements to stack vertically and center alignment */
.auth-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.auth-header h1, 
.auth-header p {
    display: block !important;
    width: 100% !important;
}

/* ==========================================================================
   4. DASHBOARD PAGE (dashboard.php)
   ========================================================================== */

/* ── Welcome Banner ── */
.user-center-banner {
    background: var(--primary-green);
    border-radius: 0 0 35px 35px;
    padding: 40px 20px 65px;
    text-align: left;
    color: white;
    position: relative;
}

.user-center-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.3px;
    display: block;
    line-height: 1.4;
}

/* Credit Score Module */
.credit-score-wrapper {
    background: var(--primary-green);
    border-radius: 25px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(50, 171, 46, 0.3);
    margin-bottom: 20px;
    color: white;
}

.credit-score-circle {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.credit-score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.bg-circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 8;
}

.progress-circle {
    fill: none;
    stroke: #ffffff;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease-out;
}

.credit-score-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.credit-score-value {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.credit-score-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-top: 5px;
}

.credit-score-range {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    padding: 0 25px;
    font-weight: 500;
}

/* Dashboard Menu List */
.list-group {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    background: white;
}

.list-group-item {
    padding: 18px 20px;
    border: none;
    border-bottom: 1px solid #f8f8f8;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    transition: background-color 0.15s ease;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:active {
    background-color: #f9f9f9;
}

.menu-icon-box {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f0fdf4;
    color: var(--primary-green);
}

/* Logout Button */
.btn-logout {
    background-color: #fff;
    color: #dc3545;
    border: 1px solid #fee2e2;
    padding: 15px;
    border-radius: 15px;
    font-weight: 600;
    width: 100%;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.05);
}

/* Notice Banner */
.notice-banner {
    background: #fff9db;
    color: #856404;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid #ffeeba;
    animation: pulse 2s infinite;
}

/* ==========================================================================
   5. WALLET PAGE (wallet.php)
   ========================================================================== */
.wrapper {
    width: 100%;
    max-width: 450px;
    position: relative;
    margin: 0 auto;
}

.header {
    background: var(--primary-green);
    padding: 40px 25px 80px;
    color: white;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.header p {
    margin: 8px 0 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.wallet-card {
    background: var(--primary-green);
    margin: -50px 20px 25px;
    padding: 35px 25px;
    border-radius: 25px;
    color: white;
    box-shadow: 0 10px 25px rgba(50, 171, 46, 0.3);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 5;
}

.wallet-card p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
}

.wallet-card h2 {
    margin: 12px 0;
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
}

.ref-box {
    background: rgba(255,255,255,0.15);
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px dashed rgba(255,255,255,0.4);
    cursor: pointer;
    color: #ffffff;
    font-family: monospace;
}

.info-container {
    padding: 0 20px;
}

.info-row {
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.info-label {
    font-size: 14px;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: #333333;
    font-weight: 700;
}

.action-area {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-withdraw {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px;
    background: var(--primary-green);
    color: white !important;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 6px 15px rgba(50, 171, 46, 0.2);
    gap: 12px;
    transition: background-color 0.15s ease, transform 0.1s ease;
    cursor: pointer;
}

.btn-withdraw:active {
    transform: scale(0.98);
    background: var(--primary-dark);
}

.btn-history {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background: #ffffff;
    color: var(--primary-green);
    border-radius: 15px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    gap: 10px;
    border: 1px solid #eee;
}

/* ==========================================================================
   6. WITHDRAW PAGE (withdraw.php)
   ========================================================================== */
.security-badge {
    text-align: center;
    margin-bottom: 30px;
}

.security-badge i {
    font-size: 45px;
    color: var(--primary-green);
    background: #f0fdf4;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.security-badge p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.card {
    background: white;
    margin: -50px 20px 20px;
    padding: 35px 25px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(50, 171, 46, 0.1);
}

label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-wrapper {
    position: relative;
}

.field-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    font-size: 18px;
}

.field {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px 16px 16px 50px;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    font-weight: 600;
    transition: border-color 0.15s ease;
}

.field:focus {
    border-color: var(--primary-green);
    background: #fff;
}

.max-info {
    font-size: 12px;
    color: var(--primary-green);
    display: block;
    margin-top: 8px;
    font-weight: 600;
    text-align: right;
}

.btn-confirm {
    width: 100%;
    padding: 20px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 10px 20px rgba(50, 171, 46, 0.2);
    transition: background-color 0.15s ease, transform 0.1s ease;
    text-transform: uppercase;
}

.btn-confirm:active {
    transform: scale(0.98);
    background: var(--primary-dark);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

/* ==========================================================================
   7. WITHDRAW SUCCESS PAGE (withdraw_success.php)
   ========================================================================== */
.success-card {
    background: white;
    padding: 45px 30px;
    border-radius: 35px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(50, 171, 46, 0.1);
    position: relative;
}

.icon-box {
    width: 85px;
    height: 85px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    margin: 0 auto 30px;
    box-shadow: 0 10px 25px rgba(50, 171, 46, 0.3);
    border: 6px solid #f0fdf4;
}

.ref-container {
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    padding: 20px;
    border-radius: 20px;
    margin: 25px 0;
    position: relative;
}

.ref-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.ref-number {
    font-size: 20px;
    color: var(--primary-green);
    font-weight: 700;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
}

.timer-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #d97706;
    background: #fff9db;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 25px;
    border: 1px solid #ffeeba;
}

.btn-done {
    display: block;
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    padding: 20px;
    border-radius: 22px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 10px 20px rgba(50, 171, 46, 0.2);
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-done:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-done:active {
    transform: scale(0.98);
}

/* ==========================================================================
   8. CONTACT PAGE (contact.php)
   ========================================================================== */
.service-banner {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-contact {
    background-color: var(--primary-green);
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.1s ease;
    box-shadow: 0 4px 15px rgba(50, 171, 46, 0.2);
}

.btn-contact:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.hours-badge {
    display: inline-block;
    background-color: #f1f3f5;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.faq-title {
    font-size: 18px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #333;
}

/* ==========================================================================
   9. SHARED FORM STYLES 
   ========================================================================== */
.form-control {
    border-radius: 12px;
    padding: 14px 15px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
}

.form-control:focus {
    border-color: var(--primary-green) !important;
    box-shadow: none !important;
    background-color: #fff !important;
}

.form-control:disabled, .form-control[readonly] {
    background-color: #f8f9fa !important;
    color: #777 !important;
    opacity: 1 !important;
}

.section-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-green);
    margin: 20px 0 15px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
    margin-left: 10px;
}

.btn-submit {
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.15s, transform 0.1s ease;
    box-shadow: 0 8px 20px rgba(50, 171, 46, 0.2);
}

.btn-submit:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.status-text {
    font-size: 13px;
    font-weight: 600;
}

.status-text.uncompleted {
    color: #dc3545;
}

.status-text.completed {
    color: var(--primary-green);
}

/* ==========================================================================
   10. UPLOAD / IDENTITY VERIFICATION
   ========================================================================== */
.upload-title {
    font-size: 15px;
    font-weight: 600;
    color: #444;
    margin-bottom: 15px;
    text-align: center;
}

.upload-box {
    height: 110px;
    border: 1px dashed #ccc;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #fdfdfd;
    width: 100%;
    cursor: pointer;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* ==========================================================================
   11. EXTRACTED STYLES FROM: loan_step1.php
   ========================================================================== */
.loan-amount-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    margin: 18px 0 10px;
}

.loan-amount-label i { 
    color: var(--primary-green, #32AB2E); 
    font-size: 12px; 
}

.loan-amount-box {
    display: flex;
    align-items: center;
    border: 2px solid var(--primary-green, #32AB2E);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loan-amount-input-big {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 16px;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-green, #32AB2E);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
}

.loan-currency-tag {
    background: var(--primary-green, #32AB2E);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 18px;
    display: flex;
    align-items: center;
}

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

.summary-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-green, #32AB2E);
    display: block;
}

.monthly-repayment-line {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.monthly-repayment-line span {
    color: var(--primary-green, #32AB2E);
    font-weight: 700;
    font-size: 16px;
}

.slider-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    margin-bottom: 5px;
}

/* ──── FIXED: GRID LAYOUT MOBILE CORRECTION ──── */
.period-grid-4, .period-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Default 2x2 grid on mobile */
    gap: 8px;
    width: 100%;
}

.period-option {
    padding: 14px 4px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #636e72;
    transition: background-color 0.15s, color 0.15s;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.period-option.active {
    background: var(--primary-green, #32AB2E);
    color: #fff;
    border-color: var(--primary-green, #32AB2E);
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    margin: 20px 0;
    cursor: pointer;
}

.agreement-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-green, #32AB2E);
    flex-shrink: 0;
}

.agreement-checkbox a {
    color: var(--primary-green, #32AB2E);
    font-weight: 600;
    text-decoration: underline;
}

.btn-apply {
    width: 100%;
    padding: 18px;
    background: var(--primary-green, #32AB2E);
    color: #fff;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(50, 171, 46, 0.2);
    margin-top: 10px;
}

input#amountSlider.form-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    outline: none;
}

input#amountSlider.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-green, #32AB2E);
    border: 3px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    cursor: pointer;
}

/* Responsive grid view on landscape and tablet */
@media (min-width: 380px) {
    .summary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .summary-value {
        font-size: 13px;
    }
    .period-grid-4, .period-grid {
        grid-template-columns: repeat(4, 1fr); /* Switches to 4 columns on larger screens */
    }
}

/* ==========================================================================
   12. EXTRACTED STYLES FROM: loan_confirm.php
   ========================================================================== */
@keyframes flowIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.flow-element {
    animation: flowIn 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
}

.confirm-header {
    text-align: center;
    padding: 10px 0 20px;
}

.confirm-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 4px;
}

.confirm-header p {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
}

.confirm-read-only {
    background: #f8fdfd;
    border: 2px solid #e0f2f1;
    border-radius: 20px;
    padding: 22px 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0, 150, 136, 0.04);
}

.confirm-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.confirm-value {
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    display: block;
    margin-bottom: 16px;
}

.confirm-total-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.confirm-total-value {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    display: block;
}

/* ==========================================================================
   13. MODERN STABLE OVERLAYS & MODALS
   ========================================================================== */
#confirmOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    will-change: opacity;
}

#confirmOverlay.active {
    display: flex !important;
}

#confirmContent {
    background: #fff;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    padding: 10px;
}

#termsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    will-change: opacity;
}

#termsModal.active {
    display: flex !important;
}

#termsModalContent {
    background: #fff;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

#termsModalHeader {
    background: var(--primary-green, #32AB2E);
    color: #fff;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#termsModalHeader h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

#termsModalClose {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

#termsModalBody {
    padding: 20px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    color: #444;
}

#termsModalFooter {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

#termsModalUnderstand {
    width: 100%;
    padding: 14px;
    background: var(--primary-green, #32AB2E);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

/* ==========================================================================
   14. APPLICATION SUCCESS PAGE (application_success.php)
   ========================================================================== */
.success-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    margin: 0 auto 25px;
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1) both;
}

.loan-summary {
    background-color: #fafbfc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #edf2f7;
}

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

.cs-box {
    background-color: var(--light-green);
    border-left: 4px solid var(--primary-green);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.cs-box i {
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-top: 2px;
}

.btn-wallet {
    display: block;
    background-color: var(--primary-green);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: background-color 0.15s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(50, 171, 46, 0.2);
    text-align: center;
}

.btn-wallet:hover {
    background-color: var(--hover-green);
    color: #ffffff;
}

/* ==========================================================================
   15. CONTRACT VIEW PAGE (contract_view.php)
   ========================================================================== */
.contract-page-body-layout {
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    margin: 0;
}

.contract-page-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 32px;
    color: var(--primary-green);
    text-decoration: none;
    z-index: 100;
}

.contract-page-wrapper-box {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.contract-page-main-header {
    text-align: center;
    padding-bottom: 25px;
    color: var(--primary-green);
}

.contract-page-main-header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.contract-page-main-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

.contract-page-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 25px;
    display: block;
    border-left: 4px solid var(--primary-green);
    padding-left: 10px;
}

.contract-page-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.contract-page-info-label {
    color: var(--text-muted);
}

.contract-page-info-value {
    color: #2d3436;
    font-weight: 600;
}

.contract-page-btn-view {
    display: block;
    width: 100%;
    background: var(--primary-green);
    color: #ffffff;
    text-align: center;
    padding: 16px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(50, 171, 46, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    border: none;
}

/* ==========================================================================
   16. PAYMENT SCHEDULE PAGE (Payment_Schedule_view.php)
   ========================================================================== */
.sch-page-body-layout {
    background-color: #f4f7f6;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #2d3436;
    position: relative;
}

.sch-page-padding-bottom {
    padding-bottom: 40px;
}

.sch-page-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 32px;
    color: #ffffff;
    text-decoration: none;
    z-index: 100;
}

.sch-page-header {
    background: var(--primary-green);
    padding: 45px 25px 85px;
    color: #ffffff;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    text-align: center;
}

.sch-page-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.sch-page-header p {
    margin: 8px 0 0;
    font-size: 13px;
    opacity: 0.9;
}

.sch-page-container {
    margin: -50px auto 0;
    max-width: 500px;
    padding: 0 15px;
    box-sizing: border-box;
}

.sch-page-item {
    background: #ffffff;
    border-radius: 25px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    box-sizing: border-box;
}

.sch-page-item-next {
    border-left: 6px solid var(--primary-green);
    background: #ffffff;
}

.sch-page-circle {
    width: 50px;
    height: 50px;
    background: #f0fdf4;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: var(--primary-green);
    margin-right: 18px;
    flex-shrink: 0;
    font-size: 18px;
    border: 1px solid #dcfce7;
    box-sizing: border-box;
}

.sch-page-circle span {
    font-size: 8px;
    text-transform: uppercase;
    margin-top: -4px;
    opacity: 0.7;
}

.sch-page-info {
    flex-grow: 1;
}

.sch-page-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
}

.sch-page-info p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #636e72;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sch-page-amount {
    text-align: right;
}

.sch-page-amount h3 {
    margin: 0;
    font-size: 16px;
    color: var(--primary-green);
    font-weight: 700;
}

.sch-page-status-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.sch-page-tag-next {
    background: var(--primary-green);
    color: #ffffff;
}

/* ==========================================================================
   17. TRANSACTION HISTORY PAGE (Transactions_view.php)
   ========================================================================== */
.tx-page-body-layout {
    background-color: #f4f7f6;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.tx-page-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 32px;
    color: #ffffff;
    text-decoration: none;
    z-index: 100;
}

.tx-page-wrapper-box {
    width: 100%;
    max-width: 450px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tx-page-main-header {
    background: var(--primary-green);
    padding: 45px 25px 35px;
    color: #ffffff;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
    text-align: center;
}

.tx-page-main-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tx-page-content-area {
    padding: 25px 20px;
    flex-grow: 1;
    display: block;
}

.tx-page-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.tx-page-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tx-page-main {
    display: flex;
    align-items: flex-start;
    flex-grow: 1;
}

.tx-page-icon-box {
    width: 42px;
    height: 42px;
    background: #f0fdf4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.tx-page-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tx-page-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.tx-page-date {
    font-size: 11px;
    color: #64748b;
}

.tx-page-status-badge {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 6px;
    display: inline-block;
}

.tx-page-status-pending {
    background: #fff9db;
    color: #b45309;
    border: 1px solid #ffeeba;
}

.tx-page-status-approved {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.tx-page-status-rejected {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.tx-page-amount-section {
    text-align: right;
}

.tx-page-amount {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.tx-page-ref-id {
    font-size: 9px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ==========================================================================
   18. PDF CONTRACT VIEW PAGE (view_pdf_contract.php)
   ========================================================================== */
.pdf-render-page-body {
    background: #f4f7f6;
    padding: 20px;
    font-family: 'Times New Roman', serif;
    color: #333333;
    line-height: 1.5;
    margin: 0;
}

.pdf-render-paper-sheet {
    background: #ffffff;
    max-width: 850px;
    margin: 0 auto;
    padding: 50px 60px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
    box-sizing: border-box;
    display: block;
}

.pdf-render-document-header {
    text-align: center;
    margin-bottom: 30px;
}

.pdf-render-document-header h1 {
    margin: 0;
    text-transform: uppercase;
    font-size: 22px;
    font-weight: bold;
    text-decoration: underline;
    color: #000000;
}

.pdf-render-meta-block {
    margin-bottom: 25px;
    display: block;
}

.pdf-render-meta-row {
    margin-bottom: 6px;
    font-size: 16px;
    display: block;
}

.pdf-render-meta-label {
    font-weight: bold;
    width: 220px;
    display: inline-block;
    color: #000000;
}

.pdf-render-legal-paragraphs {
    text-align: justify;
    font-size: 15px;
    display: block;
}

.pdf-render-legal-paragraphs p {
    display: block;
    margin-bottom: 1em;
}

.pdf-render-article-heading {
    font-weight: bold;
    margin-top: 20px;
    display: block;
    text-decoration: underline;
    color: #000000;
}

.pdf-render-no-print-bar {
    max-width: 850px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: space-between;
}

.pdf-render-btn {
    background: var(--primary-green);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.pdf-render-signature-section {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.pdf-render-sig-column {
    width: 45%;
    text-align: center;
    position: relative;
}

.pdf-render-sig-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.pdf-render-sig-line-mark {
    margin-top: 10px;
    border-top: 1px solid #000000;
    padding-top: 5px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
}

.pdf-render-borrower-box {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.pdf-render-src-signature {
    max-width: 180px;
    max-height: 80px;
    display: block;
    margin: 0 auto -10px;
    filter: contrast(1.2) brightness(0.9) sepia(0.3) hue-rotate(190deg);
}

.pdf-render-verified-badge {
    font-size: 11px;
    color: var(--primary-green);
    font-family: 'Poppins', sans-serif;
    margin-top: 5px;
    display: block;
    font-weight: 600;
}

/* ==========================================================================
   19. ABOUT US PAGE (About_Us_view.php)
   ========================================================================== */
.about-page-body-layout {
    background-color: #f4f7f6;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    padding-bottom: 90px;
}

.about-page-wrapper-box {
    width: 100%;
    max-width: 500px;
    position: relative;
    padding: 0 15px;
}

.about-page-card {
    background: #ffffff;
    border-radius: 25px;
    margin-top: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.about-page-header {
    background: var(--primary-green);
    padding: 25px 20px;
    color: #ffffff;
    text-align: center;
    position: relative;
}

.about-page-body {
    padding: 30px 25px;
    color: #333333;
    line-height: 1.8;
    font-size: 14px;
    text-align: justify;
}

/* ==========================================================================
   20. SHARED ANIMATIONS
   ========================================================================== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

.shake { animation: shake 0.3s ease-in-out; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.015); }
    100% { transform: scale(1); }
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

[x-cloak] { display: none !important; }

/* ==========================================================================
   21. MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 480px) {
    body {
        align-items: flex-start;
        padding-top: 60px;
    }
    .card {
        padding: 30px 20px;
        box-shadow: none;
    }
}

/* ==========================================================================
   22. GLOBAL PAGE LOADER (fixes spinning icon top-left on bank/signature pages)
   ========================================================================== */
.page-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-loader-overlay i {
    font-size: 40px;
    color: var(--primary-green);
}

.page-loader-overlay p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   23. ICON RENDERING FIXES
   ========================================================================== */
.fa, .fas, .far, .fal, .fab, .fad,
[class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
}

.info-label i {
    font-size: 18px;
    color: var(--primary-green);
    width: 22px;
    text-align: center;
}

.ref-box i {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

/* ==========================================================================
   24. UPLOAD BOX ICON FIXES (identity verification page)
   ========================================================================== */
.upload-box i {
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.upload-box span {
    font-size: 12px;
    color: #888;
    text-align: center;
    padding: 0 10px;
}

/* ID upload boxes - make icons bigger and clearer */
.id-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.id-upload-box {
    height: 130px;
    border: 2px dashed #ccc;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #fdfdfd;
    cursor: pointer;
}

.id-upload-box i {
    font-size: 36px;
    color: var(--primary-green);
    margin-bottom: 8px;
}

/* Selfie upload box - full width, taller */
.selfie-upload-box {
    height: 150px;
    border: 2px dashed #ccc;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #fdfdfd;
    cursor: pointer;
    width: 100%;
    margin-bottom: 15px;
}

.selfie-upload-box i {
    font-size: 42px;
    color: var(--primary-green);
    margin-bottom: 10px;
}

/* ==========================================================================
   25. E-SIGNATURE PAGE FIXES
   ========================================================================== */
.signature-canvas-wrapper {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #fff;
}

.signature-canvas-wrapper canvas {
    display: block;
    width: 100%;
    touch-action: none;
}

.btn-reset-sig {
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #636e72;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
}

/* ==========================================================================
   26. BANK ACCOUNT PAGE FIXES
   ========================================================================== */
.bank-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #166534;
    line-height: 1.5;
}

.bank-notice i {
    color: var(--primary-green);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   27. E-SIGNATURE PAGE — COMPLETE STYLES (signature.php)
   ========================================================================== */

/* Page loader overlay */
.loader-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Card body padding */
.auth-body {
    padding: 20px 20px 10px;
}

/* Signature drawing container */
.sig-container {
    width: 100%;
    height: 220px;
    border: 2px dashed #ccc;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 18px;
    position: relative;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}

/* Canvas fills the container exactly */
.sig-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Locked (already submitted) state */
.sig-container.locked {
    border-style: solid;
    border-color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #f8fdfd;
}

/* Reset button */
.btn-reset {
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #636e72;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.15s, border-color 0.15s;
}

.btn-reset:active {
    background: #f8fafc;
    border-color: #b2bec3;
}