/* Lend Assist - Racing Green Theme - Mobile-First CSS */
:root {
    /* Racing Green Color Palette */
    --primary: #004d40;
    --primary-light: #00695c;
    --primary-dark: #00251a;
    --primary-lighter: #4db6ac;
    --secondary: #c9a227;
    --secondary-light: #ffd54f;
    --accent: #00897b;
    --success: #00c853;
    --danger: #ff5252;
    --warning: #ffc107;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 77, 64, 0.1), 0 2px 4px -1px rgba(0, 77, 64, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 77, 64, 0.1), 0 4px 6px -2px rgba(0, 77, 64, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.powered-by {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 400;
}

.powered-by strong {
    font-weight: 600;
    color: var(--secondary-light);
}

/* Navigation Tabs */
.tabs-nav {
    display: flex;
    background: white;
    padding: 0.5rem;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: sticky;
    top: 72px;
    z-index: 99;
    box-shadow: var(--shadow);
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: var(--gray-100);
    color: var(--primary);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.card-subtitle {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.1);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

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

.helper-text {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Checkbox styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary);
}

.referral-toggle {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--accent) 100%);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.referral-toggle .checkbox-label {
    color: white;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-dark:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn-copy {
    background: var(--secondary);
    color: var(--gray-900);
}

/* Results Card */
.results-card {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.results-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.results-section {
    margin-bottom: 1.5rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9375rem;
}

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

.result-row.highlight-red span:last-child {
    color: var(--danger);
}

.result-row.highlight-green span:last-child {
    color: var(--success);
    font-weight: 600;
}

.result-row.total {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    background: var(--gray-100);
    margin: 0.5rem -0.5rem;
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
}

.referral-applied-banner {
    background: linear-gradient(135deg, var(--success) 0%, #00e676 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

/* Steps */
.steps-container {
    margin: 1.5rem 0;
}

.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.125rem;
    top: 2.5rem;
    width: 2px;
    height: calc(100% - 1rem);
    background: var(--primary-lighter);
}

.step-number {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Fee Summary */
.fee-summary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    margin-top: 1.5rem;
}

.fee-summary h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.fee-value {
    font-weight: 700;
    color: var(--secondary-light);
}

/* Role Selector */
.role-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.role-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    background: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.role-form {
    display: none;
}

.role-form.active {
    display: block;
}

.form-section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.form-section-title:first-of-type {
    margin-top: 0;
}

/* Referral Section */
.referral-card {
    background: linear-gradient(180deg, white 0%, var(--gray-50) 100%);
}

.referral-hero {
    text-align: center;
    padding: 1rem 0 1.5rem;
}

.referral-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.referral-benefit {
    display: flex;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.benefit-icon {
    font-size: 2rem;
}

.benefit-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.benefit-content p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.how-referral-works {
    margin-bottom: 1.5rem;
}

.how-referral-works h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.referral-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.referral-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.referral-step .step-num {
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.referral-step p {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.your-referral-code {
    background: var(--gray-50);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    text-align: center;
}

.your-referral-code h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.login-prompt {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.referral-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.referral-code-display .code {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px dashed var(--primary);
    border-radius: var(--radius-sm);
}

.share-section {
    margin-bottom: 1.5rem;
}

.share-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn span:first-child {
    font-size: 1.25rem;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.email {
    background: var(--primary);
    color: white;
}

.share-btn.copy {
    background: var(--gray-200);
    color: var(--gray-700);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.referral-stats {
    background: var(--gray-50);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
}

.referral-stats h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stats-row {
    display: flex;
    justify-content: space-around;
}

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

.stat-item .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-item .stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Dashboard */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.125rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.user-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.welcome-text {
    font-size: 0.875rem;
    opacity: 0.9;
}

.user-name {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
}

.stat-card .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.loans-list, .email-log {
    max-height: 300px;
    overflow-y: auto;
}

.no-loans, .no-emails {
    color: var(--gray-500);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
}

.loan-item, .email-item {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.loan-item:last-child, .email-item:last-child {
    margin-bottom: 0;
}

.loan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

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

.loan-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.loan-status.pending {
    background: var(--warning);
    color: var(--gray-900);
}

.loan-status.active {
    background: var(--success);
    color: white;
}

.loan-status.completed {
    background: var(--gray-400);
    color: white;
}

.loan-details {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.email-item {
    border-left: 3px solid var(--primary);
}

.email-subject {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.email-preview {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.email-time {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 2rem 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.powered-by-footer {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.9;
}

.powered-by-footer strong {
    color: var(--secondary-light);
}

.footer-contact {
    margin-bottom: 1rem;
}

.footer-contact p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0.25rem 0;
}

.copyright {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--gray-600);
}

.modal h2 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.modal-switch {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 1rem;
}

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

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-800);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1001;
    animation: toastSlideIn 0.3s ease;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .header {
        padding: 0.75rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .powered-by {
        font-size: 0.6rem;
    }
    
    .tabs-nav {
        top: 64px;
    }
    
    .tab-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .referral-steps {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        flex-direction: row;
        justify-content: center;
    }
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .main-content {
        max-width: 700px;
        padding: 2rem;
    }
    
    .tabs-nav {
        justify-content: center;
    }
    
    .tab-btn {
        padding: 1rem 1.5rem;
    }
    
    .stats-grid {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card .stat-value {
        font-size: 2rem;
    }
}


/* Payment Section Styles */
.payment-info-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 1.5rem;
}

.payment-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    display: block;
}

.payment-info-box h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.payment-number {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.payment-name {
    font-size: 0.875rem;
    opacity: 0.9;
}

.payment-type-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.payment-type-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    background: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-type-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.payment-form {
    display: none;
}

.payment-form.active {
    display: block;
}

.form-description {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.payment-instructions {
    background: #fff8e1;
    border: 1px solid #ffcc80;
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin: 1.25rem 0;
}

.payment-instructions h4 {
    color: var(--warning);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.payment-instructions ol {
    padding-left: 1.25rem;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.payment-instructions li {
    margin-bottom: 0.5rem;
}

.payment-instructions strong {
    color: var(--primary);
}

.payment-history-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-200);
}

.payment-history {
    margin-top: 1rem;
}

.payment-item {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary);
}

.payment-item.funding {
    border-left-color: var(--success);
}

.payment-item.repayment {
    border-left-color: var(--accent);
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.payment-type-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: var(--primary-lighter);
    color: var(--primary-dark);
}

.payment-type-badge.funding {
    background: #c8e6c9;
    color: #2e7d32;
}

.payment-type-badge.repayment {
    background: #b2dfdb;
    color: var(--primary);
}

.payment-status {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: #fff3e0;
    color: #f57c00;
}

.payment-status.verified {
    background: #c8e6c9;
    color: #2e7d32;
}

.payment-details {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.payment-details p {
    margin-bottom: 0.25rem;
}

.payment-date {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.payment-item-small {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.payment-type-icon {
    font-size: 1.25rem;
}

.payment-amount {
    font-weight: 600;
    color: var(--primary);
}

.payment-ref {
    color: var(--gray-500);
    flex: 1;
}

.no-payments {
    text-align: center;
    color: var(--gray-500);
    padding: 1.5rem;
    font-size: 0.875rem;
}

/* Dashboard Payment Section */
.dashboard-payments {
    margin-top: 1rem;
}

@media (max-width: 480px) {
    .payment-type-selector {
        flex-direction: column;
    }
    
    .payment-number {
        font-size: 1.25rem;
    }
}
