/**
 * Nyota Project Funds - Public Stylesheet
 * All styles are prefixed with .nyota- to avoid conflicts with any theme.
 *
 * @version 2.0.0
 */

/* ───────────────────── RESET & CONTAINER ───────────────────── */
.nyota-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ───────────────────── HERO SECTION ───────────────────── */
.nyota-hero-section {
    padding: 100px 0;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #006B3F 0%, #004d2e 50%, #006B3F 100%);
    position: relative;
    overflow: hidden;
}

.nyota-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.03) 79px, rgba(255,255,255,0.03) 80px),
                repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.03) 79px, rgba(255,255,255,0.03) 80px);
    pointer-events: none;
}

.nyota-hero-section h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    position: relative;
}

.nyota-hero-section p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    position: relative;
}

.nyota-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

/* ───────────────────── BUTTONS ───────────────────── */
.nyota-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1.4;
}

.nyota-btn-lg { padding: 14px 32px; font-size: 16px; }
.nyota-btn-sm { padding: 8px 16px; font-size: 13px; }
.nyota-btn-xs { padding: 6px 14px; font-size: 12px; }
.nyota-btn-full { width: 100%; }

.nyota-btn-primary { background-color: #BE0027; color: white; }
.nyota-btn-primary:hover { background-color: #9a0020; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(190,0,39,0.3); }

.nyota-btn-green { background-color: #006B3F; color: white; }
.nyota-btn-green:hover { background-color: #005530; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,107,63,0.3); }

.nyota-btn-secondary { background-color: transparent; color: white; border: 2px solid white; }
.nyota-btn-secondary:hover { background-color: white; color: #333; transform: translateY(-2px); }

.nyota-btn-dark { background-color: #333; color: white; }
.nyota-btn-dark:hover { background-color: #222; }

.nyota-btn-red { background-color: #BE0027; color: white; }
.nyota-btn-red:hover { background-color: #9a0020; }

.nyota-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ───────────────────── SECTIONS ───────────────────── */
.nyota-white-section {
    padding: 80px 0;
    background-color: #fff;
}

.nyota-dark-section {
    padding: 80px 0;
    color: white;
    text-align: center;
    background: linear-gradient(135deg, #006B3F 0%, #004d2e 100%);
}

.nyota-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.nyota-section-title h2 {
    font-size: 36px;
    color: #006B3F;
    margin-bottom: 15px;
}

.nyota-section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.nyota-dark-section .nyota-section-title h2 { color: white; }
.nyota-dark-section .nyota-section-title p { color: rgba(255,255,255,0.7); }

.nyota-section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ───────────────────── FEATURE / LOAN CARDS ───────────────────── */
.nyota-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.nyota-feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.nyota-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.nyota-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(190,0,39,0.1), rgba(190,0,39,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #BE0027;
}

.nyota-feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #006B3F;
}

.nyota-feature-card p {
    color: #555;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.nyota-feature-list {
    text-align: left;
    font-size: 13px;
    color: #444;
    padding: 0;
    list-style: none;
}

.nyota-feature-list li {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nyota-feature-list li::before {
    content: '\2713';
    color: #006B3F;
    font-weight: bold;
    font-size: 14px;
}

/* ───────────────────── CALCULATOR ───────────────────── */
.nyota-calculator-container {
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.15);
}

.nyota-calculator-container h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
    color: white;
}

.nyota-calc-group {
    margin-bottom: 20px;
}

.nyota-calc-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.nyota-calc-value {
    color: #FFD700;
    font-size: 18px;
    font-weight: 700;
}

.nyota-calc-group input,
.nyota-calc-group select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.1);
    color: white;
    font-size: 16px;
    transition: border-color 0.3s;
}

.nyota-calc-group input:focus,
.nyota-calc-group select:focus {
    border-color: #FFD700;
    outline: none;
}

.nyota-calc-group select option { color: #333; background: white; }

.nyota-calc-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(to right, #BE0027 0%, #BE0027 var(--progress, 18%), rgba(255,255,255,0.3) var(--progress, 18%), rgba(255,255,255,0.3) 100%);
    outline: none;
    border-radius: 3px;
    cursor: pointer;
    padding: 0;
    border: none;
}

.nyota-calc-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #BE0027;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nyota-calc-group input[type="range"]::-moz-range-thumb {
    height: 24px;
    width: 24px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #BE0027;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nyota-calc-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.nyota-calc-result {
    margin-top: 25px;
    padding: 20px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: none;
    border: 1px solid rgba(255,255,255,0.2);
}

.nyota-calc-result.active { display: block; }

.nyota-calc-result h4 {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
}

.nyota-calc-result-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.nyota-calc-total {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 12px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: bold;
}

/* ───────────────────── STEPS ───────────────────── */
.nyota-steps-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.nyota-step-card {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 0 20px;
}

.nyota-step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #BE0027, #9a0020);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(190,0,39,0.3);
}

.nyota-step-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #006B3F;
}

.nyota-step-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* ───────────────────── TESTIMONIALS ───────────────────── */
.nyota-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.nyota-testimonial-card {
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.15);
}

.nyota-testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
}

.nyota-testimonial-stars span { color: #FFD700; font-size: 16px; }

.nyota-testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
}

.nyota-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nyota-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #006B3F, #004d2e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.nyota-author-name { font-weight: 600; font-size: 14px; color: white; }
.nyota-author-location { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ───────────────────── CONTACT ───────────────────── */
.nyota-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.nyota-contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nyota-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.nyota-contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(190,0,39,0.1), rgba(190,0,39,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #BE0027;
    font-size: 20px;
}

.nyota-contact-item h4 { color: #006B3F; font-weight: 600; margin-bottom: 2px; }
.nyota-contact-item p { color: #555; font-size: 14px; }

.nyota-contact-form-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.nyota-contact-form-box h3 {
    color: #006B3F;
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

/* ───────────────────── FORMS ───────────────────── */
.nyota-form-group {
    margin-bottom: 16px;
}

.nyota-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.nyota-form-group input,
.nyota-form-group select,
.nyota-form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: white;
    color: #333;
}

.nyota-form-group input:focus,
.nyota-form-group select:focus,
.nyota-form-group textarea:focus {
    border-color: #006B3F;
    box-shadow: 0 0 0 3px rgba(0,107,63,0.1);
}

.nyota-form-group textarea { resize: vertical; min-height: 100px; }

.nyota-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.nyota-form-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nyota-full-width {
    grid-column: 1 / -1;
}

/* ───────────────────── AUTH / LOGIN / REGISTER ───────────────────── */
.nyota-auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.nyota-auth-container {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.nyota-register-container { max-width: 520px; }

.nyota-auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.nyota-auth-header h2 {
    color: #006B3F;
    font-size: 28px;
    margin-bottom: 8px;
}

.nyota-subtitle {
    color: #666;
    font-size: 14px;
}

.nyota-auth-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #006B3F, #004d2e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(0,107,63,0.3);
}

.nyota-icon-red { background: linear-gradient(135deg, #BE0027, #9a0020); box-shadow: 0 4px 12px rgba(190,0,39,0.3); }

.nyota-auth-form .nyota-form-group { margin-bottom: 18px; }

.nyota-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.nyota-link { color: #BE0027; font-weight: 600; text-decoration: none; }
.nyota-link:hover { text-decoration: underline; }

.nyota-auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.nyota-terms-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.nyota-terms-text {
    font-size: 13px;
    color: #666;
}

.nyota-success-icon-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #006B3F;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 15px;
}

.nyota-success-box {
    text-align: center;
    padding: 30px;
}

.nyota-success-box h3 { color: #006B3F; margin-bottom: 10px; }
.nyota-success-box p { color: #555; font-size: 14px; max-width: 400px; margin: 0 auto; }

/* ───────────────────── LOAN APPLICATION ───────────────────── */
.nyota-step-indicators {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.nyota-step-indicators .nyota-step {
    text-align: center;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.nyota-step-indicators .nyota-step.active,
.nyota-step-indicators .nyota-step.done { opacity: 1; }

.nyota-step-indicators .nyota-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 700;
    transition: background-color 0.3s;
}

.nyota-step-indicators .nyota-step.active .nyota-step-circle { background: #006B3F; }
.nyota-step-indicators .nyota-step.done .nyota-step-circle { background: #006B3F; }

.nyota-step-indicators .nyota-step span { font-size: 13px; font-weight: 600; }

.nyota-step-line {
    width: 60px;
    height: 2px;
    background: #ccc;
    margin-bottom: 25px;
    transition: background-color 0.3s;
}

.nyota-step-line.filled { background: #006B3F; }

.nyota-loan-app-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #f0f0f0;
}

.nyota-app-header {
    text-align: center;
    margin-bottom: 25px;
}

.nyota-app-header h2 {
    color: #006B3F;
    font-size: 28px;
    margin-bottom: 8px;
}

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

.nyota-fee-notice { margin-top: 20px; }

.nyota-form-submit { text-align: center; margin-top: 25px; }

/* ───────────────────── PAYMENT ───────────────────── */
.nyota-payment-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.nyota-payment-header h3 { color: #006B3F; font-size: 24px; margin-bottom: 8px; }
.nyota-payment-header p { color: #666; font-size: 14px; }

.nyota-payment-summary {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: left;
}

.nyota-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: #666;
}

.nyota-payment-amount-box { margin: 15px 0; }
.nyota-payment-label { font-size: 14px; color: #666; display: block; }

.nyota-payment-amount {
    font-size: 48px;
    font-weight: 700;
    color: #BE0027;
}

.nyota-payment-methods {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 25px 0;
    flex-wrap: wrap;
}

.nyota-payment-btn {
    padding: 15px 30px;
    border-radius: 12px;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.nyota-payment-btn:hover,
.nyota-payment-btn.selected {
    border-color: #006B3F;
    background-color: rgba(0,107,63,0.05);
    color: #006B3F;
}

.nyota-payment-method-section {
    margin-top: 20px;
    text-align: left;
}

.nyota-mpesa-info {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #006B3F;
    margin-bottom: 15px;
}

.nyota-mpesa-info p { color: #006B3F; font-weight: 600; font-size: 14px; }

.nyota-till-box {
    text-align: center;
    margin: 15px 0;
}

.nyota-till-number {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    background: #f5f5f5;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px dashed #BE0027;
    display: inline-block;
    letter-spacing: 3px;
}

.nyota-copy-btn {
    background-color: #006B3F;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.nyota-copy-btn:hover { background-color: #005530; }

.nyota-payment-status { margin-top: 15px; }

/* ───────────────────── DASHBOARD ───────────────────── */
.nyota-dashboard-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid #f0f0f0;
}

.nyota-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 15px;
}

.nyota-dashboard-header h2 { color: #006B3F; font-size: 24px; }

.nyota-dashboard-actions {
    display: flex;
    gap: 10px;
}

.nyota-user-welcome {
    background: linear-gradient(135deg, #e8f5e8, #d4ecd4);
    border: 1px solid #006B3F;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.nyota-user-welcome h3 { color: #006B3F; margin-bottom: 5px; }
.nyota-user-welcome p { color: #555; font-size: 14px; }

.nyota-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.nyota-dash-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.nyota-dash-card:hover { transform: translateY(-2px); }

.nyota-dash-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(190,0,39,0.1), rgba(190,0,39,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #BE0027;
    font-size: 20px;
    flex-shrink: 0;
}

.nyota-icon-green { background: linear-gradient(135deg, rgba(0,107,63,0.15), rgba(0,107,63,0.05)) !important; color: #006B3F !important; }
.nyota-icon-red { background: linear-gradient(135deg, rgba(190,0,39,0.15), rgba(190,0,39,0.05)) !important; color: #BE0027 !important; }
.nyota-icon-blue { background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(37,99,235,0.05)) !important; color: #2563eb !important; }

.nyota-dash-card-info h4 { color: #666; font-size: 12px; font-weight: 500; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.nyota-dash-card-info p { font-size: 22px; font-weight: 700; color: #333; }

.nyota-loans-section h3 { color: #006B3F; margin-bottom: 15px; font-size: 18px; }
.nyota-section-heading { color: #006B3F !important; margin-bottom: 15px !important; font-size: 18px !important; }

/* ───────────────────── TABLES ───────────────────── */
.nyota-table-responsive { overflow-x: auto; margin-top: 15px; }

.nyota-loan-table {
    width: 100%;
    border-collapse: collapse;
}

.nyota-loan-table th,
.nyota-loan-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.nyota-loan-table th {
    background: #f8f8f8;
    color: #006B3F;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nyota-loan-table tbody tr:hover { background: #fafafa; }

.nyota-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }
.status-disbursed { background: #cce5ff; color: #004085; }
.status-rejected { background: #f8d7da; color: #721c24; }

.nyota-complete-badge {
    font-size: 12px;
    color: #006B3F;
    font-weight: 600;
}

/* ───────────────────── ALERTS ───────────────────── */
.nyota-alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nyota-alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.nyota-alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.nyota-alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.nyota-alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* ───────────────────── POPUPS ───────────────────── */
.nyota-testimonial-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 350px;
    background: linear-gradient(135deg, #006B3F, #004d2e);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    z-index: 10000;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.5s ease;
}

.nyota-testimonial-popup.active { opacity: 1; transform: translateX(0); }

.nyota-popup-text { font-style: italic; font-size: 14px; margin-bottom: 8px; line-height: 1.5; }
.nyota-popup-author { font-weight: 600; font-size: 12px; color: #FFD700; }

.nyota-popup-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    color: #BE0027;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.nyota-popup-close:hover { transform: scale(1.1); }

.nyota-loan-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    max-width: 350px;
    background: white;
    color: #333;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.nyota-loan-popup.active { opacity: 1; transform: translateX(0); }

.nyota-loan-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.nyota-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #006B3F, #004d2e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.nyota-loan-popup-header h4 { font-weight: 700; color: #006B3F; font-size: 14px; }
.nyota-notif-text { font-size: 13px; color: #555; font-style: italic; }

/* ───────────────────── LOADING / SPINNER ───────────────────── */
.nyota-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: nyota-spin 0.8s linear infinite;
}

.nyota-spinner-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #666;
    animation: nyota-spin 0.8s linear infinite;
    vertical-align: middle;
}

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

.nyota-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.nyota-loading-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.nyota-loading-box .nyota-spinner {
    width: 40px;
    height: 40px;
    border-color: rgba(0,107,63,0.2);
    border-top-color: #006B3F;
    margin: 0 auto 15px;
}

/* ───────────────────── RESPONSIVE ───────────────────── */
@media (max-width: 768px) {
    .nyota-hero-section { padding: 60px 0; }
    .nyota-hero-section h2 { font-size: 32px; }
    .nyota-hero-section p { font-size: 16px; }

    .nyota-contact-grid { grid-template-columns: 1fr; }
    .nyota-form-row { grid-template-columns: 1fr; }
    .nyota-loan-form-grid { grid-template-columns: 1fr; }

    .nyota-steps-grid { flex-direction: column; }
    .nyota-features-grid { grid-template-columns: 1fr 1fr; }

    .nyota-testimonial-popup { max-width: 280px; left: 10px; bottom: 10px; }
    .nyota-loan-popup { max-width: 280px; right: 10px; }

    .nyota-calculator-container { padding: 25px 20px; }
    .nyota-auth-container { padding: 25px 20px; }
    .nyota-loan-app-container { padding: 25px 20px; }
    .nyota-payment-container { padding: 25px 20px; }

    .nyota-dashboard-header { flex-direction: column; align-items: flex-start; }
    .nyota-dashboard-cards { grid-template-columns: 1fr 1fr; }
    .nyota-payment-methods { flex-direction: column; }
}

@media (max-width: 480px) {
    .nyota-features-grid { grid-template-columns: 1fr; }
    .nyota-hero-section h2 { font-size: 28px; }
    .nyota-dashboard-cards { grid-template-columns: 1fr; }
    .nyota-step-indicators { gap: 20px; }
}
