/* Kibao Mobile Portal - Islamic teal theme */
:root {
    --primary: #0d9488;
    --primary-light: #14b8a6;
    --secondary: #065f46;
    --accent: #ca8a04;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --purple: #7c3aed;
    --bg: #ecfdf5;
    --bg-deep: #ccfbf1;
    --card: #ffffff;
    --text: #134e4a;
    --text-muted: #5f7a78;
    --border: #cce7e3;
    --frame-border: #99d5cf;
    --radius: 14px;
    --radius-sm: 10px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(160deg, var(--bg-deep) 0%, var(--bg) 45%, #f0fdf4 100%);
    color: var(--text);
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

/* Bounded portal frame */
.portal-viewport {
    width: 100%;
    max-width: 400px;
    min-width: 0;
}

.portal-frame {
    background: var(--card);
    border: 2px solid var(--frame-border);
    border-radius: 22px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 16px 48px rgba(26, 31, 54, 0.14);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    display: flex;
    flex-direction: column;
}

/* Compact header */
.app-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 16px;
    color: #fff;
    flex-shrink: 0;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.brand-text {
    min-width: 0;
    flex: 1;
}

.brand-text h1 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.brand-text p {
    font-size: 11px;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.9);
}

/* Prevent phone numbers from appearing as blue underlined links */
.brand-text p a,
.brand-text p a:visited,
.brand-text p a:hover,
.phone-plain,
.phone-plain a,
.phone-plain a:visited,
.phone-plain a:hover,
.status-value a,
.detail-value a,
.member-toolbar a[href^="tel:"] {
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none;
}

/* Scrollable content area */
.portal-scroll {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 14px;
    background: #f7fdfb;
    min-width: 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.page-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.portal-scroll::-webkit-scrollbar {
    width: 4px;
}

.portal-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

#contributionForm {
    width: 100%;
    min-width: 0;
}

/* Single main card */
.portal-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.form-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.section-label i {
    font-size: 14px;
    flex-shrink: 0;
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.form-group {
    margin-bottom: 10px;
    min-width: 0;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--text);
    background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.12);
    background: #fff;
}

.field-hint,
.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    color: var(--text-muted);
    word-wrap: break-word;
}

#member-status {
    margin-top: 4px;
    font-size: 11px;
    word-wrap: break-word;
}

/* Compact amount */
.amount-display {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.07) 0%, rgba(118, 75, 162, 0.07) 100%);
    border: 1px solid rgba(102, 126, 234, 0.12);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    min-width: 0;
}

.amount-display .label {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.amount-display .value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    word-break: break-word;
}

/* Compact payment grid */
.payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
}

.payment-option {
    position: relative;
    background: #fafbfc;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 6px;
    cursor: pointer;
    text-align: center;
    min-height: 72px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.15s;
}

.payment-option.active {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.06);
}

.payment-option[data-method="pay_now"].active { border-color: var(--success); background: rgba(40, 167, 69, 0.06); }
.payment-option[data-method="bank_payment"].active { border-color: var(--warning); background: rgba(243, 156, 18, 0.06); }
.payment-option[data-method="card_payment"].active { border-color: var(--purple); background: rgba(155, 89, 182, 0.06); }

.payment-option input { display: none; }

.payment-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
}

.payment-option[data-method="pay_now"] .payment-icon { background: var(--success); }
.payment-option[data-method="pay_later"] .payment-icon { background: var(--primary); }
.payment-option[data-method="bank_payment"] .payment-icon { background: var(--warning); }
.payment-option[data-method="card_payment"] .payment-icon { background: var(--purple); }

.payment-icon.card-brands {
    background: transparent !important;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 22px;
    flex-direction: row;
    gap: 5px;
    padding: 0 2px;
}

.card-brands .brand-logo {
    height: 14px;
    width: auto;
    max-width: 38px;
    object-fit: contain;
    display: block;
}

.card-brands .brand-visa {
    height: 13px;
}

.card-brands .brand-mastercard {
    height: 14px;
}

.payment-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.payment-desc {
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.2;
}

.checkmark {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.payment-option.active .checkmark { display: flex; }
.payment-option[data-method="pay_now"].active .checkmark { background: var(--success); }
.payment-option[data-method="bank_payment"].active .checkmark { background: var(--warning); }
.payment-option[data-method="card_payment"].active .checkmark { background: var(--purple); }

/* Buttons */
.btn {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.25);
}

.btn-paynow {
    background: linear-gradient(135deg, var(--success) 0%, #218838 100%);
}

.btn-cancel {
    background: linear-gradient(135deg, var(--danger) 0%, #c0392b 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #218838 100%);
}

/* Alerts */
.alert {
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 13px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.alert h3, .alert h4 {
    margin-bottom: 6px;
    font-size: 14px;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    margin-bottom: 10px;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    margin-bottom: 10px;
}

.control-number-box {
    margin-top: 10px;
    background: #fff;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 2px dashed var(--success);
    text-align: center;
}

.control-number-box .number {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--success);
    margin: 6px 0;
    word-break: break-all;
}

/* Bottom nav inside frame */
.bottom-nav {
    flex-shrink: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 8px 4px 10px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 600;
    padding: 4px 2px;
    min-width: 0;
    flex: 1;
    text-align: center;
}

.nav-item i { font-size: 17px; }
.nav-item.active { color: var(--primary); }

.nav-item-center {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-top: -10px;
    margin-bottom: 2px;
    box-shadow: 0 3px 12px rgba(13, 148, 136, 0.35);
    border: 3px solid var(--card);
    text-decoration: none;
    flex-shrink: 0;
}

.app-footer {
    flex-shrink: 0;
    text-align: center;
    padding: 6px 12px 8px;
    color: var(--text-muted);
    font-size: 9px;
    line-height: 1.4;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    word-wrap: break-word;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 31, 54, 0.5);
    z-index: 1000;
    padding: 16px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal.show,
.modal.active { display: flex; }

.modal-content {
    background: var(--card);
    border-radius: var(--radius);
    max-width: min(360px, calc(100vw - 32px));
    width: 100%;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.modal-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 14px;
    text-align: center;
}

.modal-header.danger {
    background: linear-gradient(135deg, var(--danger) 0%, #c0392b 100%);
}

.modal-header h3 { font-size: 16px; }

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.modal-body {
    padding: 16px;
    font-size: 13px;
    overflow-wrap: break-word;
}

.modal-body p { margin-bottom: 8px; }

.modal-footer {
    padding: 12px 14px;
    display: flex;
    gap: 8px;
    background: #f9fafb;
    border-top: 1px solid var(--border);
}

.modal-footer .btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
}

/* Mobile: lock to viewport, no expansion */
@media (max-width: 420px) {
    body {
        padding: 0;
        align-items: stretch;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: hidden;
    }

    .portal-viewport {
        max-width: 100%;
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .portal-frame {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        border-bottom: none;
        max-height: none;
        height: 100%;
        box-shadow: none;
    }
}

@media (max-width: 360px) {
    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Member name suggestions */
.member-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.suggestion-chip {
    border: 1px solid var(--primary);
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

/* Register & profile pages */
.portal-intro {
    text-align: center;
    padding: 20px 16px;
}

.portal-intro .intro-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(6, 95, 70, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-intro .intro-icon i {
    font-size: 26px;
    color: var(--primary);
}

.portal-intro h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.portal-intro p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.register-steps {
    list-style: none;
    margin-top: 16px;
    text-align: left;
    display: grid;
    gap: 8px;
}

.register-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text);
    padding: 8px 10px;
    background: rgba(13, 148, 136, 0.06);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.register-steps li span {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-footer-link {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.register-footer-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.profile-result {
    margin-top: 0;
}

.profile-result .section-label {
    margin-bottom: 12px;
}

.profile-result--compact {
    margin: 16px 0;
    padding: 12px;
    background: rgba(13, 148, 136, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.profile-action-link {
    margin-top: 10px;
}

.profile-check-form .btn {
    width: 100%;
    margin-top: 4px;
}

.modal-result {
    text-align: center;
    padding: 8px 0;
}

.modal-result h4 {
    font-size: 17px;
    margin-bottom: 8px;
}

.modal-result p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.modal-result-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.modal-result.success .modal-result-icon { color: var(--success); }
.modal-result.duplicate .modal-result-icon { color: var(--warning); }
.modal-result.error .modal-result-icon { color: var(--danger); }

.action-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.action-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 0;
    font: inherit;
    color: inherit;
    width: 100%;
}

.action-card:hover,
.action-card.active {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.06);
}

.action-card i {
    font-size: 22px;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}

.action-card strong {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.action-card span {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.3;
}

.inline-panel {
    display: none;
    margin-top: 12px;
}

.inline-panel.active {
    display: block;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-head h3 {
    font-size: 14px;
    font-weight: 700;
}

.panel-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.form-actions .btn {
    flex: 1;
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text);
    box-shadow: none;
}

.status-grid {
    display: grid;
    gap: 8px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.status-row:last-child {
    border-bottom: none;
}

.status-row .label {
    color: var(--text-muted);
    font-weight: 600;
}

.status-value.active { color: var(--success); font-weight: 700; }
.status-value.inactive { color: var(--danger); font-weight: 700; }

/* OTP on member login */
.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.otp-input {
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fafbfc;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary);
}

.timer, .resend-link {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}

.resend-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.resend-link a.disabled {
    color: #aaa;
    pointer-events: none;
}

.success-screen {
    text-align: center;
    padding: 24px 12px;
}

.success-screen .icon {
    font-size: 48px;
    color: var(--success);
    margin-bottom: 12px;
}

/* Member status modal */
.member-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 12px;
}

.status-details {
    display: grid;
    gap: 0;
}

.status-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.status-value {
    text-align: right;
    font-weight: 600;
    word-break: break-word;
}

.status-value.active { color: var(--success); }
.status-value.inactive { color: var(--danger); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}

.btn-block {
    width: 100%;
    margin-top: 4px;
}

/* Member contributions page */
.member-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px !important;
}

.member-toolbar-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    min-width: 0;
}

.member-toolbar-info i {
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.member-toolbar-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--danger);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: #fef2f2;
    border: 1px solid #fecaca;
    flex-shrink: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 10px;
    text-align: center;
}

.stat-card h3 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 700;
}

.stat-card .value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    word-break: break-word;
}

.contrib-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contrib-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contrib-filters .filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contrib-filters select {
    width: 100%;
    padding: 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: #fafbfc;
    color: var(--text);
}

.contrib-filters select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-reset .btn {
    padding: 10px;
    font-size: 12px;
    margin-top: 0;
}

.contrib-list-card {
    padding: 12px !important;
}

.contributions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contribution-item {
    background: #f8fffe;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
}

.contribution-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.detail-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
}

.detail-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.amount-value {
    color: var(--success);
    font-size: 13px;
}

.contrib-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: fit-content;
}

.contrib-status-completed,
.status-completed {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.contrib-status-pending,
.status-pending {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.no-data {
    text-align: center;
    padding: 24px 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
}

.pagination-card {
    padding: 12px !important;
}

.pagination-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 10px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .current {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border-color: transparent;
}

.pagination .disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 360px) {
    .contrib-filters {
        grid-template-columns: 1fr;
    }

    .contribution-item {
        grid-template-columns: 1fr;
    }
}
