/**
 * Nyota Project Funds - Public Stylesheet (Premium v4.0)
 * All styles prefixed with .nyota- to avoid conflicts with any theme.
 * @version 4.0.0
 */

/* ───────────────────── RESET & BASE ───────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

/* ───────────────────── HERO SECTION ───────────────────── */
.nyota-hero-section {
    padding: 120px 0 100px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #006B3F 0%, #004d2e 40%, #003d24 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::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(190,0,39,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.nyota-hero-section p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 35px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    position: relative;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
}

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

/* ───────────────────── BUTTONS ───────────────────── */
.nyota-btn {
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    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;
    letter-spacing: 0.3px;
}

.nyota-btn-lg { padding: 16px 36px; font-size: 17px; }
.nyota-btn-sm { padding: 9px 18px; font-size: 13px; }
.nyota-btn-xs { padding: 7px 16px; font-size: 12px; }
.nyota-btn-full { width: 100%; }

.nyota-btn-primary {
    background: linear-gradient(135deg, #BE0027, #a00020);
    color: white;
    box-shadow: 0 4px 15px rgba(190,0,39,0.3);
}
.nyota-btn-primary:hover {
    background: linear-gradient(135deg, #d4002d, #BE0027);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190,0,39,0.4);
}

.nyota-btn-green {
    background: linear-gradient(135deg, #006B3F, #005530);
    color: white;
    box-shadow: 0 4px 15px rgba(0,107,63,0.3);
}
.nyota-btn-green:hover {
    background: linear-gradient(135deg, #007d49, #006B3F);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,107,63,0.4);
}

.nyota-btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
}
.nyota-btn-secondary:hover {
    background-color: white;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-color: white;
}

.nyota-btn-dark { background-color: #333; color: white; }
.nyota-btn-dark:hover { background-color: #222; transform: translateY(-1px); }

.nyota-btn-red { background-color: #BE0027; color: white; }
.nyota-btn-red:hover { background-color: #9a0020; transform: translateY(-1px); }

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

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

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

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

.nyota-section-title h2 {
    font-size: 38px;
    color: #006B3F;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nyota-section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 16px;
}

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

.nyota-dark-section h2 {
    color: white;
    font-weight: 800;
    font-size: 38px;
    letter-spacing: -0.5px;
}

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

/* ───────────────────── 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: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.nyota-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #006B3F, #BE0027);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}

.nyota-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.nyota-feature-card:hover::before {
    transform: scaleX(1);
}

.nyota-feature-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0,107,63,0.1), rgba(0,107,63,0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 28px;
    color: #006B3F;
}

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

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

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

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

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

/* ───────────────────── CALCULATOR (Dark Theme - on dark sections) ───────────────────── */
.nyota-calculator-container {
    padding: 40px;
    border-radius: 16px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.nyota-calculator-container.nyota-calc-dark {
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}

.nyota-calculator-container.nyota-calc-dark h3 {
    color: white;
}

.nyota-calculator-container.nyota-calc-dark .nyota-calc-group label {
    color: rgba(255,255,255,0.9);
}

.nyota-calculator-container.nyota-calc-dark .nyota-calc-value {
    color: #FFD700;
}

.nyota-calculator-container.nyota-calc-dark input[type="range"] {
    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%);
}

.nyota-calculator-container.nyota-calc-dark .nyota-calc-range-labels {
    color: rgba(255,255,255,0.5);
}

.nyota-calculator-container.nyota-calc-dark .nyota-calc-result {
    background-color: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
}

.nyota-calculator-container.nyota-calc-dark .nyota-calc-result h4 {
    color: #FFD700;
}

.nyota-calculator-container.nyota-calc-dark .nyota-calc-result-row span,
.nyota-calculator-container.nyota-calc-dark .nyota-calc-total span {
    color: rgba(255,255,255,0.9);
}

/* ───────────────────── CALCULATOR (Light Theme - on white pages) ───────────────────── */
.nyota-calculator-container.nyota-calc-light {
    background: white;
    border: 1px solid #e8e8e8;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    color: #333 !important;
}

.nyota-calculator-container.nyota-calc-light h3 {
    color: #006B3F;
}

.nyota-calculator-container.nyota-calc-light .nyota-calc-group label {
    color: #333;
}

.nyota-calculator-container.nyota-calc-light .nyota-calc-value {
    color: #BE0027;
}

.nyota-calculator-container.nyota-calc-light input[type="range"] {
    background: linear-gradient(to right, #006B3F 0%, #006B3F var(--progress, 18%), #e0e0e0 var(--progress, 18%), #e0e0e0 100%);
}

.nyota-calculator-container.nyota-calc-light .nyota-calc-range-labels {
    color: #999;
}

.nyota-calculator-container.nyota-calc-light .nyota-calc-result {
    background: linear-gradient(135deg, #f0faf4, #e8f5e9);
    border: 1px solid #c8e6c9;
    border-radius: 12px;
}

.nyota-calculator-container.nyota-calc-light .nyota-calc-result h4 {
    color: #006B3F;
}

.nyota-calculator-container.nyota-calc-light .nyota-calc-result-row span,
.nyota-calculator-container.nyota-calc-light .nyota-calc-total span {
    color: #333;
}

.nyota-calculator-container.nyota-calc-light .nyota-calc-value {
    color: #006B3F;
    font-weight: 800;
}

/* ───────────────────── CALCULATOR SHARED ───────────────────── */
.nyota-calculator-container h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 700;
}

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

.nyota-calc-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

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

/* ───────────────────── CRITICAL FIX: FORCE SELECT VISIBILITY ───────────────────── */
/* These selectors use maximum specificity to override ANY theme CSS */
body .nyota-calc-group select,
body .nyota-form-group select,
body .nyota-loan-app-container select,
body .nyota-auth-container select,
body .nyota-payment-container select,
body .nyota-dashboard-container select,
body .nyota-contact-form-box select,
.nyota-calc-group select,
.nyota-form-group select,
.nyota-loan-app-container select,
.nyota-auth-container select,
.nyota-payment-container select,
.nyota-dashboard-container select,
.nyota-contact-form-box select,
select.nyota-select-forced {
    width: 100% !important;
    padding: 12px 40px 12px 16px !important;
    border-radius: 10px !important;
    border: 2px solid #e0e0e0 !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 46px !important;
    cursor: pointer !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

body .nyota-calc-group select:hover,
body .nyota-form-group select:hover,
.nyota-calc-group select:hover,
.nyota-form-group select:hover {
    border-color: #bbb !important;
}

body .nyota-calc-group select:focus,
body .nyota-form-group select:focus,
.nyota-calc-group select:focus,
.nyota-form-group select:focus {
    border-color: #006B3F !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0,107,63,0.15) !important;
}

/* Force option text visibility across ALL themes */
body .nyota-calc-group select option,
body .nyota-form-group select option,
body .nyota-loan-app-container select option,
body .nyota-auth-container select option,
.nyota-calc-group select option,
.nyota-form-group select option,
.nyota-loan-app-container select option,
.nyota-auth-container select option {
    color: #222222 !important;
    background-color: #ffffff !important;
    padding: 8px 12px !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    display: block !important;
    text-shadow: none !important;
}

/* Dark calculator select overrides */
body .nyota-calc-dark .nyota-calc-group select,
.nyota-calc-dark .nyota-calc-group select {
    background-color: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.25) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
}

body .nyota-calc-dark .nyota-calc-group select:focus,
.nyota-calc-dark .nyota-calc-group select:focus {
    border-color: #FFD700 !important;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.2) !important;
}

body .nyota-calc-dark .nyota-calc-group select option,
.nyota-calc-dark .nyota-calc-group select option {
    color: #222222 !important;
    background-color: #ffffff !important;
}

.nyota-calc-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    padding: 0;
    border: none;
    width: 100%;
}

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

.nyota-calc-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

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

.nyota-calc-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

.nyota-calc-result {
    margin-top: 25px;
    padding: 22px;
    border-radius: 12px;
    display: none;
}

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

.nyota-calc-result h4 {
    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(0,0,0,0.08);
    padding-top: 12px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: bold;
}

.nyota-calc-dark .nyota-calc-total {
    border-top-color: rgba(255,255,255,0.2);
}

/* ───────────────────── STEPS (How It Works) ───────────────────── */
.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: 60px;
    height: 60px;
    background: linear-gradient(135deg, #BE0027, #9a0020);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 6px 16px rgba(190,0,39,0.35);
}

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

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

/* ───────────────────── 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: 16px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform 0.3s;
}

.nyota-testimonial-card:hover {
    transform: translateY(-4px);
}

.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.8;
    color: rgba(255,255,255,0.9);
}

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

.nyota-author-avatar {
    width: 44px;
    height: 44px;
    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;
    border: 2px solid rgba(255,255,255,0.2);
}

.nyota-author-name { font-weight: 700; 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: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0,107,63,0.1), rgba(0,107,63,0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #006B3F;
    font-size: 20px;
}

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

.nyota-contact-form-box {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 8px 30px 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;
    font-weight: 700;
}

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

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

.nyota-form-group input[type="text"],
.nyota-form-group input[type="email"],
.nyota-form-group input[type="tel"],
.nyota-form-group input[type="password"],
.nyota-form-group input[type="number"],
.nyota-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: white;
    color: #333;
    font-weight: 500;
}

.nyota-form-group input::placeholder,
.nyota-form-group textarea::placeholder {
    color: #aaa;
    font-weight: 400;
}

.nyota-form-group input: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: 20px;
    width: 100%;
    max-width: 480px;
    padding: 45px 40px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

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

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

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

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

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

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

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

.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; transition: color 0.2s; }
.nyota-link:hover { color: #9a0020; text-decoration: underline; }

.nyota-auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

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

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

.nyota-success-icon-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #006B3F, #004d2e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 18px;
    box-shadow: 0 6px 16px rgba(0,107,63,0.3);
}

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

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

/* ───────────────────── CONGRATULATIONS / QUALIFICATION ───────────────────── */
.nyota-congrats-container {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.nyota-congrats-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #006B3F, #BE0027, #FFD700, #006B3F);
    background-size: 300% 100%;
    animation: nyota-gradient-slide 3s ease infinite;
}

@keyframes nyota-gradient-slide {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nyota-congrats-badge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #006B3F, #004d2e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 25px;
    box-shadow: 0 8px 25px rgba(0,107,63,0.3);
    animation: nyota-bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes nyota-bounce-in {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.nyota-congrats-title {
    font-size: 32px;
    color: #006B3F;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nyota-congrats-subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

.nyota-congrats-details {
    background: linear-gradient(135deg, #f0faf4, #e8f5e9);
    border: 1px solid #c8e6c9;
    border-radius: 14px;
    padding: 25px;
    margin: 0 auto 30px;
    max-width: 450px;
    text-align: left;
}

.nyota-congrats-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,107,63,0.08);
}

.nyota-congrats-detail-row:last-child {
    border-bottom: none;
}

.nyota-congrats-detail-row span:first-child {
    color: #555;
    font-weight: 500;
}

.nyota-congrats-detail-row span:last-child {
    color: #006B3F;
    font-weight: 700;
}

.nyota-congrats-fee-box {
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    border: 2px solid #ffcdd2;
    border-radius: 14px;
    padding: 20px;
    margin: 0 auto 30px;
    max-width: 400px;
}

.nyota-congrats-fee-amount {
    font-size: 42px;
    font-weight: 800;
    color: #BE0027;
    line-height: 1.2;
}

.nyota-congrats-fee-label {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.nyota-congrats-cta {
    margin-top: 25px;
}

/* ───────────────────── 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: 42px;
    height: 42px;
    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, transform 0.3s;
}

.nyota-step-indicators .nyota-step.active .nyota-step-circle {
    background: #006B3F;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,107,63,0.3);
}
.nyota-step-indicators .nyota-step.done .nyota-step-circle {
    background: #006B3F;
}

.nyota-step-indicators .nyota-step span { font-size: 13px; font-weight: 600; color: #333 !important; }

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

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

.nyota-loan-app-container {
    background: white;
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    max-width: 820px;
    margin: 0 auto;
    border: 1px solid #f0f0f0;
}

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

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

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

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

/* ───────────────────── PAYMENT ───────────────────── */
.nyota-payment-container {
    background: white;
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 8px 30px 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; font-weight: 700; }
.nyota-payment-header p { color: #666; font-size: 14px; }

.nyota-payment-summary {
    background: #f9fafb;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 20px 0;
    text-align: left;
    border: 1px solid #e8e8e8;
}

.nyota-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 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: 800;
    color: #BE0027;
    letter-spacing: -1px;
}

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

.nyota-payment-btn {
    padding: 16px 32px;
    border-radius: 14px;
    border: 2px solid #e0e0e0;
    background: white;
    cursor: pointer;
    font-weight: 700;
    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: linear-gradient(135deg, rgba(0,107,63,0.05), rgba(0,107,63,0.02));
    color: #006B3F;
    box-shadow: 0 4px 12px rgba(0,107,63,0.1);
}

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

.nyota-mpesa-info {
    background: linear-gradient(135deg, #e8f5e8, #d4ecd4);
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid #006B3F;
    margin-bottom: 15px;
}

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

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

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

.nyota-copy-btn {
    background: linear-gradient(135deg, #006B3F, #005530);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    margin-left: 10px;
    transition: all 0.3s;
}

.nyota-copy-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,107,63,0.3); }

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

/* ───────────────────── DASHBOARD ───────────────────── */
.nyota-dashboard-container {
    background: white;
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 8px 30px 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; font-weight: 800; }

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

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

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

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

.nyota-dash-card {
    background: white;
    padding: 22px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nyota-dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.nyota-dash-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(190,0,39,0.1), rgba(190,0,39,0.03));
    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: #888; font-size: 11px; font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.8px; }
.nyota-dash-card-info p { font-size: 24px; font-weight: 800; color: #333; }

.nyota-loans-section h3 { color: #006B3F; margin-bottom: 15px; font-size: 18px; font-weight: 700; }
.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: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.nyota-loan-table th {
    background: #f8f9fa;
    color: #006B3F;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nyota-loan-table tbody tr {
    transition: background 0.2s;
}

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

.nyota-status-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    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: 700;
}

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

.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: 22px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
    z-index: 10000;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
}

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

.nyota-popup-text { font-style: italic; font-size: 14px; margin-bottom: 8px; line-height: 1.6; }
.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: 22px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
}

.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: 42px;
    height: 42px;
    border-radius: 12px;
    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; }

/* ───────────────────── CONFETTI ───────────────────── */
.nyota-confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
}

.nyota-confetti-piece {
    position: absolute;
    top: -10px;
    animation: nyota-confetti-fall linear forwards;
}

@keyframes nyota-confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ───────────────────── RESPONSIVE ───────────────────── */
@media (max-width: 768px) {
    .nyota-hero-section h2 { font-size: 32px; }
    .nyota-hero-section p { font-size: 16px; }
    .nyota-hero-buttons { flex-direction: column; align-items: center; }
    .nyota-loan-form-grid { grid-template-columns: 1fr; }
    .nyota-form-row { grid-template-columns: 1fr; }
    .nyota-full-width { grid-column: 1; }
    .nyota-contact-grid { grid-template-columns: 1fr; }
    .nyota-section-title h2 { font-size: 28px; }
    .nyota-loan-app-container { padding: 25px 20px; }
    .nyota-payment-container { padding: 25px 20px; }
    .nyota-dashboard-container { padding: 25px 20px; }
    .nyota-congrats-container { padding: 30px 20px; }
    .nyota-dashboard-header { flex-direction: column; text-align: center; }
    .nyota-step-indicators { gap: 15px; }
    .nyota-step-line { width: 30px; }
    .nyota-features-grid { grid-template-columns: 1fr; }
    .nyota-testimonial-grid { grid-template-columns: 1fr; }
    .nyota-steps-grid { flex-direction: column; align-items: center; }
}
