/* language: CSS, file: assets/style.css, target: Frontend Unified SPA Styling (Devman07 Crash Bot v4) */
:root {
    --bg-night-top: #060814;
    --bg-night-mid: #0e132a;
    --bg-night-bot: #171f44;
    --accent-blue: #00d2ff;
    --accent-gold: #ffcc00;
    --accent-green: #00e676;
    --accent-orange: #ff7b00;
    --accent-red: #ff3b5c;
    --accent-purple-1: #7c3aed;
    --accent-purple-2: #5b21b6;
    --dark-red-btn: #8b111e;
    --dark-red-border: #c92a3a;
    --card-glass: rgba(14, 19, 42, 0.94);
    --border-glass: rgba(0, 210, 255, 0.28);
    --btn-uniform-height: 52px;
    --btn-uniform-max-width: 440px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    background: linear-gradient(180deg, var(--bg-night-top) 0%, var(--bg-night-mid) 58%, var(--bg-night-bot) 100%);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    position: relative;
}

html[dir="rtl"] body,
body.lang-ar {
    font-family: 'Almarai', 'Poppins', sans-serif;
}

/* =====================================================
   🌌 1. خلفية الليل: نجوم + شُهب عشوائية + سحب وجبال ليلية متحركة
   ===================================================== */
.night-sky-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(180deg, #050711 0%, #0c1126 55%, #161e42 100%);
}

.night-sky-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 62px,
        rgba(255, 255, 255, 0.028) 62px,
        rgba(255, 255, 255, 0.028) 63px
    );
    z-index: 1;
}

#starsCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.night-clouds-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    z-index: 3;
    overflow: hidden;
}

.cloud-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-position: 0 bottom;
    background-size: 50% 100%;
}

.cloud-wave-1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23151a36' d='M0,160L48,144C96,128,192,96,288,106.7C384,117,480,171,576,165.3C672,160,768,96,864,90.7C960,85,1056,139,1152,154.7C1248,171,1344,149,1392,138.7L1440,128L1440,320L0,320Z'/%3E%3C/svg%3E");
    animation: moveClouds 38s linear infinite;
    opacity: 0.92;
}

.cloud-wave-2 {
    height: 80%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%231c2347' d='M0,192L60,170.7C120,149,240,107,360,117.3C480,128,600,192,720,197.3C840,203,960,149,1080,128C1200,107,1320,117,1380,122.7L1440,128L1440,320L0,320Z'/%3E%3C/svg%3E");
    animation: moveCloudsReverse 28s linear infinite;
    opacity: 0.95;
}

.cloud-wave-3 {
    height: 58%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23252d5a' d='M0,224L80,202.7C160,181,320,139,480,149.3C640,160,800,224,960,229.3C1120,235,1280,181,1360,154.7L1440,128L1440,320L0,320Z'/%3E%3C/svg%3E");
    animation: moveClouds 21s linear infinite;
}

@keyframes moveClouds {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes moveCloudsReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* =====================================================
   ⏳ 2. شاشة انتظار الاتصال بالسيرفر
   ===================================================== */
.loading-server-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 16, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.loading-server-overlay.show {
    display: flex;
    animation: stageFadeIn 0.25s ease;
}

.loading-server-box {
    background: rgba(16, 22, 48, 0.96);
    border: 1px solid rgba(0, 210, 255, 0.5);
    border-radius: 20px;
    padding: 28px 22px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.3);
}

.cyber-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(0, 210, 255, 0.2);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spinLoader 0.85s linear infinite;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

#serverLoadingText {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.5;
}

/* =====================================================
   🧭 3. الشريط العلوي الموحد
   ===================================================== */
.unified-header {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: rgba(7, 10, 24, 0.95);
    border-bottom: 1px solid rgba(0, 210, 255, 0.18);
    min-height: 62px;
    gap: 8px;
}

.header-side-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.join-tg-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(0, 183, 255, 0.2), rgba(0, 119, 255, 0.32));
    border: 1px solid rgba(0, 210, 255, 0.6);
    color: #ffffff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 183, 255, 0.25);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.join-tg-pill img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: contain;
}

.join-tg-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 210, 255, 0.45);
}

.header-center-clock {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 9px;
    direction: ltr !important;
    font-family: 'Poppins', monospace !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.25);
    padding: 4px 13px;
    border-radius: 14px;
    flex-shrink: 0;
}

.clock-flag-icon {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    display: block;
}

.clock-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.22;
    text-align: left;
}

.clock-date {
    color: var(--accent-gold);
    font-size: 10.5px;
    font-weight: 800;
    display: block;
    white-space: nowrap;
}

.clock-time {
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    font-family: 'Poppins', monospace !important;
    white-space: nowrap;
}

.header-side-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1;
}

.lang-unified-wrap {
    position: relative;
}

.lang-pill-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    padding: 6px 11px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: inherit;
}

.lang-pill-btn:hover {
    background: rgba(0, 210, 255, 0.18);
    border-color: var(--accent-blue);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(10, 14, 32, 0.98);
    border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
    width: 165px;
    max-height: 260px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    padding: 6px;
    z-index: 999;
}

html[dir="rtl"] .lang-dropdown-menu {
    right: auto;
    left: 0;
}

.lang-dropdown-menu.open {
    display: flex;
    animation: stageFadeIn 0.2s ease;
}

.lang-item-opt {
    padding: 8px 10px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    color: #e2e8f0;
}

.lang-item-opt:hover,
.lang-item-opt.active {
    background: rgba(0, 210, 255, 0.22);
    color: var(--accent-blue);
}

/* =====================================================
   📦 4. الحاوية الرئيسية
   ===================================================== */
.app-main-wrapper {
    position: relative;
    z-index: 10;
    flex: 1;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 14px 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unified-brand-header {
    text-align: center;
    margin-bottom: 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-logo-main {
    width: 92px;
    height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(0, 210, 255, 0.45));
    margin-bottom: 6px;
    display: block;
}

.tg-dynamic-profile {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px auto 8px;
    background: rgba(0, 183, 255, 0.1);
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.tg-user-photo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    object-fit: cover;
}

.tg-welcome-text {
    font-weight: 800;
    color: #ffffff;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tg-user-name {
    color: var(--accent-blue);
}

.brand-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    width: 288px;
    min-width: 288px;
    max-width: 288px;
    direction: ltr !important;
    font-family: 'Poppins', sans-serif !important;
    position: relative;
}

.dynamic-title-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 252px;
    min-width: 252px;
    max-width: 252px;
    height: 34px;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(45deg, #ff4b4b, #00d2ff, #ffcc00);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s ease infinite;
    transition: opacity 0.35s ease;
    white-space: nowrap;
    overflow: hidden;
    flex-shrink: 0;
    text-align: center;
}

.brand-title-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.stage-view {
    display: none;
    width: 100%;
}

.stage-view.active-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    animation: stageFadeIn 0.25s ease;
}

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

.glass-card-panel {
    width: 100%;
    background: var(--card-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 18px 15px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =====================================================
   ✨ 5. توحيد أحجام الأزرار
   ===================================================== */
.btn-interactive {
    position: relative;
    width: 100%;
    max-width: var(--btn-uniform-max-width);
    height: var(--btn-uniform-height);
    min-height: var(--btn-uniform-height);
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 6px auto;
    letter-spacing: 0.4px;
    text-align: center;
}

.btn-interactive::after {
    content: "";
    position: absolute;
    top: 0;
    left: -85%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: skewX(-25deg);
    animation: subtleShimmer 3.6s infinite;
}

@keyframes subtleShimmer {
    0% { left: -85%; }
    25% { left: 135%; }
    100% { left: 135%; }
}

.btn-interactive:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-interactive:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.btn-interactive:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.5);
    box-shadow: none !important;
}

.btn-orange-glow {
    background: linear-gradient(135deg, #ff7300, #fe4a17);
    box-shadow: 0 6px 18px rgba(255, 115, 0, 0.35);
}

.btn-green-glow {
    background: linear-gradient(135deg, #00c853, #009624);
    box-shadow: 0 6px 18px rgba(0, 200, 83, 0.35);
}

.btn-blue-glow {
    background: linear-gradient(135deg, #00b4db, #0083b0);
    box-shadow: 0 6px 18px rgba(0, 180, 219, 0.35);
}

.btn-terms-glow {
    background: linear-gradient(135deg, var(--accent-purple-1), var(--accent-purple-2));
    border: 1px solid rgba(196, 181, 253, 0.55);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-back-darkred {
    background: linear-gradient(135deg, var(--dark-red-btn), #5c0912);
    border: 1px solid var(--dark-red-border);
    box-shadow: 0 6px 18px rgba(139, 17, 30, 0.45);
    color: #ffffff;
    margin-top: 12px;
}

html[dir="rtl"] .btn-back-darkred i.fa-arrow-left {
    transform: scaleX(-1);
}

/* =====================================================
   🎬 6. مشغل الفيديو وأزرار الفيديو المخصصة بالكامل من لوحة التحكم
   ===================================================== */
.odysee-player-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-width: 500px;
    margin: 0 auto 12px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background: #000;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.odysee-player-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-switch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: dense;
    gap: 8px;
    width: 100%;
    max-width: var(--btn-uniform-max-width);
    margin-bottom: 12px;
    direction: ltr !important;
}

.glass-btn {
    --vid-bg: rgba(0, 145, 255, 0.24);
    --vid-border: rgba(0, 190, 255, 0.55);
    --vid-active: #00d2ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--vid-bg);
    border: 1.5px solid var(--vid-border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.glass-btn img {
    width: 19px;
    height: 19px;
    object-fit: contain;
    flex-shrink: 0;
}

/* زر طويل بمفرده لا يوجد قربه أي زر */
.glass-btn.vid-span-full {
    grid-column: 1 / -1 !important;
    width: 100%;
}

/* زر بجانب زر آخر */
.glass-btn.vid-span-half {
    grid-column: span 1;
}

/* توجيه الزر إلى اليسار أو اليمين أو الأعلى */
.glass-btn.vid-pos-left:not(.vid-span-full) {
    grid-column: 1 / 2;
}
.glass-btn.vid-pos-right:not(.vid-span-full) {
    grid-column: 2 / 3;
}

/* عند التمرير أو عندما يكون الزر Active يأخذ لون الـ Active المحدد من الأدمن */
.glass-btn:hover,
.glass-btn.active {
    border-color: var(--vid-active) !important;
    box-shadow: 0 4px 18px var(--vid-active), inset 0 0 10px rgba(255, 255, 255, 0.22) !important;
    transform: translateY(-2px) scale(1.01);
    filter: brightness(1.12);
}

/* كلاسات احتياطية للأزرار الافتراضية */
.glass-btn.green-brown-glass {
    --vid-bg: linear-gradient(135deg, rgba(16, 115, 58, 0.5), rgba(11, 68, 37, 0.72));
    --vid-border: rgba(0, 221, 86, 0.45);
    --vid-active: #00dd56;
}
.glass-btn.paripulse-glass {
    --vid-bg: linear-gradient(135deg, rgba(14, 98, 49, 0.5), rgba(8, 56, 28, 0.72));
    --vid-border: rgba(36, 154, 82, 0.5);
    --vid-active: #2ecc71;
}
.glass-btn.blue-glass {
    --vid-bg: rgba(0, 145, 255, 0.24);
    --vid-border: rgba(0, 190, 255, 0.55);
    --vid-active: #00d2ff;
}
.glass-btn.red-glass {
    --vid-bg: linear-gradient(135deg, rgba(0, 123, 255, 0.32), rgba(255, 45, 70, 0.38));
    --vid-border: rgba(165, 65, 235, 0.55);
    --vid-active: #c471ed;
}

.welcome-banner-text {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin: 6px 0 10px;
    color: #e2e8f0;
}

/* =====================================================
   📋 7. المرحلة 2: أزرار الأفلييت وإدخال المعلومات
   ===================================================== */
.deposit-alert-box {
    width: 100%;
    max-width: var(--btn-uniform-max-width);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.78), rgba(15, 23, 42, 0.94));
    border: 1px solid rgba(59, 130, 246, 0.6);
    border-left: 4px solid var(--accent-gold);
    padding: 13px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    margin-bottom: 12px;
    text-align: center;
}

#countryRestrictionAlert {
    width: 100%;
    max-width: var(--btn-uniform-max-width);
}

.country-alert {
    margin-bottom: 12px;
    padding: 12px 14px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 12px;
    line-height: 1.55;
    text-align: center;
}

.vpn-alert {
    background: rgba(255, 59, 92, 0.16);
    border: 1px solid rgba(255, 59, 92, 0.5);
    border-left: 4px solid #ff3b5c;
    color: #ffb3c1;
}

.megapari-alert {
    background: rgba(255, 165, 0, 0.16);
    border: 1px solid rgba(255, 165, 0, 0.5);
    border-left: 4px solid #ffa500;
    color: #ffe0a3;
}

.promo-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: var(--btn-uniform-max-width);
    margin-bottom: 14px;
}

.promo-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(9, 13, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 10px 12px;
    gap: 10px;
    transition: border-color 0.25s ease;
}

.promo-card-row:hover {
    border-color: rgba(0, 210, 255, 0.45);
}

.hand-icon {
    width: 38px;
    height: 28px;
    min-width: 38px;
    min-height: 28px;
    object-fit: contain;
    animation: pointHand 1.1s ease-in-out infinite;
    flex-shrink: 0;
    display: block !important;
}

@keyframes pointHand {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-6px); }
}

html[dir="rtl"] .hand-icon {
    animation-name: pointHandRtl;
}

@keyframes pointHandRtl {
    0%, 100% { transform: translateX(0) scaleX(-1); }
    50% { transform: translateX(6px) scaleX(-1); }
}

.promo-platform-btn {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.promo-platform-btn img.promo-image {
    width: 148px;
    height: 42px;
    object-fit: contain;
    display: block !important;
    transition: transform 0.22s ease;
}

.promo-platform-btn img.promo-image:hover {
    transform: scale(1.04);
}

.promo-code-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 9px;
    border-radius: 10px;
    border: 1px dashed rgba(0, 230, 118, 0.45);
}

.promo-label-txt {
    font-size: 11px;
    color: #cbd5e1;
    display: none;
}

@media (min-width: 460px) {
    .promo-label-txt { display: inline; }
}

.promo-code-val {
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.8px;
}

.btn-copy-mini {
    background: var(--accent-green);
    color: #060814;
    border: none;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.input-frame-box {
    width: 100%;
    max-width: var(--btn-uniform-max-width);
    background: rgba(8, 11, 25, 0.88);
    border: 1px solid rgba(0, 230, 118, 0.35);
    border-radius: 16px;
    padding: 14px 12px;
    margin-bottom: 10px;
}

.platform-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
    gap: 8px;
    margin: 8px 0 14px;
}

.platform-card-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.platform-card-item img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    margin-bottom: 4px;
    display: block !important;
}

.platform-card-item span {
    font-size: 12.5px;
    font-weight: 700;
    color: #cbd5e1;
}

.platform-card-item.selected {
    border-color: var(--accent-green);
    background: rgba(0, 230, 118, 0.14);
    box-shadow: 0 0 16px rgba(0, 230, 118, 0.28);
}

.platform-card-item.selected span {
    color: var(--accent-green);
}

.field-group {
    width: 100%;
    max-width: var(--btn-uniform-max-width);
    margin: 0 auto 12px;
    position: relative;
}

.field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #cbd5e1;
}

.cyber-input {
    width: 100%;
    height: var(--btn-uniform-height);
    padding: 0 38px 0 16px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(5, 8, 20, 0.9);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    direction: ltr;
    font-family: 'Poppins', monospace;
}

.cyber-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.25);
}

.cyber-input.valid { border-color: var(--accent-green); }
.cyber-input.invalid { border-color: var(--accent-red); }

.field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.45);
}

.upload-msg-txt {
    font-size: 12.5px;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.btn-example-pill {
    width: 100%;
    max-width: var(--btn-uniform-max-width);
    height: 44px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 16px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.25s;
}

.btn-example-pill img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}

.upload-zone-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 14px;
    border: 2px dashed rgba(0, 210, 255, 0.45);
    border-radius: 12px;
    background: rgba(0, 210, 255, 0.05);
    cursor: pointer;
    font-weight: 700;
    font-size: 13.5px;
    transition: 0.25s;
}

.upload-zone-label:hover {
    background: rgba(0, 210, 255, 0.12);
    border-color: var(--accent-blue);
}

.selected-file-badge {
    color: var(--accent-green);
    font-size: 12px;
    margin-top: 6px;
    font-weight: 700;
}

.ban-alert-banner {
    width: 100%;
    max-width: var(--btn-uniform-max-width);
    background: rgba(255, 59, 92, 0.16);
    border: 1px solid var(--accent-red);
    color: #ff8fa3;
    padding: 10px 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* =====================================================
   🎯 8. المرحلة 4: رادار النتائج
   ===================================================== */
#stage-predictor,
.radar-stage-box {
    direction: ltr !important;
    font-family: 'Poppins', sans-serif !important;
}

.radar-stage-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.session-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--btn-uniform-max-width);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 700;
    direction: ltr !important;
    font-family: 'Poppins', monospace !important;
}

.timer-pill-box {
    font-family: 'Poppins', monospace !important;
    font-variant-numeric: tabular-nums !important;
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-gold);
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.35);
    padding: 3px 10px;
    min-width: 88px;
    text-align: center;
    border-radius: 20px;
    letter-spacing: 1px;
    direction: ltr !important;
}

.history-strip {
    width: 100%;
    max-width: var(--btn-uniform-max-width);
    height: 40px;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    padding: 0 4px;
    scrollbar-width: none;
    direction: ltr !important;
    font-family: 'Poppins', sans-serif !important;
}

.history-strip::-webkit-scrollbar { display: none; }

.hist-pill {
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    animation: stageFadeIn 0.25s ease;
    direction: ltr !important;
    font-family: 'Poppins', sans-serif !important;
}

.radar-circle-wrap {
    position: relative;
    width: 195px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0 0;
    direction: ltr !important;
}

.radar-ring {
    position: absolute;
    width: 144px;
    height: 144px;
    border-radius: 50%;
    border: 2px solid rgba(0, 230, 118, 0.35);
    background: radial-gradient(circle, rgba(0, 230, 118, 0.08) 0%, transparent 70%);
    opacity: 0.28;
    transition: 0.3s;
}

.radar-ring.active { opacity: 1; }

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    background: conic-gradient(from 180deg at 0% 0%, rgba(0, 230, 118, 0.65) 0%, transparent 45%);
    transform-origin: 0% 0%;
    border-radius: 100% 0 0 0;
    animation: radarSpin 2s linear infinite;
    display: none;
}

.radar-ring.active .radar-sweep { display: block; }

.radar-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #39ff14;
    box-shadow: 0 0 8px #39ff14;
    opacity: 0;
}

.radar-ring.active .radar-dot {
    animation: radarDotPulse 1.5s ease-out infinite;
}

@keyframes radarSpin { to { transform: rotate(360deg); } }
@keyframes radarDotPulse {
    0%, 100% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
}

.explosion-burst {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,204,0,0.6) 45%, transparent 75%);
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.explosion-burst.explode-anim {
    animation: burstAnim 0.4s ease-out;
}

@keyframes burstAnim {
    0% { transform: scale(0.4); opacity: 1; }
    100% { transform: scale(2.1); opacity: 0; }
}

.crash-score-val {
    font-family: 'Poppins', sans-serif !important;
    font-variant-numeric: tabular-nums;
    direction: ltr !important;
    unicode-bidi: isolate;
    font-size: 58px;
    font-weight: 800;
    z-index: 3;
    text-shadow: 0 0 22px rgba(0, 210, 255, 0.55);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.crash-score-val.score-new-pulse {
    animation: newScorePulse 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes newScorePulse {
    0% { transform: scale(0.35); opacity: 0.2; }
    50% { transform: scale(1.35); opacity: 1; }
    75% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.crash-score-val.glitch-roll {
    color: #ff9f43 !important;
    text-shadow: 2px 0 #ff3b5c, -2px 0 #00d2ff !important;
}

.pred-watermark-link {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 204, 0, 0.85);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(255, 204, 0, 0.5);
    padding: 3px 16px;
    border-radius: 20px;
    background: rgba(255, 204, 0, 0.07);
    border: 1px solid rgba(255, 204, 0, 0.24);
    margin-top: -2px;
    margin-bottom: 4px;
    transition: all 0.25s ease;
    animation: watermarkGlow 2.4s ease-in-out infinite alternate;
    direction: ltr !important;
}

.pred-watermark-link:hover {
    color: #ffcc00;
    background: rgba(255, 204, 0, 0.15);
    transform: scale(1.04);
}

@keyframes watermarkGlow {
    0% { opacity: 0.72; text-shadow: 0 0 8px rgba(255, 204, 0, 0.3); }
    100% { opacity: 0.96; text-shadow: 0 0 16px rgba(255, 204, 0, 0.8); }
}

.pred-status-line {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.color-red { color: #ff4d4d; text-shadow: 0 0 18px rgba(255, 77, 77, 0.5); }
.color-yellow { color: #ffcc00; text-shadow: 0 0 18px rgba(255, 204, 0, 0.5); }
.color-green { color: #39ff14; text-shadow: 0 0 18px rgba(57, 255, 20, 0.5); }

.bg-red { color: #ff4d4d; background: rgba(255, 0, 0, 0.15); border: 1px solid rgba(255, 77, 77, 0.35); }
.bg-yellow { color: #ffcc00; background: rgba(255, 170, 0, 0.15); border: 1px solid rgba(255, 204, 0, 0.35); }
.bg-green { color: #39ff14; background: rgba(0, 255, 0, 0.15); border: 1px solid rgba(57, 255, 20, 0.35); }

/* =====================================================
   💎 9. النوافذ المنبثقة
   ===================================================== */
.custom-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 16, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 14px;
}

.custom-modal-backdrop.show {
    display: flex;
    animation: stageFadeIn 0.25s ease;
}

.modal-card-modern {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: linear-gradient(180deg, #131a3a 0%, #0b0f24 100%);
    border-radius: 22px;
    padding: 24px 18px 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    border: 2px solid rgba(0, 210, 255, 0.45);
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-card-modern.modal-success {
    border-color: var(--accent-green);
    box-shadow: 0 0 35px rgba(0, 230, 118, 0.25);
}

.modal-card-modern.modal-error {
    border-color: var(--accent-red);
    box-shadow: 0 0 35px rgba(255, 59, 92, 0.25);
}

.modal-close-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 59, 92, 0.25);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 5;
}

.modal-badge-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.modal-success .modal-badge-icon {
    background: rgba(0, 230, 118, 0.15);
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
}

.modal-error .modal-badge-icon {
    background: rgba(255, 59, 92, 0.15);
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
}

.generated-code-display {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px dashed var(--accent-gold);
    padding: 13px 10px;
    border-radius: 12px;
    font-family: 'Poppins', monospace;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: 1px;
    margin: 12px 0;
    word-break: break-all;
    direction: ltr;
}

.modal-terms-card {
    max-width: 500px;
    border-color: var(--accent-purple-1);
}

.terms-modal-title {
    color: var(--accent-gold);
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 12px;
    padding-top: 6px;
}

.terms-scroll-body {
    width: 100%;
    max-height: 58dvh;
    overflow-y: auto;
    text-align: start;
    background: rgba(6, 9, 22, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px;
    font-size: 12.5px;
    line-height: 1.65;
    color: #e2e8f0;
}

.terms-rule-item {
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.02);
}

.terms-rule-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-rule-item b {
    color: var(--accent-blue);
}

/* =====================================================
   🎮 10. سلايدر الألعاب التفاعلي
   ===================================================== */
.after-footer-slider {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 6px 14px 20px;
    direction: ltr !important;
}

.slider-wrapper {
    width: 100%;
    max-width: 540px;
    background: rgba(12, 16, 36, 0.92);
    border-radius: 18px;
    border: 1px solid rgba(0, 210, 255, 0.22);
    padding: 12px;
    overflow: hidden;
}

.slider-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.slider-title {
    text-align: center;
    font-size: 13.5px;
    font-weight: 800;
    background: linear-gradient(90deg, #ffff66, #00ff88, #00e5ff);
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    margin: 0;
}

.slider-arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0, 210, 255, 0.45);
    background: rgba(0, 210, 255, 0.14);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: 0.2s;
}

.slider-arrow-btn:hover {
    background: var(--accent-blue);
    color: #060814;
}

.slider-viewport {
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
}

.slider-viewport:active {
    cursor: grabbing;
}

.slider-track {
    display: flex;
    gap: 12px;
    will-change: transform;
}

.game-card {
    flex: 0 0 auto;
    width: 135px;
    text-align: center;
    background: rgba(0, 0, 0, 0.42);
    border-radius: 12px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-thumb {
    width: 100%;
    height: 78px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.play-btn {
    display: inline-block;
    margin-top: 7px;
    padding: 5px 16px;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #00b4db, #0083b0);
    font-size: 11.5px;
    font-weight: 700;
}

.unified-footer {
    position: relative;
    z-index: 20;
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    background: rgba(5, 7, 18, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 600;
    margin-top: auto;
}

.unified-footer span {
    color: var(--accent-blue);
    font-weight: 800;
}

/* =====================================================
   📱 11. التجاوب التام مع الهواتف
   ===================================================== */
@media screen and (max-width: 480px) {
    :root {
        --btn-uniform-height: 48px;
    }
    .unified-header { min-height: 54px; padding: 6px 10px; }
    .join-tg-pill { padding: 5px 9px; font-size: 11px; }
    .lang-pill-btn { padding: 5px 9px; font-size: 11px; }
    .header-center-clock { padding: 3px 9px; gap: 7px; }
    .clock-flag-icon { width: 24px; height: 17px; }
    .clock-date { font-size: 9.5px; }
    .clock-time { font-size: 11.5px; }

    .brand-logo-main {
        width: 86px;
        height: 86px;
        margin-bottom: 4px;
    }

    .brand-title-row {
        width: 270px;
        min-width: 270px;
        max-width: 270px;
    }

    .dynamic-title-text {
        width: 236px;
        min-width: 236px;
        max-width: 236px;
        font-size: 18px;
    }

    .app-main-wrapper { padding: 8px 10px 14px; }
    .glass-card-panel { padding: 14px 11px; border-radius: 16px; }
    .btn-interactive { font-size: 14px; margin: 5px auto; }

    .promo-platform-btn img.promo-image {
        width: 132px;
        height: 38px;
    }

    .radar-circle-wrap { width: 165px; height: 125px; }
    .radar-ring { width: 122px; height: 122px; }
    .crash-score-val { font-size: 48px; }
    .pred-watermark-link { font-size: 12.5px; }
}

@media screen and (max-height: 500px) {
    :root {
        --btn-uniform-height: 42px;
    }
    .brand-logo-main { width: 58px; height: 58px; }
    .radar-circle-wrap { width: 125px; height: 95px; }
    .radar-ring { width: 92px; height: 92px; }
    .crash-score-val { font-size: 36px; }
}
