@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Vazir', Tahoma, Arial, sans-serif;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* Container */
.container {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 25px 25px 0;
    max-width: 420px;
    width: 100%;
    text-align: center;
    line-height: 1.6;
    position: relative;
}

@media (min-width: 769px) {
    .container {
        max-width: 1200px;
        padding: 50px 40px 0;
    }

    .payment-methods {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
        margin-top: 20px;
    }

    .payment-box {
        margin-bottom: 0;
    }

    .crypto-box {
        margin-bottom: 0;
    }

    .profile-img {
        width: 120px;
        height: 120px;
        border-width: 5px;
    }

    .profile-img .icon {
        font-size: 56px;
    }

    .profile h1 {
        font-size: 28px;
    }

    .profile p {
        font-size: 16px;
        max-width: 85%;
    }

    .section-title {
        font-size: 20px;
    }

    .payment-box {
        padding: 28px;
    }

    .crypto-box {
        padding: 14px;
    }

    .crypto-qr {
        width: 144px;
        height: 144px;
    }

    .crypto-address {
        font-size: 18px;
    }
}

.profile {
    margin-bottom: 25px;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-img .icon {
    font-size: 48px;
    color: #fff;
}

.profile h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.profile p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.9;
    font-weight: 400;
    max-width: 90%;
    margin: 0 auto;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 30px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 2px;
}

.payment-methods {
    margin-top: 10px;
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

.payment-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    contain: layout style paint;
}

.payment-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.payment-box h3 {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.payment-box h3 .icon {
    font-size: 18px;
}

.payment-value {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    color: #1e293b;
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    margin-bottom: 14px;
    word-break: break-all;
    direction: ltr;
    text-align: center;
    -webkit-user-select: all;
    -moz-user-select: all;
    user-select: all;
    transition: border-color 0.2s;
    font-weight: 500;
}

.payment-value:hover {
    border-color: #3b82f6;
}

.copy-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Vazir', Tahoma, Arial, sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.crypto-box .crypto-copy-btn {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0 0 6px 6px;
    width: 100%;
    justify-content: center;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 6px;
}

.crypto-box .crypto-copy-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: none;
    transform: none;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
}

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

.copy-btn.copied {
    background: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.copy-btn .icon {
    font-size: 14px;
}

.crypto-box {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    contain: layout style paint;
}

.crypto-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.crypto-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.crypto-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.crypto-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.crypto-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.crypto-symbol {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.crypto-content {
    display: flex;
    gap: 12px;
    align-items: center;
}

.crypto-qr {
    width: 128px;
    height: 128px;
    background: #fff;
    border-radius: 6px;
    padding: 3px;
    flex-shrink: 0;
}

.crypto-qr img {
    width: 100%;
    height: 100%;
    border-radius: 3px;
}

.crypto-address-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.crypto-address {
    font-family: 'Courier New', monospace;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 10px;
    border-radius: 6px 6px 0 0;
    word-break: break-all;
    direction: ltr;
    text-align: center;
    -webkit-user-select: all;
    -moz-user-select: all;
    user-select: all;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
}


.crypto-bank {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.crypto-card {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.crypto-btc {
    background: linear-gradient(135deg, #f7931a 0%, #c77800 100%);
}

.crypto-eth {
    background: linear-gradient(135deg, #627eea 0%, #3c3c3d 100%);
}

.crypto-usdt {
    background: linear-gradient(135deg, #26a17b 0%, #1a7a5c 100%);
}

.crypto-sol {
    background: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
}

.bank-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.thanks {
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-radius: 10px;
}

.thanks .icon {
    color: #ef4444;
    font-size: 18px;
    will-change: transform;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.footer {
    margin-top: 4px;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer:last-child {
    padding-bottom: 8px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

a.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

a.social-link:hover {
    background: #1e293b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.social-link svg {
    flex-shrink: 0;
}

.language-selector {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.language-container {
    background: #fff;
    border-radius: 20px;
    padding: 30px 25px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Ensure both languages are always visible in language selector */
.language-selector .language-title [data-lang] {
    display: inline !important;
}

.language-selector .language-subtitle [data-lang] {
    display: block !important;
}

.language-header {
    margin-bottom: 25px;
}

.donate-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
    will-change: transform;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.language-title {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.4;
}

.language-title [data-lang] {
    display: inline;
}

.language-title [data-lang="fa"]::after {
    content: ' | ';
    margin: 0 4px;
    opacity: 0.5;
}

.language-subtitle {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
    max-width: 100%;
}

.language-subtitle [data-lang] {
    display: block;
    margin-bottom: 8px;
}

.language-subtitle [data-lang]:last-child {
    margin-bottom: 0;
}

.language-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.language-buttons:has(.lang-btn:nth-child(5)) {
    grid-template-columns: 1fr 1fr;
}

.language-buttons:has(.lang-btn:nth-child(7)) {
    grid-template-columns: repeat(2, 1fr);
}

.lang-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Vazir', Tahoma, Arial, sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
}

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

.lang-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lang-icon svg {
    width: 20px;
    height: 15px;
    display: block;
}

.lang-text {
    font-size: 14px;
}

.lang-switcher {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Vazir', Tahoma, Arial, sans-serif;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-switcher:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.lang-switcher .icon {
    font-size: 16px;
}

.lang-switcher [data-lang] {
    display: none;
}

[data-lang="en"] {
    direction: ltr;
    text-align: left;
}

[data-lang="en"] .profile,
[data-lang="en"] .section-title,
[data-lang="en"] .thanks,
[data-lang="en"] .footer {
    text-align: center;
}

[data-lang="en"] .payment-box h3 {
    justify-content: center;
}

[data-lang="en"] .lang-switcher {
    right: 20px;
    left: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 20px 0;
    }

    .profile-img {
        width: 80px;
        height: 80px;
    }

    .profile-img .icon {
        font-size: 38px;
    }

    .profile h1 {
        font-size: 20px;
    }

    .payment-value {
        font-size: 18px;
        padding: 10px;
    }

    .crypto-qr {
        width: 112px;
        height: 112px;
    }

    .crypto-address {
        font-size: 16px;
        padding: 6px 8px;
    }

    .crypto-box .crypto-copy-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .language-container {
        padding: 25px 20px;
        max-width: 90%;
    }

    .language-title {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .language-buttons {
        gap: 8px;
    }

    .lang-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .lang-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .lang-icon svg {
        width: 18px;
        height: 13px;
        display: block;
    }

    .lang-text {
        font-size: 13px;
    }

    .lang-switcher {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }

    [data-lang="en"] .lang-switcher {
        right: 15px;
        left: auto;
    }

    .donate-icon {
        font-size: 48px;
        margin-bottom: 14px;
    }

    .language-title {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .language-subtitle {
        font-size: 15px;
    }
}
