@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --dark-green: #0a2f1f;
    --glass-bg: rgba(10, 47, 31, 0.75);
    --glass-border: rgba(212, 175, 55, 0.4);
    --text-light: #e0e0e0;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('assets/images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    direction: rtl;
    padding: 2rem;
}

.donation-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(212, 175, 55, 0.1);
    color: var(--white);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.header-right {
    text-align: right;
}

.heyat-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.heyat-subtitle {
    font-size: 1.2rem;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heyat-subtitle::before, .heyat-subtitle::after {
    content: '';
    height: 1px;
    width: 30px;
    background: var(--gold);
    display: inline-block;
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.bank-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00bcd4; /* Day Bank color approx */
}

.bank-logo svg {
    width: 40px;
    height: 40px;
    fill: #00bcd4;
}

.chip-icon {
    width: 60px;
    height: 45px;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    border-radius: 8px;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.chip-icon::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(0,0,0,0.2);
}

.chip-icon::after {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 1px;
    background: rgba(0,0,0,0.2);
}

.main-card-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 3.5rem;
    font-weight: bold;
    letter-spacing: 6px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    direction: ltr;
    unicode-bidi: isolate;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.details-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-light);
    font-size: 0.9rem;
}

.detail-value {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1.1rem;
    direction: ltr;
    unicode-bidi: isolate;
}

.qr-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.qr-title {
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.qr-code {
    background: white;
    padding: 10px;
    border-radius: 8px;
    width: 120px;
    height: 120px;
}

.badges-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    justify-content: center;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-icon {
    width: 32px;
    height: 32px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
}

.badge-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.card-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.salavat {
    font-size: 1.1rem;
    color: var(--gold-light);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.salavat::before, .salavat::after {
    content: '⚜';
    color: var(--gold);
}

.developer-credit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    text-align: center;
}

.developer-credit a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .main-card-number {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .heyat-title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    .card-header {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .header-right, .header-left {
        align-items: center;
        text-align: center;
    }

    .heyat-subtitle {
        justify-content: center;
    }
    
    .main-card-number {
        font-size: 1.5rem;
        letter-spacing: 1px;
        margin-bottom: 2rem;
    }
    
    .donation-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .detail-row {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        text-align: center;
    }

    .detail-value {
        font-size: 0.85rem !important;
        word-break: break-all;
    }

    .salavat {
        font-size: 0.9rem;
        gap: 0.5rem;
    }
}
