@font-face {
    font-family: 'Vazir';
    src: url('../assets/fonts/Vazir.woff2') format('woff2'),
         url('../assets/fonts/Vazir.woff') format('woff'),
         url('../assets/fonts/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: rgb(100, 221, 169); 
    --primary-dark: #4ab38c;
    --bg-dark: #0b0b0b;
    --bg-card: rgba(25, 25, 25, 0.6); 
    --text-main: #ffffff;
    --text-muted: #cccccc;
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-blue: #4a90e2; 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    font-family: 'Vazir', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(99, 221, 168, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(74, 144, 226, 0.08) 0%, transparent 25%);
}

.donate-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.donate-hero {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.donate-badge {
    display: inline-block;
    background: rgba(99, 221, 168, 0.15);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(99, 221, 168, 0.3);
    box-shadow: 0 0 15px rgba(99, 221, 168, 0.1);
}

.donate-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.donate-desc {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.donate-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    gap: 40px;
    margin-top: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.donate-card {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.card-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #fff;
}

.card-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 90%;
}

.remit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #050505;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 16px;
    font-family: 'Vazir', sans-serif;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(99, 221, 168, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.remit-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(99, 221, 168, 0.5);
}

.remit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.remit-btn:hover::after {
    left: 100%;
}

.security-note {
    margin-top: 25px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 5px;
}

.donations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.glass-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 300px;
    transition: 0.3s;
}

.glass-box:hover {
    border-color: rgba(99, 221, 168, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.glass-header {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center; 
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    text-align: center;
}

.glass-header h4 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.glass-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.glass-content::-webkit-scrollbar {
    display: none;
}

.donation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    cursor: default;
}

.donation-item:hover {
    background: rgba(99, 221, 168, 0.15);
    border-color: rgba(99, 221, 168, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.donor-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.donation-amount {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .donate-title { font-size: 32px; }
    .donate-card { padding: 40px 20px; }
    .donations-grid { grid-template-columns: 1fr; }
    .donor-name { max-width: 50%; }
}

       
        .goal-container { background: rgba(255,255,255,0.05); padding: 20px; border-radius: 12px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.1); }
        .progress-bar-bg { background: #222; height: 25px; border-radius: 50px; overflow: hidden; margin: 10px 0; }
        .progress-bar-fill { height: 100%; background: linear-gradient(-45deg, #64dda9, #0b0b0b); transition: width 0.5s; display: flex; align-items: center; justify-content: center; font-size: 12px; color: white; font-weight: bold; }
        
        .auto-scroll-box {
            max-height: 300px;
            overflow-y: hidden;
            position: relative;
        }
        
        .donators-table { width: 100%; border-collapse: collapse; }
        .donators-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #eee; font-size: 14px; }
        .donators-table tr:hover { background: rgba(255,255,255,0.05); }
        .amount-text { color: #64dda9; font-weight: bold; text-align: left; }