/* ============================================================================
   📁 الملف 2: assets/bot_bridge.css
   وظيفة الملف: تنسيقات الواجهة الثانية الخاصة بالقادمين من رابط البوت (?id=...&token=...)
   مع دعم كامل لمحاذاة أيقونات Lottie JSON المتحركة
   ============================================================================ */

/* 1. إخفاء النص العلوي، أزرار التسجيل، زر المثال، وزر رفع الصورة في وضع البوت فقط */
body.bot-link-mode #depositAlertHtml,
body.bot-link-mode .promo-links-list,
body.bot-link-mode #countryRestrictionAlert,
body.bot-link-mode .upload-msg-txt,
body.bot-link-mode #btnSeeExampleDynamic,
body.bot-link-mode .upload-zone-label,
body.bot-link-mode #selectedFileName,
body.bot-link-mode #stage-activation .btn-green-glow,
body.bot-link-mode #stage-activation .btn-back-darkred {
    display: none !important;
}

/* 2. قفل اختيار المنصات الأخرى وإبقاء LineBet مفعلة بوضوح */
body.bot-link-mode .platform-card-item:not(.selected) {
    opacity: 0.32;
    pointer-events: none;
    filter: grayscale(0.85);
}

body.bot-link-mode .platform-card-item.selected {
    pointer-events: none;
    border-color: #00e676 !important;
    background: rgba(0, 230, 118, 0.18) !important;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.35) !important;
}

/* 3. تصميم خانة الـ ID المقفلة القادمة من البوت */
body.bot-link-mode #regIdInput {
    background: rgba(4, 12, 28, 0.96) !important;
    border: 2px solid #00e676 !important;
    color: #00e676 !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.25) !important;
}

/* 4. تنسيق مشترك لأيقونات Lottie المدمجة داخل النصوص والأزرار */
.bot-inline-lottie {
    display: inline-block !important;
    vertical-align: middle !important;
    pointer-events: none;
}

#serverLoadingText,
#botTopValidityLabel,
.bot-modal-countdown-label,
#feedbackModalTitle,
.bot-action-btn-content {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    flex-wrap: wrap;
}

/* 5. شريط عداد صلاحية الرابط أعلى صندوق المعلومات */
.bot-validity-top-bar {
    width: 100%;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.45);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #ffe066;
}

.bot-validity-timer-digits {
    font-family: 'Poppins', monospace !important;
    font-size: 13.5px;
    font-weight: 900;
    color: #00e676;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 230, 118, 0.4);
    direction: ltr !important;
}

/* 6. الرسالة الصفراء التي تظهر فوق خانة الـ ID بعد إغلاق نافذة التنبيه */
.bot-yellow-deposit-notice {
    display: none;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.22), rgba(255, 145, 0, 0.18));
    border: 2px solid #ffcc00;
    border-radius: 12px;
    padding: 11px 12px;
    margin-bottom: 10px;
    color: #ffcc00;
    font-size: 13.5px;
    font-weight: 800;
    text-align: center;
    line-height: 1.5;
    box-shadow: 0 0 18px rgba(255, 204, 0, 0.3);
    animation: yellowPulseGlow 1.8s infinite alternate;
}

.bot-yellow-deposit-notice.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}

@keyframes yellowPulseGlow {
    0% { box-shadow: 0 0 10px rgba(255, 204, 0, 0.25); transform: scale(1); }
    100% { box-shadow: 0 0 22px rgba(255, 204, 0, 0.55); transform: scale(1.01); }
}

/* 7. شريط التحميل الواقعي (Progress Bar) قبل إظهار نافذة التنبيه */
.bot-progress-wrap {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: 30px;
    height: 14px;
    overflow: hidden;
    margin-top: 14px;
    position: relative;
}

.bot-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00d2ff, #00e676, #ffcc00);
    border-radius: 30px;
    transition: width 0.25s ease;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.6);
}

.bot-progress-percent {
    font-family: 'Poppins', monospace;
    font-size: 12px;
    font-weight: 800;
    color: #00e676;
    margin-top: 6px;
    display: block;
}

/* 8. صندوق العداد التنازلي داخل النافذة المنبثقة */
.bot-modal-countdown-box {
    width: 100%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px dashed rgba(255, 204, 0, 0.55);
    border-radius: 14px;
    padding: 12px 10px;
    margin: 12px 0;
    text-align: center;
}

.bot-modal-countdown-label {
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 700;
    margin-bottom: 5px;
}

.bot-modal-countdown-clock {
    font-family: 'Poppins', monospace !important;
    font-size: 22px;
    font-weight: 900;
    color: #ffcc00;
    letter-spacing: 1.5px;
    direction: ltr !important;
    text-shadow: 0 0 12px rgba(255, 204, 0, 0.45);
}