/* ============================================
   ملف: projects_donation.css
   تصميم صفحة المشاريع والتبرعات مع السلة
   ============================================ */

/* ============================================
   Page Header (داخل main-content)
   ============================================ */
.main-content .page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.main-content .page-header h1 {
    color: #3E67A3;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.main-content .page-header h1 i {
    color: #03A180;
    margin-left: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.main-content .page-header p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin: 0;
}

/* ============================================
   Stats Grid
   ============================================ */
.main-content .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.main-content .stat-card {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.6);
}

.main-content .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(62, 103, 163, 0.15);
    background: rgba(255,255,255,0.8);
}

.main-content .stat-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #3E67A3, #03A180);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(62, 103, 163, 0.25);
}

.main-content .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #3E67A3;
    margin-bottom: 5px;
}

.main-content .stat-label {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   Projects Grid
   ============================================ */
.main-content .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.main-content .project-card {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.6);
    position: relative;
}

.main-content .project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(62, 103, 163, 0.15);
    background: rgba(255,255,255,0.85);
}

.main-content .project-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.main-content .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    display: block;
}

.main-content .project-card:hover .project-image img {
    transform: scale(1.08);
}

.main-content .project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3E67A3, #03A180);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.main-content .project-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.main-content .badge-active { 
    background: #d4edda; 
    color: #155724; 
}

.main-content .badge-completed { 
    background: #d1ecf1; 
    color: #0c5460; 
}

.main-content .badge-paused { 
    background: #fff3cd; 
    color: #856404; 
}

/* شارة "في السلة" */
.main-content .in-cart-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #03A180, #027a60);
    color: white;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(3, 161, 128, 0.4);
    animation: badgePulse 0.5s ease;
}

@keyframes badgePulse {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.main-content .project-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-content .project-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3E67A3;
    margin-bottom: 12px;
    line-height: 1.4;
}

.main-content .project-description-preview {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   عدد المستفيدين
   ============================================ */
.main-content .beneficiaries-info {
    background: linear-gradient(135deg, #e3f2fd, #d1ecf1);
    color: #0c5460;
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border-right: 4px solid #3E67A3;
}

.main-content .beneficiaries-info i {
    color: #3E67A3;
    font-size: 1.1rem;
}

.main-content .beneficiaries-info strong {
    color: #027a60;
    font-size: 1rem;
}

/* ============================================
   Progress Bar
   ============================================ */
.main-content .progress-section {
    margin-bottom: 20px;
}

.main-content .progress-bar-container {
    height: 12px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.main-content .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #03A180, #2ecc71);
    border-radius: 10px;
    transition: width 0.8s ease;
}

.main-content .progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ============================================
   Amounts
   ============================================ */
.main-content .amounts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.main-content .amount-box {
    background: rgba(248, 250, 252, 0.8);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(62, 103, 163, 0.08);
}

.main-content .amount-box .value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #3E67A3;
}

.main-content .amount-box .value.remaining {
    color: #f39c12;
}

.main-content .amount-box .label {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ============================================
   Project Action Buttons
   ============================================ */
.main-content .project-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.main-content .project-actions .btn {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    background: transparent;
}

.main-content .project-actions .btn-outline {
    background: transparent;
    border: 2px solid #3E67A3;
    color: #3E67A3;
}

.main-content .project-actions .btn-outline:hover {
    background: #3E67A3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(62, 103, 163, 0.3);
}

.main-content .project-actions .btn-donate {
    background: linear-gradient(135deg, #03A180, #027a60);
    color: white;
    border: none;
}

.main-content .project-actions .btn-donate:hover {
    background: linear-gradient(135deg, #027a60, #03A180);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(3, 161, 128, 0.4);
}

.main-content .project-actions .btn-donate:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* ============================================
   Floating Cart Button (ثابتة فوق يسار)
   ============================================ */
.cart-floating-btn {
    position: fixed;
    top: 180px;
    left: 20px;
    background: linear-gradient(135deg, #3E67A3, #2a4c7a);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(62, 103, 163, 0.4);
    transition: all 0.3s ease;
    z-index: 998;
    animation: cartBounce 2s ease infinite;
}

@keyframes cartBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.cart-floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(62, 103, 163, 0.5);
    animation: none;
}

.cart-floating-btn.empty {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    animation: none;
    opacity: 0.85;
}

.cart-floating-btn.empty:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.03);
}

.cart-floating-btn i {
    font-size: 1.3rem;
}

.cart-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    min-width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.5);
}

.cart-badge.empty {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
}

.cart-total-label {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ============================================
   Modals
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.98);
    z-index: 1;
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    color: #3E67A3;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 700;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8fafc;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: #e74c3c;
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-description {
    line-height: 2;
    color: #334155;
    margin-bottom: 25px;
    white-space: pre-wrap;
}

.modal-amounts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.modal-amount-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(62, 103, 163, 0.08);
}

.modal-amount-box .value {
    font-size: 1.4rem;
    font-weight: 800;
}

.modal-amount-box .label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ============================================
   تفاصيل المشروع - تصميم مرتب
   ============================================ */

/* صورة المشروع في التفاصيل */
.details-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #f8fafc;
}

.details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.details-image:hover img {
    transform: scale(1.03);
}

/* نسبة الدفع */
.details-progress {
    background: linear-gradient(135deg, #f0f7ff, #e8f5e9);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 2px solid #e2e8f0;
}

.details-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 700;
    color: #334155;
    font-size: 1.05rem;
}

.details-progress-amounts {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 10px;
}

.details-progress-amounts strong {
    color: #3E67A3;
    font-weight: 800;
    font-size: 1rem;
}

/* عنوان المشروع في التفاصيل */
.details-title {
    color: #3E67A3;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.4;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid #e2e8f0;
    position: relative;
}

.details-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3E67A3, #03A180);
    border-radius: 2px;
}

/* إحصائيات المشروع في التفاصيل */
.details-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px dashed #e2e8f0;
}

.details-stat-box {
    background: linear-gradient(135deg, #f8fafc, #e8edf5);
    padding: 20px 15px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.details-stat-box:hover {
    transform: translateY(-5px);
    border-color: #3E67A3;
    box-shadow: 0 10px 25px rgba(62, 103, 163, 0.15);
}

.details-stat-box i {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
}

.details-stat-box .stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #3E67A3;
    margin-bottom: 5px;
    line-height: 1.2;
}

.details-stat-box .stat-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

/* ============================================
   Donation Form
   ============================================ */
.donation-form {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e2e8f0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #334155;
}

.form-group input {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 700;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #3E67A3;
    outline: none;
    box-shadow: 0 0 0 4px rgba(62, 103, 163, 0.1);
}

.quick-amounts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.quick-amount-btn {
    padding: 10px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #334155;
}

.quick-amount-btn:hover,
.quick-amount-btn.active {
    background: #3E67A3;
    color: white;
    border-color: #3E67A3;
}

/* Info box */
.modal-info-cart {
    background: linear-gradient(135deg, #e3f2fd, #d1ecf1);
    border-right: 4px solid #3498db;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    color: #0c5460;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-info-cart i {
    font-size: 1.2rem;
    color: #3E67A3;
}

/* ============================================
   Cart Modal
   ============================================ */
.cart-modal-content {
    max-width: 650px;
}

.cart-loading {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.cart-loading .spinner {
    margin: 0 auto 20px;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 4rem;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.empty-cart h3 {
    color: #3E67A3;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.empty-cart p {
    color: #94a3b8;
    margin-bottom: 25px;
}

/* Cart Items Container */
.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.cart-items-container::-webkit-scrollbar {
    width: 6px;
}

.cart-items-container::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.cart-items-container::-webkit-scrollbar-thumb {
    background: #3E67A3;
    border-radius: 10px;
}

/* Cart Item */
.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cart-item:hover {
    border-color: #3E67A3;
    background: white;
    box-shadow: 0 5px 15px rgba(62, 103, 163, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3E67A3, #03A180);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info h4 {
    color: #3E67A3;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 10px;
    padding: 5px 10px;
    width: fit-content;
    border: 1px solid #e2e8f0;
}

.cart-amount-input {
    width: 80px;
    border: none;
    background: transparent;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #3E67A3;
    text-align: center;
    outline: none;
}

.cart-amount-input::-webkit-inner-spin-button,
.cart-amount-input::-webkit-outer-spin-button {
    opacity: 1;
}

.cart-item-amount .currency {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

.cart-item-remove {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #e74c3c;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

/* Cart Summary */
.cart-summary {
    background: linear-gradient(135deg, #f0f7ff, #e8f5e9);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #334155;
}

.cart-summary-row.total {
    border-top: 2px dashed #e2e8f0;
    margin-top: 8px;
    padding-top: 15px;
    font-size: 1.2rem;
    color: #3E67A3;
}

.cart-summary-row.total strong {
    font-size: 1.5rem;
    color: #03A180;
    font-weight: 800;
}

/* Cart Buttons */
.cart-pay-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #03A180, #027a60);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cart-pay-btn:hover {
    background: linear-gradient(135deg, #027a60, #03A180);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(3, 161, 128, 0.4);
}

.cart-continue-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid #3E67A3;
    color: #3E67A3;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cart-continue-btn:hover {
    background: #3E67A3;
    color: white;
}

/* ============================================
   مودال بيانات المتبرع
   ============================================ */
.donor-info-intro {
    background: linear-gradient(135deg, #e3f2fd, #d1ecf1);
    border-right: 4px solid #3E67A3;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0c5460;
}

.donor-info-intro i {
    font-size: 1.5rem;
    color: #3E67A3;
}

.donor-info-intro p {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

/* معاينة بوابات الدفع */
.payment-methods-preview {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #e8edf5);
    border-radius: 15px;
    border: 2px dashed #e2e8f0;
}

.payment-title {
    text-align: center;
    font-weight: 700;
    color: #3E67A3;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 18px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 85px;
}

.payment-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #3E67A3;
}

.payment-logo i {
    font-size: 1.8rem;
}

.payment-logo span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
}

.mada-logo {
    color: white;
}

.mada-logo span {
    color: white;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/*.mada-logo:hover {
    background: linear-gradient(135deg, #2d7a4a, #1a4d2e);
}*/

.visa-logo {
    color: #1a1f71;
}

.mastercard-logo {
    color: #eb001b;
}

/* ============================================
   Login Required
   ============================================ */
.login-required-donation {
    background: linear-gradient(135deg, #f8fafc, #e8edf5);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 2px dashed #3E67A3;
    margin: 20px 0;
}

.login-required-donation .icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #3E67A3, #03A180);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(62, 103, 163, 0.3);
    animation: loginPulse 2s infinite;
}

@keyframes loginPulse {
    0% { transform: scale(1); box-shadow: 0 10px 30px rgba(62, 103, 163, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 15px 40px rgba(62, 103, 163, 0.5); }
    100% { transform: scale(1); box-shadow: 0 10px 30px rgba(62, 103, 163, 0.3); }
}

.login-required-donation h3 {
    color: #3E67A3;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.login-required-donation p {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.7;
}

.btn-login-donation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #3E67A3, #2a4c7a);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(62, 103, 163, 0.3);
    margin: 5px;
    min-width: 200px;
    border: none;
}

.btn-login-donation:hover {
    background: linear-gradient(135deg, #2a4c7a, #3E67A3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(62, 103, 163, 0.4);
    color: white;
}

.btn-register-donation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: #03A180;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: 2px solid #03A180;
    margin: 5px;
    min-width: 200px;
}

.btn-register-donation:hover {
    background: #03A180;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(3, 161, 128, 0.4);
}

/* ============================================
   Loading Overlay
   ============================================ */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 20000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e2e8f0;
    border-top-color: #3E67A3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Alert
   ============================================ */
.alert {
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: alertSlide 0.4s ease;
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 300px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@keyframes alertSlide {
    from { opacity: 0; transform: translate(-50%, -30px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-right: 4px solid #2ecc71;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-right: 4px solid #e74c3c;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablets */
@media (max-width: 992px) {
    .main-content .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .cart-floating-btn {
        top: 160px;
        left: 15px;
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-content .projects-grid {
        grid-template-columns: 1fr;
    }

    .main-content .modal-amounts {
        grid-template-columns: 1fr;
    }

    .main-content .project-actions {
        flex-direction: column;
    }

    .main-content .page-header h1 {
        font-size: 1.8rem;
    }

    .details-image {
        height: 220px;
    }

    .details-title {
        font-size: 1.3rem;
    }

    .details-stats {
        grid-template-columns: 1fr;
    }

    .details-stat-box {
        padding: 15px;
    }

    .details-stat-box i {
        font-size: 1.5rem;
    }

    .details-stat-box .stat-number {
        font-size: 1.4rem;
    }

    .payment-logos {
        gap: 10px;
    }

    .payment-logo {
        padding: 10px 14px;
        min-width: 75px;
    }

    .payment-logo i {
        font-size: 1.5rem;
    }

    .payment-logo span {
        font-size: 0.7rem;
    }

    .login-required-donation {
        padding: 30px 20px;
    }

    .login-required-donation .icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .login-required-donation h3 {
        font-size: 1.2rem;
    }

    .btn-login-donation,
    .btn-register-donation {
        width: 100%;
        min-width: auto;
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    /* Cart Floating Button */
    .cart-floating-btn {
        top: 140px;
        left: 10px;
        padding: 10px 15px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .cart-floating-btn i {
        font-size: 1.1rem;
    }

    .cart-badge {
        min-width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }

    .cart-total-label {
        display: none;
    }

    /* Cart Modal */
    .cart-item {
        padding: 12px;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-info h4 {
        font-size: 0.9rem;
    }

    .cart-amount-input {
        width: 60px;
        font-size: 0.9rem;
    }

    .cart-item-remove {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .main-content .page-header h1 {
        font-size: 1.5rem;
    }

    .main-content .stat-card {
        padding: 20px;
    }

    .main-content .stat-value {
        font-size: 1.5rem;
    }

    .details-image {
        height: 180px;
    }

    .details-title {
        font-size: 1.15rem;
    }

    .details-progress-header {
        font-size: 0.95rem;
    }

    .details-progress-amounts {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 5px;
    }

    .modal-content {
        border-radius: 16px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 20px;
    }

    /* Cart Floating Button */
    .cart-floating-btn {
        top: 130px;
        left: 8px;
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 6px;
        border-radius: 40px;
    }

    .cart-floating-btn i {
        font-size: 1rem;
    }

    .cart-badge {
        min-width: 20px;
        height: 20px;
        font-size: 0.7rem;
        padding: 0 5px;
    }
}

/* Very Small Mobile */
@media (max-width: 360px) {
    .cart-floating-btn {
        top: 120px;
        padding: 8px 10px;
    }

    .cart-floating-btn > span:not(.cart-badge):not(.cart-total-label) {
        display: none;
    }

    .cart-floating-btn i {
        font-size: 1.2rem;
    }
}