/* استایل کلی و فونت */
.mufc-predictor-wrapper {
    background: #fdfdfd;
    border: 2px solid #e0e0e0;
    border-top: 4px solid #da020e; /* رنگ قرمز منچستر */
    border-radius: 12px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-family: inherit;
    direction: rtl;
    text-align: center;
}

/* ساختار منعطف تیم‌ها */
.mufc-teams-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mufc-team-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mufc-team-name {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 0 5px 0;
}

.mufc-goals-text {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

/* باکس‌های ورود عدد بهینه‌شده برای موبایل */
.mufc-input {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #ccc;
    border-radius: 10px;
    background: #fff;
    color: #000;
    transition: all 0.3s ease;
    /* جلوگیری از زوم خودکار در آیفون */
    touch-action: manipulation;
}

.mufc-input:focus {
    border-color: #da020e;
    outline: none;
    box-shadow: 0 0 8px rgba(218, 2, 14, 0.2);
}

.mufc-dash-col {
    padding: 0 15px;
}

.mufc-dash {
    font-size: 30px;
    font-weight: bold;
    color: #555;
}

/* دکمه ثبت */
.mufc-btn {
    width: 100%;
    background: #da020e;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.mufc-btn:hover {
    background: #b5020b;
}

.mufc-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* نمودار مینیاتوری نتایج */
.mufc-results-box {
    margin-top: 15px;
    text-align: right;
}

.mufc-bar-container {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin: 10px 0;
    background: #eee;
}

.mufc-bar-u { background: #da020e; transition: width 1s ease; }
.mufc-bar-d { background: #999; transition: width 1s ease; }
.mufc-bar-o { background: #1a1a1a; transition: width 1s ease; }

.mufc-stats-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #444;
}

.mufc-avg-score {
    margin-top: 15px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    color: #da020e;
}

.mufc-expired-msg {
    color: #da020e;
    font-weight: bold;
    padding: 20px;
}

/* بهینه‌سازی موبایل (گوشی‌های کوچک) */
@media (max-width: 480px) {
    .mufc-team-name { font-size: 15px; }
    .mufc-input { width: 50px; height: 50px; font-size: 20px; }
    .mufc-dash { font-size: 24px; }
    .mufc-dash-col { padding: 0 5px; }
}
/* باکس کد قرعه‌کشی */
.mufc-lottery-box {
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e9;
    border: 2px dashed #4caf50;
    border-radius: 10px;
    text-align: center;
}
.mufc-lottery-title {
    color: #2e7d32;
    margin: 0 0 10px 0;
    font-size: 16px;
}
.mufc-lottery-code {
    font-size: 24px;
    letter-spacing: 3px;
    font-family: monospace;
    font-weight: bold;
    color: #1a1a1a;
}
.mufc-lottery-desc {
    font-size: 12px;
    color: #555;
    margin-top: 10px;
}

/* استایل پاپ‌آپ مهمان */
.mufc-guest-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(5px);
}
.mufc-guest-modal {
    background: #fff; padding: 30px; border-radius: 15px;
    text-align: center; max-width: 400px; width: 90%;
    direction: rtl; border-top: 5px solid #da020e;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.mufc-guest-modal h3 { color: #da020e; margin-top: 0; }
.mufc-guest-modal p { font-size: 15px; line-height: 1.6; color: #333; }
.mufc-guest-btn {
    margin-top: 20px; background: #da020e; color: #fff;
    border: none; padding: 10px 25px; border-radius: 8px;
    font-size: 16px; cursor: pointer; transition: 0.3s;
}
.mufc-guest-btn:hover { background: #b5020b; }
/* استایل بنر مربعی تشویقی */
/* استایل بنر مستطیلی (تمام‌عرض) و لینک‌دار */
a.mufc-promo-box {
    text-decoration: none !important;
    transition: transform 0.3s ease;
    display: block;
}
a.mufc-promo-box:hover {
    transform: translateY(-3px);
}

.mufc-promo-box {
    width: 100%; /* عرض کامل فرم را می‌گیرد */
    min-height: 100px; /* ارتفاع مستطیلی استاندارد */
    margin: 0 0 25px 0;
    border-radius: 12px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border: 2px solid #da020e;
}

.mufc-promo-content {
    background: rgba(26, 26, 26, 0.75); /* هاله تیره برای خوانایی متن روی عکس */
    width: 100%;
    min-height: 100px; /* هم‌اندازه والد */
    padding: 15px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    font-size: 16px; /* سایز پیش‌فرض، با المنتور قابل تغییر است */
    font-weight: bold;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .mufc-promo-content {
        font-size: 14px;
        padding: 10px;
    }
}