@font-face {
    font-family: 'IRANSansX';
    src: url('IRANSansX-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

* {
    box-sizing: border-box; /* اطمینان از محاسبه صحیح عرض‌ها */
}

body {
    font-family: 'IRANSansX', sans-serif;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #1a1a1a; /* تم دارک */
    color: #e0e0e0; /* رنگ متن روشن */
    direction: rtl;
}
.container {
    text-align: center;
    background-color: #2c2c2c; /* پس‌زمینه تیره */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px; /* عرض ثابت برای سینک */
    overflow: hidden; /* جلوگیری از برش گوشه‌ها */
}
h2 {
    font-family: 'IRANSansX', sans-serif;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
}
button {
    font-family: 'IRANSansX', sans-serif;
    font-weight: bold;
    background-color: #4caf50; /* سبز تیره */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 5px 0;
    width: 100%; /* عرض کامل کانتینر */
    box-sizing: border-box;
    transition: background-color 0.3s, transform 0.2s;
}
button:hover {
    background-color: #45a049;
    transform: scale(1.02); /* انیمیشن کوچک برای تعامل */
}
button.copy-btn {
    background-color: #1e88e5; /* آبی تیره */
}
button.copy-btn:hover {
    background-color: #1565c0;
}
button.link-btn {
    background-color: #66bb6a; /* بنفش برای لینک‌ها */
}
button.link2-btn {
    background-color: #ab47bc; /* بنفش برای لینک‌ها */
}
button.link-btn:hover {
    background-color: #388e3c;
}
button.back-btn {
    background-color: #f44336; /* قرمز برای بازگشت */
}
button.back-btn:hover {
    background-color: #d32f2f;
}
button.telegram-btn {
    background-color: #0088cc; /* آبی تلگرام */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
button.telegram-btn:hover {
    background-color: #006699;
    transform: scale(1.02);
}
button.eitaa-btn {
    background-color: #f28c38; /* نارنجی ایتا */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
button.eitaa-btn:hover {
    background-color: #d8762d;
    transform: scale(1.02);
}
.error {
    font-family: 'IRANSansX', sans-serif;
    font-weight: bold;
    color: #ef5350; /* قرمز روشن */
    margin-top: 10px;
    font-size: 14px;
}
.success {
    font-family: 'IRANSansX', sans-serif;
    font-weight: bold;
    color: #66bb6a; /* سبز روشن */
    margin-top: 10px;
    font-size: 14px;
    display: none;
}
.promo-text {
    font-family: 'IRANSansX', sans-serif;
    font-weight: bold;
    color: #ffffff;
    font-size: 16px;
    margin: 20px 0 10px;
    line-height: 1.5;
}
.quality-buttons, .links-container, .promo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%; /* اطمینان از عرض کامل */
}
.quality-buttons form, .links-container form, .promo-container a {
    width: 100%; /* فرم‌ها و لینک‌ها عرض کامل */
}
.hidden {
    display: none;
}
.telegram-icon, .eitaa-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
        width: 95%;
        max-width: 100%; /* سینک کامل در موبایل */
    }
    button {
        font-size: 14px;
        padding: 8px 16px;
    }
    .promo-text {
        font-size: 14px;
    }
}