:root {
    --login-bg: url('../images/streamers/login-an.webp');
    --dashboard-bg: url('../images/streamers/after1.webp');
    --streamers-bg: url('../images/streamers/after2.webp');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: var(--login-bg) no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 6%;
    overflow-x: hidden;
    position: relative;
    transition: background 0.5s ease;
}

body.dashboard-bg {
    background: var(--dashboard-bg) no-repeat center center/cover !important;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

body.streamers-bg {
    background: var(--streamers-bg) no-repeat center center/cover !important;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

body.offers-bg {
    background: #050814 no-repeat center center/cover !important;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(10, 14, 39, 0.15), rgba(5, 8, 22, 0.72));
    z-index: 0;
}

.view-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ================================================= */
/* 1. صفحة تسجيل الدخول                              */
/* ================================================= */
.main-container {
    width: 100%;
    max-width: 470px;
    margin-left: auto;
}

.login-wrapper {
    position: relative;
    padding: 2.5px;
    background: linear-gradient(135deg, #00d2ff 0%, #9d00ff 50%, #00d2ff 100%);
    clip-path: polygon(25px 0, calc(100% - 25px) 0, 100% 25px, 100% calc(100% - 25px), calc(100% - 25px) 100%, 25px 100%, 0 calc(100% - 25px), 0 25px);
    box-shadow: 0 0 35px rgba(157, 0, 255, 0.5);
}

.login-box {
    background: rgba(11, 15, 35, 0.85);
    backdrop-filter: blur(14px);
    padding: 35px 32px 28px;
    clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% calc(100% - 24px), calc(100% - 24px) 100%, 24px 100%, 0 calc(100% - 24px), 0 24px);
    text-align: center;
    color: #fff;
}

.logo-section { margin-bottom: 18px; }
.crown-icon { color: #ffb703; font-size: 28px; transform: rotate(15deg); margin-bottom: -8px; margin-left: 35px; filter: drop-shadow(0 0 10px rgba(255, 183, 3, 0.8)); }
.title-top, .title-bottom { font-family: 'Orbitron', sans-serif; font-style: italic; font-weight: 900; line-height: 1.05; }
.title-top { font-size: 32px; color: #fff; }
.title-bottom { font-size: 27px; }
.neon-purple { color: #d946ef; text-shadow: 0 0 15px rgba(217, 70, 239, 0.8); }
.subtitle-bar { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.subtitle-bar .line { height: 1.5px; flex: 1; }
.subtitle-bar .line.left { background: linear-gradient(90deg, transparent, #d946ef); }
.subtitle-bar .line.right { background: linear-gradient(90deg, #d946ef, transparent); }
.tagline { font-size: 10px; font-weight: 600; letter-spacing: 2.5px; color: #e2e8f0; }

.welcome-text { margin-bottom: 20px; }
.welcome-text h2 { font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.gamepad-icon { color: #a855f7; filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.9)); }
.welcome-text p { font-size: 13px; color: #cbd5e1; }

.input-group { position: relative; margin-bottom: 14px; }
.input-group input {
    width: 100%; padding: 13px 42px 13px 45px;
    background: rgba(18, 24, 52, 0.85); border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: 10px; color: #fff; font-size: 14px; outline: none; transition: all 0.3s ease;
}
.input-group input:focus { border-color: #00d2ff; box-shadow: 0 0 12px rgba(0, 210, 255, 0.4); }
.input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #e2e8f0; }
.toggle-password { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; cursor: pointer; }

.btn-signin {
    width: 100%; padding: 13px 20px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 10px;
    background: linear-gradient(90deg, #b5179e 0%, #7209b7 45%, #00b4d8 100%);
    color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative;
    box-shadow: 0 0 20px rgba(181, 23, 158, 0.5);
}
.arrows-right { position: absolute; right: 18px; opacity: 0.5; }
.divider { display: flex; align-items: center; margin: 16px 0; color: #cbd5e1; font-size: 11px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.2); }
.divider span { padding: 0 12px; }

.btn-google {
    width: 100%; padding: 12px; background: rgba(15, 23, 42, 0.85); border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: 10px; color: #fff; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.google-icon { width: 18px; height: 18px; }
.footer-links { margin-top: 18px; font-size: 12px; color: #cbd5e1; }
.footer-links a { color: #d946ef; text-decoration: none; font-weight: 600; }
.footer-links a.is-urgent { color: #ffb4f8; text-decoration: underline; text-shadow: 0 0 10px rgba(217, 70, 239, 0.8); }
.footer-links .sep { margin: 0 8px; }

/* رسائل تسجيل الدخول / إنشاء الحساب (نفس لوحة الألوان الحالية) */
.auth-message {
    margin-top: 14px; padding: 9px 12px; border-radius: 9px;
    background: rgba(15, 23, 42, 0.85); border: 1px solid rgba(0, 210, 255, 0.5);
    color: #cbd5e1; font-size: 12px; font-weight: 600; line-height: 1.7; text-align: center;
}
.auth-message.error { border-color: #f87171; color: #fecaca; box-shadow: 0 0 12px rgba(248, 113, 113, 0.25); }
.auth-message.success { border-color: #4ade80; color: #bbf7d0; box-shadow: 0 0 12px rgba(74, 222, 128, 0.25); }
.auth-message.info { border-color: #00d2ff; color: #a5f3fc; }

/* صفحة تأكيد البريد: نفس هوية التصميم مع لمسة نيون */
.verify-box { padding-top: 26px; }
.verify-icon {
    width: 66px; height: 66px; margin: 2px auto 12px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 30px; color: #fff;
    background: radial-gradient(circle at 35% 30%, #d946ef, #7209b7);
    border: 2px solid #00d2ff; box-shadow: 0 0 22px rgba(217, 70, 239, 0.7);
}
.verify-title { font-size: 21px; color: #fff; margin-bottom: 8px; }
.verify-lead { font-size: 13px; color: #cbd5e1; line-height: 1.9; }
.verify-lead strong { color: #00d2ff; }
.verify-steps {
    text-align: right; margin: 16px 0 4px; padding: 14px 16px 14px 34px;
    background: rgba(18, 24, 52, 0.75); border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: 10px; list-style: none;
}
.verify-steps li { position: relative; font-size: 12px; color: #e2e8f0; line-height: 1.9; padding-right: 28px; }
.verify-steps li + li { margin-top: 6px; }
.verify-steps li span {
    position: absolute; right: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
    background: #d946ef; color: #fff; font-size: 11px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}
.verify-confirm-btn { margin-top: 16px; }
.verify-resend-btn { width: 100%; margin-top: 10px; font-family: 'Cairo', sans-serif; font-size: 13px; }
.verify-link {
    margin-top: 14px; background: none; border: none; color: #d946ef;
    font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline;
}
.verify-link:hover { color: #00d2ff; }

/* زر استعادة الحساب يظهر مباشرة بعد خطأ كلمة المرور */
.recover-error-btn {
    width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 10px;
    background: rgba(217, 70, 239, 0.14); border: 1px solid #d946ef; color: #f5d0fe;
    font-family: 'Cairo', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer;
}
.recover-error-btn:hover { background: rgba(217, 70, 239, 0.3); box-shadow: 0 0 14px rgba(217, 70, 239, 0.45); }

/* ================================================= */
/* 2. لوحة الأقسام (Dashboard)                       */
/* ================================================= */
.dashboard-container { width: 100%; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

/* زر الملف الشخصي: بلا مستطيل، مثبّت في أقصى يمين الشاشة */
.user-panel {
    position: fixed; top: 20px; right: 20px; z-index: 70;
    display: flex; justify-content: flex-end; padding: 0;
    background: none; border: 0; border-radius: 0; backdrop-filter: none; color: #fff;
}
.profile-toggle {
    display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
    border-radius: 999px; cursor: pointer; background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(217, 70, 239, 0.6); color: #fff;
    transition: all 0.25s ease;
}
.profile-toggle:hover, .profile-toggle.is-open {
    border-color: #00d2ff; box-shadow: 0 0 14px rgba(0, 210, 255, 0.5);
}
.profile-toggle .user-avatar {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    color: #fff; background: radial-gradient(circle at 35% 30%, #d946ef, #7209b7);
    border: 1px solid #00d2ff; box-shadow: 0 0 12px rgba(217, 70, 239, 0.55);
}
.profile-chevron { font-size: 11px; color: #a5f3fc; transition: transform 0.25s ease; }
.profile-toggle.is-open .profile-chevron { transform: rotate(180deg); }
.profile-toggle:focus-visible, .logout-btn:focus-visible { outline: 2px solid #00d2ff; outline-offset: 2px; }

.profile-menu {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
    min-width: min(260px, calc(100vw - 32px));
    display: flex; flex-direction: column; gap: 12px;
    padding: 14px; border-radius: 14px;
    background: rgba(11, 15, 35, 0.96); border: 1.5px solid rgba(217, 70, 239, 0.6);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 18px rgba(217, 70, 239, 0.35);
    backdrop-filter: blur(10px);
}
.profile-menu[hidden] { display: none !important; }
.user-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.user-meta strong { font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta span { font-size: 12px; color: #a5f3fc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { font-size: 10px; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout-btn {
    width: 100%; justify-content: center;
    padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 700;
    font-family: 'Orbitron', sans-serif; display: flex; align-items: center; gap: 7px;
    background: rgba(15, 23, 42, 0.85); border: 1.5px solid rgba(248, 113, 113, 0.7); color: #fca5a5;
    transition: all 0.3s ease;
}
.logout-btn:hover { background: #f87171; color: #1a0505; box-shadow: 0 0 15px rgba(248, 113, 113, 0.6); }

@media (max-width: 560px) {
    .user-panel { top: 12px; right: 12px; }
}

.top-banners { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.banner-wrapper {
    position: relative; width: 100%; max-width: 580px; padding: 2.5px; cursor: pointer; transition: transform 0.25s ease;
    clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 22px 100%, 0 50%);
}
.banner-wrapper:hover { transform: scale(1.03); }
.streamers-border { background: linear-gradient(90deg, #00d2ff, #d946ef, #00d2ff); box-shadow: 0 0 25px rgba(217, 70, 239, 0.65); }
.banner-crown { position: absolute; top: -18px; left: 24%; color: #ffb703; font-size: 24px; transform: rotate(-15deg); z-index: 5; }
.banner-inner {
    display: flex; align-items: center; justify-content: space-between; padding: 12px 35px;
    clip-path: polygon(21px 0, calc(100% - 21px) 0, 100% 50%, calc(100% - 21px) 100%, 21px 100%, 0 50%);
}
.streamers-inner { background: linear-gradient(90deg, rgba(16, 12, 46, 0.92), rgba(45, 14, 78, 0.92), rgba(16, 12, 46, 0.92)); }
.banner-icon-left { font-size: 26px; color: #c4b5fd; }
.banner-title { font-family: 'Orbitron', sans-serif; font-style: italic; font-weight: 800; font-size: 20px; color: #fff; }
.gold-s { color: #ffb703; font-size: 24px; margin-left: 3px; }
.play-circle { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, #d946ef, #7209b7); border: 1.5px solid #00d2ff; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; }

.offers-border { max-width: 520px; background: linear-gradient(90deg, #ff9e00, #ffd166, #ff9e00); box-shadow: 0 0 25px rgba(255, 158, 0, 0.6); }
.offers-inner { background: linear-gradient(90deg, rgba(46, 24, 6, 0.92), rgba(92, 48, 8, 0.92), rgba(46, 24, 6, 0.92)); padding: 10px 40px; }
.gift-icon { font-size: 22px; color: #ffd166; }
.offers-title { font-style: normal; font-size: 19px; color: #fff3b0; }

.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card {
    background: rgba(11, 15, 35, 0.8); border: 1.5px solid rgba(0, 210, 255, 0.5); border-radius: 14px;
    padding: 20px 15px; text-align: center; cursor: pointer; backdrop-filter: blur(10px); transition: all 0.3s ease;
    position: relative;
}
.category-card:hover { transform: translateY(-5px); border-color: #d946ef; box-shadow: 0 0 25px rgba(217, 70, 239, 0.6); }
.card-content { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; }
.card-content i { font-size: 30px; color: #00d2ff; }
.card-content span { font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 700; }

/* تلوين كل مجال عند تحديده ليعرف اللاعب عدد المجالات المختارة */
.category-card[data-category="sports"].selected { --sel: #ff1744; }
.category-card[data-category="math"].selected { --sel: #ff9100; }
.category-card[data-category="science"].selected { --sel: #00e676; }
.category-card[data-category="engineering"].selected { --sel: #00b0ff; }
.category-card[data-category="history"].selected { --sel: #b829ea; }
.category-card[data-category="geography"].selected { --sel: #ffd600; }
.category-card[data-category="philosophy"].selected { --sel: #ff4081; }
.category-card[data-category="all"].selected { --sel: #00f0ff; }
.category-card.selected {
    border-color: var(--sel, #00f0ff);
    background: linear-gradient(135deg, rgba(184, 41, 234, 0.45), rgba(0, 210, 255, 0.35));
    box-shadow: 0 0 22px var(--sel, #00f0ff);
    transform: translateY(-3px);
}
.category-card.selected .card-content i { color: #fff; transform: scale(1.15); }
.category-card.selected::after {
    content: '\2713';
    position: absolute; top: 8px; right: 10px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--sel, #00e676); color: #04121a;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 900;
}
.selection-info { text-align: center; margin: 16px 0 2px; color: #00d2ff; font-size: 14px; font-weight: 700; }

.dashboard-footer { display: flex; justify-content: space-between; gap: 20px; }
.nav-btn {
    flex: 1; padding: 12px 25px; border-radius: 12px; font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s ease;
}
.back-btn { background: rgba(15, 23, 42, 0.85); border: 1.5px solid rgba(0, 210, 255, 0.6); color: #00d2ff; }
.back-btn:hover { background: rgba(0, 210, 255, 0.2); color: #fff; }
.next-btn { background: linear-gradient(90deg, #b5179e 0%, #7209b7 50%, #00b4d8 100%); border: 1.5px solid rgba(255, 255, 255, 0.4); color: #fff; }

/* ================================================= */
/* 2.1 واجهة Premium & Support — طابع فضائي داكن      */
/* ================================================= */
/* الألوان مأخوذة من after03.png: كحل ليلي، بنفسجي، ماجنتا، برتقالي وذهبي */
#offersView {
    --offer-night: #020126;
    --offer-deep: #060241;
    --offer-purple: #6902BB;
    --offer-magenta: #9F1DA8;
    --offer-orange: #E58447;
    --offer-gold: #FACC74;
    position: fixed; inset: 0; width: 100%; height: 100vh;
    overflow-y: auto; overscroll-behavior: contain;
    padding: 24px clamp(14px, 4vw, 48px) 40px;
    background:
        radial-gradient(ellipse at 12% 4%, rgba(105, 2, 187, 0.55), transparent 45%),
        radial-gradient(ellipse at 88% 16%, rgba(229, 132, 71, 0.28), transparent 40%),
        radial-gradient(ellipse at 50% 105%, rgba(159, 29, 168, 0.30), transparent 55%),
        var(--offer-night);
}
#offersView::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.65;
    background-image:
        radial-gradient(1px 1px at 8% 18%, #fff, transparent),
        radial-gradient(1px 1px at 27% 62%, #c4b5fd, transparent),
        radial-gradient(1.5px 1.5px at 44% 12%, #ffe6a7, transparent),
        radial-gradient(1px 1px at 62% 48%, #fff, transparent),
        radial-gradient(1px 1px at 81% 76%, #a5f3fc, transparent),
        radial-gradient(1.5px 1.5px at 94% 34%, #ffd166, transparent);
}

.offers-shell {
    position: relative; z-index: 1; width: 100%; max-width: 1100px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 28px;
}
.offers-top-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.offers-back-btn { text-decoration: none; }
.offers-brand { display: flex; align-items: center; gap: 12px; text-align: left; }
.offers-brand-icon {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #ffd166; background: radial-gradient(circle at 35% 30%, rgba(217, 70, 239, 0.55), rgba(10, 12, 35, 0.95));
    border: 1.5px solid rgba(255, 209, 102, 0.8); box-shadow: 0 0 20px rgba(217, 70, 239, 0.55);
}
.offers-brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.offers-brand-text small { font-family: 'Orbitron', sans-serif; font-size: 10px; letter-spacing: 2px; color: #a5f3fc; }
.offers-brand-text strong {
    font-family: 'Orbitron', sans-serif; font-size: 18px;
    background: linear-gradient(90deg, #e9d5ff, #ffd166); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.offers-main { display: flex; flex-direction: column; gap: 34px; }
.offers-section {
    padding: 26px clamp(16px, 3vw, 30px) 30px; border-radius: 24px;
    background: linear-gradient(180deg, rgba(13, 12, 40, 0.88), rgba(6, 8, 24, 0.94));
    border: 1.5px solid rgba(217, 70, 239, 0.42);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(217, 70, 239, 0.12);
    backdrop-filter: blur(10px);
}
#supportSection { border-color: rgba(255, 183, 3, 0.45); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(255, 183, 3, 0.10); }
.offers-section-head { text-align: center; margin-bottom: 24px; }
.section-kicker {
    display: inline-block; margin-bottom: 8px; padding: 4px 16px; border-radius: 20px;
    font-family: 'Orbitron', sans-serif; font-size: 10px; letter-spacing: 2px; color: #e9d5ff;
    background: rgba(217, 70, 239, 0.16); border: 1px solid rgba(217, 70, 239, 0.6);
}
.section-kicker.gold { color: #ffd166; background: rgba(255, 183, 3, 0.12); border-color: rgba(255, 183, 3, 0.6); }
.offers-section-head h2 {
    font-family: 'Orbitron', sans-serif; font-size: clamp(20px, 3.4vw, 30px); font-weight: 900;
    background: linear-gradient(90deg, #e9d5ff, #fff, #ffd166); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.offers-section-head p { margin-top: 8px; font-size: 13px; color: #b8c4e6; line-height: 1.8; }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan-card {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 26px 18px 22px; border-radius: 20px; text-align: center; color: #fff;
    background: linear-gradient(180deg, rgba(31, 20, 70, 0.85), rgba(10, 12, 32, 0.95));
    border: 1.5px solid rgba(217, 70, 239, 0.45);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 0 24px rgba(217, 70, 239, 0.12);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.plan-card:hover { transform: translateY(-6px); border-color: #00d2ff; box-shadow: 0 0 28px rgba(0, 210, 255, 0.35); }
.plan-card.featured {
    border-color: rgba(255, 183, 3, 0.9);
    box-shadow: 0 0 34px rgba(255, 183, 3, 0.30), inset 0 0 30px rgba(255, 183, 3, 0.14);
}
.plan-card.featured:hover { border-color: #ffd166; box-shadow: 0 0 38px rgba(255, 183, 3, 0.5); }
.plan-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap;
    padding: 5px 14px; border-radius: 20px; font-family: 'Orbitron', sans-serif; font-size: 10px; font-weight: 700;
    color: #2b1a00; background: linear-gradient(90deg, #ffb703, #ffd166); box-shadow: 0 0 18px rgba(255, 183, 3, 0.65);
}
.plan-icon {
    width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #ffd166; background: radial-gradient(circle at 35% 30%, rgba(217, 70, 239, 0.5), rgba(9, 10, 30, 0.9));
    border: 1px solid rgba(255, 209, 102, 0.7); box-shadow: 0 0 16px rgba(217, 70, 239, 0.45);
}
.plan-card h3 { font-family: 'Orbitron', sans-serif; font-size: 16px; line-height: 1.4; margin-top: 6px; }
.plan-duration { font-size: 11px; letter-spacing: 1px; color: #a5f3fc; }
.plan-price {
    font-family: 'Orbitron', sans-serif; font-size: 22px; font-weight: 900; color: #ffd166;
    text-shadow: 0 0 16px rgba(255, 183, 3, 0.55); margin: 4px 0 6px;
}
.plan-price span { font-size: 34px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 7px; margin: 4px 0 18px; width: 100%; }
.plan-features li { font-size: 12px; color: #dbe4ff; line-height: 1.6; }
.plan-features i { color: #00d2ff; margin-right: 6px; }
.plan-features .ad-free-feature {
    display: flex; align-items: flex-start; gap: 8px; text-align: left;
    padding: 8px 10px; border-radius: 10px;
    background: rgba(105, 2, 187, 0.22); border: 1px solid rgba(250, 204, 116, 0.35);
}
.plan-features .ad-free-feature i { color: var(--offer-gold); margin-right: 0; margin-top: 2px; }
.feature-copy { display: flex; flex-direction: column; gap: 2px; }
.feature-copy small { font-size: 10px; color: #facc74; line-height: 1.6; }
.plan-btn { width: 100%; justify-content: center; margin-top: auto; }
.plan-card.is-selected {
    border-color: var(--offer-gold);
    box-shadow: 0 0 34px rgba(250, 204, 116, 0.45), inset 0 0 28px rgba(250, 204, 116, 0.16);
    transform: translateY(-6px);
}
.plan-btn[aria-pressed="true"] {
    background: linear-gradient(90deg, #FACC74, #E58447); color: #140b2b;
    border-color: #fff3b0; box-shadow: 0 0 22px rgba(250, 204, 116, 0.6);
}

.support-note {
    margin: 18px auto 0; max-width: 760px; text-align: center; font-size: 13px; line-height: 1.9;
    color: #f1e7ff; background: rgba(6, 2, 65, 0.7); border: 1px solid rgba(250, 204, 116, 0.35);
    border-radius: 14px; padding: 12px 16px;
}
.support-note i { color: var(--offer-gold); margin-right: 6px; }
.support-note small { display: block; font-size: 11px; color: #c9b6ef; margin-top: 2px; }

.support-options {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px; margin-top: 22px;
}
.support-tier { position: relative; cursor: pointer; }
.support-tier input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tier-body {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    height: 100%; min-height: 78px; padding: 12px 10px; border-radius: 14px; text-align: center;
    background: linear-gradient(160deg, rgba(105, 2, 187, 0.35), rgba(6, 2, 65, 0.9));
    border: 1.5px solid rgba(159, 29, 168, 0.55);
    box-shadow: inset 0 0 18px rgba(105, 2, 187, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.support-tier:hover .tier-body { transform: translateY(-3px); border-color: var(--offer-orange); }
.support-tier input:checked + .tier-body,
.support-tier.is-selected .tier-body {
    border-color: var(--offer-gold);
    background: linear-gradient(160deg, rgba(229, 132, 71, 0.32), rgba(105, 2, 187, 0.45));
    box-shadow: 0 0 22px rgba(250, 204, 116, 0.45), inset 0 0 20px rgba(250, 204, 116, 0.18);
}
.tier-amount {
    font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 17px; color: var(--offer-gold);
    text-shadow: 0 0 12px rgba(250, 204, 116, 0.45);
}
.tier-title { font-size: 12px; font-weight: 700; color: #f3e8ff; line-height: 1.6; }
.support-tier.custom-tier { grid-column: 1 / -1; }
.support-tier.custom-tier .tier-body { min-height: 90px; }

/* لوحة مستقلة لإدخال مبلغ مخصص: تظهر فقط عند اختيار Other Amount */
.custom-amount-panel {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(2, 1, 38, 0.86); backdrop-filter: blur(6px);
}
.custom-amount-panel[hidden] { display: none !important; }
.custom-amount-card {
    width: min(440px, 100%); padding: 30px 24px 26px; border-radius: 20px; text-align: center;
    background: linear-gradient(160deg, rgba(105, 2, 187, 0.85), rgba(6, 2, 65, 0.97));
    border: 1.5px solid var(--offer-gold);
    box-shadow: 0 0 48px rgba(250, 204, 116, 0.35), inset 0 0 26px rgba(105, 2, 187, 0.4);
}
.custom-amount-card h3 {
    margin: 0 0 8px; font-family: 'Orbitron', sans-serif; font-size: 20px; color: var(--offer-gold);
    text-shadow: 0 0 14px rgba(250, 204, 116, 0.5);
}
.custom-amount-card > p { margin: 0 0 20px; font-size: 13px; color: #f1e7ff; }
.custom-amount-field {
    display: flex; align-items: center; gap: 10px; direction: ltr;
    padding: 8px 12px; border-radius: 12px;
    background: rgba(2, 1, 38, 0.9); border: 1px solid var(--offer-gold);
}
.currency-prefix {
    font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 700; color: #facc74;
    user-select: none; -webkit-user-select: none; pointer-events: none; flex-shrink: 0;
}
.custom-amount-field input {
    flex: 1; min-width: 0; padding: 8px 6px; border: 0; outline: none; background: transparent;
    font-family: 'Orbitron', sans-serif; font-size: 16px; color: #fff; text-align: left;
}
.custom-amount-field input::placeholder { color: #a99fd0; font-family: 'Cairo', sans-serif; text-align: left; }
.custom-amount-field:focus-within { box-shadow: 0 0 16px rgba(250, 204, 116, 0.5); }
.custom-amount-error {
    margin: 12px 0 0; font-size: 12px; color: #ffb4b4; font-family: 'Cairo', sans-serif;
}
.custom-amount-error[hidden] { display: none; }
.custom-amount-actions {
    display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap;
}

@media (max-width: 860px) {
    .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    #offersView { padding: 16px 12px 30px; }
    .offers-shell { gap: 20px; }
    .offers-top-bar { justify-content: center; }
    .offers-brand { order: -1; width: 100%; justify-content: center; }
    .plan-grid { grid-template-columns: 1fr; }
    .support-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .tier-amount { font-size: 14px; }
    .tier-title { font-size: 10px; }
    .tier-body { min-height: 72px; padding: 10px 6px; }
}

/* ================================================= */
/* 3. ساحة بطولة الستريمرز (Streamers Championship)  */
/* ================================================= */
.hub-container {
    width: 100%; max-width: 1050px; margin: 0 auto; min-height: 88vh;
    display: flex; flex-direction: column; justify-content: space-between; gap: 15px;
}

.hub-top-bar { display: flex; justify-content: space-between; align-items: center; }

.neon-pill-btn {
    padding: 10px 22px; border-radius: 30px; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 13px;
    cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.3s; backdrop-filter: blur(8px);
}
.blue-pill { background: rgba(10, 20, 50, 0.85); border: 1.5px solid #00d2ff; color: #fff; box-shadow: 0 0 15px rgba(0, 210, 255, 0.4); }
.blue-pill:hover { background: #00d2ff; color: #050816; }
.gold-pill { background: rgba(45, 25, 5, 0.85); border: 1.5px solid #ffb703; color: #ffb703; box-shadow: 0 0 15px rgba(255, 183, 3, 0.4); }
.gold-pill:hover { background: #ffb703; color: #050816; }

.forfeit-alert {
    background: rgba(185, 28, 28, 0.9); border: 1.5px solid #fca5a5; color: #fff;
    padding: 8px 20px; border-radius: 20px; font-weight: 700; font-size: 13px;
    display: flex; align-items: center; gap: 10px; box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
    flex-wrap: wrap; max-width: 62vw; line-height: 1.6;
}

/* شارة Championship في المنتصف */
.championship-header { text-align: center; margin-top: 10px; }
.trophy-badge { font-size: 46px; color: #ffb703; filter: drop-shadow(0 0 20px rgba(255, 183, 3, 0.95)); margin-bottom: -10px; }
.championship-banner {
    display: inline-block; background: linear-gradient(180deg, rgba(16, 22, 58, 0.92), rgba(10, 14, 38, 0.95));
    border: 2px solid #ffb703; border-radius: 18px; padding: 12px 45px;
    box-shadow: 0 0 30px rgba(255, 183, 3, 0.5), inset 0 0 20px rgba(0, 210, 255, 0.3);
}
.champ-sub { display: block; font-family: 'Orbitron', sans-serif; font-style: italic; font-size: 20px; color: #e2e8f0; }
.champ-main {
    font-family: 'Orbitron', sans-serif; font-style: italic; font-weight: 900; font-size: 36px;
    background: linear-gradient(180deg, #fff3b0 0%, #ffb703 50%, #fb8500 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(255, 183, 3, 0.5));
}
.champ-ribbon {
    background: linear-gradient(90deg, #023e8a, #0077b6, #023e8a); border: 1px solid #00d2ff;
    color: #fff; font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 700;
    padding: 4px 25px; border-radius: 20px; margin-top: 5px; display: inline-block;
}

/* منصة الستريمرز وأزرارهم الأربعة */
.streamers-podium {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    background: rgba(8, 13, 36, 0.78); border: 1.5px solid rgba(0, 210, 255, 0.5);
    border-radius: 24px; padding: 25px 20px; backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), inset 0 0 25px rgba(0, 210, 255, 0.25);
}

.streamer-slot { display: flex; flex-direction: column; align-items: center; gap: 15px; }

.streamer-tag {
    width: 100%; text-align: center; padding: 8px 12px;
    background: linear-gradient(90deg, rgba(13, 27, 62, 0.95), rgba(27, 54, 115, 0.95), rgba(13, 27, 62, 0.95));
    border: 1.5px solid #00d2ff; color: #fff; font-family: 'Orbitron', sans-serif; font-style: italic;
    font-weight: 800; font-size: 17px; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}
.status-badge { display: block; font-size: 11px; font-style: normal; color: #4ade80; margin-top: 2px; }

/* أزرار Arcade ثلاثية الأبعاد (أحمر، أزرق، أخضر، بنفسجي) */
.arcade-btn {
    width: 115px; height: 68px; border-radius: 50%; border: 4px solid #1e293b;
    cursor: pointer; position: relative; transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.arcade-btn:active { transform: translateY(6px); }

.red-btn {
    background: radial-gradient(circle at 35% 30%, #ff758f, #e63946 60%, #9b2226 100%);
    box-shadow: 0 10px 0 #6a040f, 0 15px 25px rgba(230, 57, 70, 0.7);
}
.blue-btn {
    background: radial-gradient(circle at 35% 30%, #90e0ef, #0096c7 60%, #023e8a 100%);
    box-shadow: 0 10px 0 #03045e, 0 15px 25px rgba(0, 150, 199, 0.7);
}
.green-btn {
    background: radial-gradient(circle at 35% 30%, #80ed99, #2ec4b6 60%, #1b4332 100%);
    box-shadow: 0 10px 0 #081c15, 0 15px 25px rgba(46, 196, 182, 0.7);
}
.purple-btn {
    background: radial-gradient(circle at 35% 30%, #e0aaff, #9d4edd 60%, #3c096c 100%);
    box-shadow: 0 10px 0 #240046, 0 15px 25px rgba(157, 78, 221, 0.7);
}

/* الشريط السفلي للبطولة */
.hub-bottom-bar { display: flex; justify-content: space-between; align-items: center; gap: 15px; }

.side-hex-badge {
    background: rgba(11, 16, 42, 0.9); border: 1.5px solid #00d2ff; border-radius: 14px;
    padding: 10px 20px; text-align: center; color: #fff; min-width: 145px;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}
.hex-num { display: block; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 22px; color: #ffb703; }
.hex-label { font-size: 12px; font-weight: 600; color: #e2e8f0; line-height: 1.2; }

.results-gold-btn {
    flex: 1; max-width: 520px; padding: 15px 30px;
    background: linear-gradient(90deg, #3b1d02, #78350f, #3b1d02);
    border: 2px solid #ffb703; color: #fde68a; font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 17px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px;
    clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 22px 100%, 0 50%);
    box-shadow: 0 0 25px rgba(255, 183, 3, 0.6); transition: transform 0.25s;
}
.results-gold-btn:hover { transform: scale(1.03); color: #fff; }

/* ================================================= */
/* نافذة إدخال الكود (Modal)                         */
/* ================================================= */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(4, 7, 20, 0.85); backdrop-filter: blur(8px);
    z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px;
}
/* قاعدة عامة: نوافذ التحميل موجودة خارج #challenge5App أيضاً،
   فلا يكفي تعريف .hidden داخل حاوية اللعبة فقط. */
.hidden { display: none !important; }
.cyber-modal {
    width: 100%; max-width: 440px; background: rgba(13, 19, 48, 0.95);
    border: 2px solid #00d2ff; border-radius: 18px; padding: 28px; text-align: center; color: #fff;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.5);
}
.modal-header { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: 'Orbitron', sans-serif; font-size: 20px; margin-bottom: 10px; }
.modal-desc { font-size: 13px; color: #cbd5e1; }
.cyber-select {
    flex: 1; padding: 10px; background: #0f172a; border: 1px solid #00d2ff; border-radius: 8px; color: #fff; outline: none;
}
.error-msg { color: #f87171; font-size: 13px; min-height: 20px; margin-bottom: 12px; font-weight: 600; }
.modal-actions { display: flex; gap: 15px; }

/* ================================================= */
/* 4. واجهة الأسئلة (Quiz Arena - مطابق للصورة 4)    */
/* ================================================= */
.quiz-arena-container {
    width: 100%; max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px;
}

.quiz-top-hud { display: flex; justify-content: space-between; align-items: center; gap: 15px; }

.hud-box {
    background: rgba(10, 16, 44, 0.88); border: 1.5px solid #00d2ff; border-radius: 16px;
    padding: 10px 24px; color: #fff; display: flex; align-items: center; gap: 12px;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.35); backdrop-filter: blur(10px);
}
.timer-circle {
    width: 42px; height: 42px; border-radius: 50%; border: 3px solid #ffb703;
    display: flex; align-items: center; justify-content: center; color: #ffb703; font-size: 18px;
}
.timer-num { font-family: 'Orbitron', sans-serif; font-size: 28px; font-weight: 900; color: #fff; }
.timer-unit { font-size: 13px; color: #94a3b8; }
.player-hud { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 16px; border-color: #d946ef; }
.counter-hud { font-family: 'Orbitron', sans-serif; font-size: 15px; }

/* إطار السؤال الرئيسي */
.question-frame {
    position: relative; background: linear-gradient(180deg, rgba(13, 21, 58, 0.92), rgba(8, 13, 38, 0.95));
    border: 2px solid #00d2ff; padding: 38px 50px; text-align: center; color: #fff;
    clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 28px, 100% calc(100% - 28px), calc(100% - 28px) 100%, 28px 100%, 0 calc(100% - 28px), 0 28px);
    box-shadow: 0 0 35px rgba(0, 210, 255, 0.45), inset 0 0 25px rgba(0, 210, 255, 0.2);
}
.q-book-icon { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); font-size: 34px; color: rgba(0, 210, 255, 0.35); }
.q-bg-marks { position: absolute; right: 35px; top: 50%; transform: translateY(-50%); font-size: 48px; font-weight: 900; color: rgba(0, 210, 255, 0.15); }
.q-text { font-size: 26px; font-weight: 700; line-height: 1.5; direction: rtl; }

/* شبكة الخيارات الأربعة */
.options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; direction: rtl; }

.option-btn {
    background: rgba(12, 20, 52, 0.9); border: 1.5px solid #00d2ff; color: #fff;
    padding: 16px 28px; font-size: 19px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
    transition: all 0.25s ease; box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
}
.option-btn:hover { background: rgba(0, 210, 255, 0.22); transform: scale(1.02); }
.option-radio {
    width: 22px; height: 22px; border-radius: 50%; border: 2px solid #00d2ff; display: inline-block;
}
.option-btn.selected {
    background: linear-gradient(90deg, #7209b7, #0096c7); border-color: #ffb703;
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.7);
}
.option-btn.selected .option-radio { background: #ffb703; border-color: #fff; }

/* أزرار التحكم أسفل السؤال */
.quiz-bottom-hud { display: flex; justify-content: space-between; align-items: center; gap: 15px; }

.quiz-action-btn {
    padding: 13px 26px; border: none; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
    transition: 0.25s;
}
.red-exit-btn { background: linear-gradient(90deg, #7f1d1d, #dc2626, #7f1d1d); border: 1.5px solid #fca5a5; box-shadow: 0 0 20px rgba(220, 38, 38, 0.6); }
.red-exit-btn:hover { transform: scale(1.04); }
.blue-next-btn { background: linear-gradient(90deg, #023e8a, #0096c7, #023e8a); border: 1.5px solid #90e0ef; padding: 14px 45px; font-size: 17px; box-shadow: 0 0 25px rgba(0, 150, 199, 0.7); }
.blue-next-btn:hover { transform: scale(1.05); }
.amber-pause-btn {
    background: #ffd166; color: #2b1a00; border: 2px solid #fff3b0;
    box-shadow: 0 0 22px rgba(255, 209, 102, 0.75);
}
.amber-pause-btn:hover { background: #ffb703; color: #000; transform: scale(1.04); }

/* نتيجة الإجابة: أخضر للصحيح، أحمر للخطأ، والإجابة الصحيحة دائماً بالأخضر */
#quizArenaView .option-btn.correct {
    background: linear-gradient(90deg, #166534, #22c55e) !important;
    border-color: #4ade80 !important; color: #fff !important;
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.75) !important;
}
#quizArenaView .option-btn.wrong {
    background: linear-gradient(90deg, #7f1d1d, #ef4444) !important;
    border-color: #fca5a5 !important; color: #fff !important;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.75) !important;
}
#quizArenaView .option-btn.locked { cursor: not-allowed; }
#quizArenaView .option-btn.locked:hover { transform: none; }
.quiz-pause-overlay .pause-big-icon { font-size: 3rem; color: #f59e0b; }

/* ================================================= */
/* 5. واجهة النتائج والفائز (مطابق للصورة 5)         */
/* ================================================= */
.results-container {
    width: 100%; max-width: 960px; margin: 0 auto;
    background: rgba(9, 14, 38, 0.88); border: 2px solid #00d2ff; border-radius: 24px;
    padding: 25px 30px; backdrop-filter: blur(14px); box-shadow: 0 0 40px rgba(0, 210, 255, 0.45);
}

.results-header { text-align: center; margin-bottom: 22px; }
.crown-top-gold { font-size: 36px; color: #ffb703; filter: drop-shadow(0 0 15px #ffb703); }
.results-title-banner {
    display: inline-block; background: linear-gradient(90deg, #023e8a, #0077b6, #023e8a);
    border: 1.5px solid #00d2ff; color: #fff; font-size: 24px; font-weight: 900; padding: 6px 50px;
    clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0 50%);
}

.results-body-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 25px; align-items: center; }

.winner-showcase {
    background: radial-gradient(circle, rgba(255, 183, 3, 0.2), rgba(15, 23, 42, 0.9));
    border: 2px solid #ffb703; border-radius: 20px; padding: 25px 20px; text-align: center; color: #fff;
    box-shadow: 0 0 30px rgba(255, 183, 3, 0.4);
}
.winner-crown { font-size: 38px; color: #ffb703; margin-bottom: 5px; }
.rank-one-badge {
    width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%;
    background: linear-gradient(180deg, #fde047, #d97706); color: #050816;
    font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 28px;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px #ffb703;
}
.winner-name-plate { font-family: 'Orbitron', sans-serif; font-size: 26px; font-weight: 900; color: #fde047; margin-bottom: 10px; }
.winner-score-pill {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, 0.6);
    border: 1px solid #4ade80; padding: 6px 20px; border-radius: 20px; font-family: 'Orbitron', sans-serif; font-weight: 700;
}
.champion-ribbon {
    background: linear-gradient(90deg, #b45309, #f59e0b, #b45309); color: #fff; font-weight: 900;
    font-size: 18px; padding: 6px 20px; border-radius: 8px; margin: 14px 0 8px;
}
.congrats-text { font-size: 12px; color: #cbd5e1; }

.leaderboard-list { display: flex; flex-direction: column; gap: 12px; }
.rank-row {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(15, 23, 54, 0.92); border: 1.5px solid #00d2ff; border-radius: 14px;
    padding: 12px 20px; color: #fff;
}
.rank-row.rank-1 { border-color: #ffb703; background: linear-gradient(90deg, rgba(120, 53, 15, 0.5), rgba(15, 23, 54, 0.95)); }
.rank-left { display: flex; align-items: center; gap: 14px; }
.rank-medal {
    width: 34px; height: 34px; border-radius: 50%; background: #1e293b; border: 1.5px solid #ffb703;
    display: flex; align-items: center; justify-content: center; font-family: 'Orbitron', sans-serif; font-weight: 800; color: #ffb703;
}
.rank-player { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 17px; }
.rank-score { text-align: right; font-family: 'Orbitron', sans-serif; font-weight: 700; color: #fde047; }
.rank-percent { display: block; font-size: 11px; color: #94a3b8; }

.results-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.thanks-badge {
    background: rgba(15, 23, 42, 0.9); border: 1px solid #00d2ff; color: #fff;
    padding: 10px 22px; border-radius: 20px; font-size: 14px; font-weight: 700;
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 850px) {
    .streamers-podium, .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .options-grid, .results-body-grid { grid-template-columns: 1fr; }
    .quiz-top-hud, .quiz-bottom-hud, .hub-bottom-bar { flex-direction: column; }
}

/* ================================================= */
/* 6. وضع Streamers Challenge 5                       */
/* كل القواعد محصورة داخل #challenge5App حتى لا تؤثر  */
/* على الواجهات الأساسية (login/dashboard/hub/...)     */
/* ================================================= */
#challenge5App {
    --neon-cyan: #00f0ff;
    --neon-purple: #b829ea;
    --neon-orange: #ff8c00;
    --tunisia-red: #e70013;
    --success: #00e676;
    --danger: #ff1744;
    --card-bg: rgba(15, 22, 48, 0.85);
    --text-muted: #9aa5ce;
}

#challenge5App .page { display: none; min-height: 88vh; padding: 25px 15px; animation: c5FadeIn 0.35s ease; }
#challenge5App .page.active { display: flex; flex-direction: column; justify-content: center; align-items: center; }
@keyframes c5FadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

#challenge5App .container { width: 100%; max-width: 960px; margin: 0 auto; }
#challenge5App .glass-card {
    background: var(--card-bg); backdrop-filter: blur(14px);
    border: 1.5px solid rgba(0, 240, 255, 0.35); border-radius: 18px;
    padding: 28px; box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
}

/* 6.1 عناوين الوضع */
#challenge5App .top-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 25px; border-radius: 30px; background: rgba(12, 18, 42, 0.9);
    border: 2px solid var(--neon-cyan); box-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
    margin-bottom: 12px; font-family: 'Orbitron', sans-serif; font-weight: 700; color: #fff;
}
#challenge5App .sub-banner {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 10px 20px; border-radius: 25px; background: rgba(35, 20, 10, 0.85);
    border: 1.5px solid var(--neon-orange); color: #ffb74d; margin-bottom: 22px; font-weight: 600;
}
#challenge5App .neon-cyan { color: var(--neon-cyan); }
#challenge5App .neon-purple { color: var(--neon-purple); }

#challenge5App .nav-buttons-row { display: flex; justify-content: space-between; gap: 15px; margin-top: 20px; }
#challenge5App .nav-buttons-row button { flex: 1; }

/* 6.2 أزرار الوضع الجديد */
#challenge5App button {
    cursor: pointer; border: none; border-radius: 10px; padding: 12px 22px;
    font-weight: 600; font-size: 0.95rem; transition: 0.25s ease;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
#challenge5App button:disabled { opacity: 0.45; cursor: not-allowed; }
#challenge5App .full-width { width: 100%; }
#challenge5App .btn-gradient {
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    color: #fff; box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}
#challenge5App .btn-gradient:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 22px rgba(0, 240, 255, 0.65); }
#challenge5App .btn-outline { background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
#challenge5App .btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
#challenge5App .btn-dark { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
#challenge5App .btn-dark:hover { background: rgba(255, 255, 255, 0.2); }
#challenge5App .btn-warning { background: #ff9800; color: #000; }
#challenge5App .btn-danger { background: var(--danger); color: #fff; }

/* شريط المطور في أسفل صفحة اختيار المجالات */
.developer-bar {
    margin-top: 26px; padding: 14px 24px; background: rgba(10, 14, 34, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.3); border-radius: 50px;
    display: flex; align-items: center; justify-content: space-between;
}
.social-link {
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 1.4rem; color: #fff; text-decoration: none; transition: 0.3s;
}
.social-link.insta {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 0 12px rgba(214, 36, 159, 0.6);
}
.social-link.tiktok { background: #000; border: 1.5px solid #00f0ff; box-shadow: -2px -2px 0 #ff0050, 2px 2px 0 #00f2ea; }
.social-link:hover { transform: scale(1.12); }
.dev-credit { font-size: 0.95rem; color: #9aa5ce; letter-spacing: 0.5px; }
.dev-credit span { color: #fff; font-weight: 700; text-shadow: 0 0 10px #00f0ff; }

/* 6.4 إعداد اللاعبين والصعوبة */
#challenge5App .modes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 22px; }
#challenge5App .mode-box {
    background: rgba(255, 255, 255, 0.04); border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px; padding: 18px; text-align: center; transition: 0.25s; color: #fff;
}
#challenge5App .mode-box.active { border-color: var(--neon-cyan); background: rgba(0, 240, 255, 0.08); box-shadow: 0 0 18px rgba(0, 240, 255, 0.25); }
#challenge5App .mode-icon { font-size: 2rem; color: var(--neon-cyan); margin-bottom: 8px; }
#challenge5App .mode-box p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
#challenge5App .multi-radios { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
#challenge5App .radio-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px;
    background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer; font-size: 0.85rem; color: #fff;
}
#challenge5App .radio-pill input { display: none; }
#challenge5App .radio-pill.active { background: var(--neon-cyan); color: #000; font-weight: 700; border-color: var(--neon-cyan); }
#challenge5App .setup-section { margin-bottom: 20px; }
#challenge5App .setup-section h4 { margin-bottom: 12px; color: var(--neon-cyan); font-size: 0.95rem; }
#challenge5App .difficulty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
#challenge5App .diff-card {
    display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.05); border: 1.5px solid rgba(255, 255, 255, 0.15);
    cursor: pointer; transition: 0.25s; color: #fff;
}
#challenge5App .diff-card small { display: block; font-size: 0.72rem; color: var(--text-muted); }
#challenge5App .diff-card.easy.active { border-color: #00e676; background: rgba(0, 230, 118, 0.15); }
#challenge5App .diff-card.medium.active { border-color: #00b0ff; background: rgba(0, 176, 255, 0.15); }
#challenge5App .diff-card.hard.active { border-color: #d500f9; background: rgba(213, 0, 249, 0.15); }
#challenge5App .diff-card.legendary.active { border-color: #ff9100; background: rgba(255, 145, 0, 0.15); }
#challenge5App .players-inputs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
#challenge5App .player-input-wrap { position: relative; display: flex; align-items: center; }
#challenge5App .player-input-wrap i { position: absolute; left: 12px; color: var(--neon-cyan); }
#challenge5App .player-input-wrap input { padding-left: 36px; }
#challenge5App input[type="email"],
#challenge5App input[type="password"],
#challenge5App input[type="text"] {
    width: 100%; padding: 12px 15px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08); color: #fff; outline: none; transition: 0.3s;
}
#challenge5App input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 12px rgba(0, 240, 255, 0.3); }

/* 6.5 واجهة الأسئلة */
#challenge5App .quiz-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
#challenge5App .quiz-controls { display: flex; gap: 10px; }
#challenge5App .question-progress { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; color: var(--neon-cyan); }
#challenge5App .timer-box {
    background: rgba(0, 0, 0, 0.6); border: 2px solid var(--neon-cyan); padding: 8px 18px;
    border-radius: 25px; font-family: 'Orbitron', sans-serif; font-size: 1.2rem; font-weight: 700; color: #fff;
}
#challenge5App .timer-box.danger-time { border-color: var(--danger); color: var(--danger); animation: c5Pulse 0.8s infinite; }
@keyframes c5Pulse { 50% { transform: scale(1.06); } }
#challenge5App .turn-banner {
    background: linear-gradient(90deg, rgba(184, 41, 234, 0.3), rgba(0, 240, 255, 0.3));
    border: 1px solid var(--neon-cyan); border-radius: 12px; padding: 12px 20px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #fff;
}
#challenge5App .turn-banner strong { color: #ffd700; font-size: 1.15rem; }
#challenge5App .cat-badge {
    background: rgba(0, 0, 0, 0.5); padding: 4px 12px; border-radius: 20px;
    font-size: 0.8rem; border: 1px solid var(--neon-orange); color: var(--neon-orange);
}
#challenge5App .question-card h2 { font-size: 1.35rem; margin-bottom: 22px; line-height: 1.5; color: #fff; }

#challenge5App .options-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 14px; direction: ltr;
}
#challenge5App .option-btn {
    background: rgba(255, 255, 255, 0.07); border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #fff; padding: 16px 20px; border-radius: 12px; text-align: left; justify-content: flex-start;
    font-size: 1rem; font-weight: 600; transition: 0.2s;
    clip-path: none; box-shadow: none; display: inline-flex; align-items: center;
}
#challenge5App .option-btn:hover:not(:disabled) { border-color: var(--neon-cyan); background: rgba(0, 240, 255, 0.15); }
#challenge5App .option-btn.correct {
    background: rgba(0, 230, 118, 0.25) !important; border-color: var(--success) !important;
    color: #fff !important; box-shadow: 0 0 18px rgba(0, 230, 118, 0.5) !important;
}
#challenge5App .option-btn.wrong {
    background: rgba(255, 23, 68, 0.25) !important; border-color: var(--danger) !important;
    color: #fff !important; box-shadow: 0 0 18px rgba(255, 23, 68, 0.5) !important;
}
#challenge5App .feedback-banner {
    margin-top: 18px; padding: 12px 16px; border-radius: 10px;
    background: rgba(0, 240, 255, 0.12); border-left: 4px solid var(--neon-cyan); font-weight: 600; color: #fff;
}
#challenge5App .quiz-footer { margin-top: 22px; display: flex; justify-content: flex-end; }
#challenge5App .scoreboard { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
#challenge5App .score-pill {
    background: rgba(15, 22, 48, 0.9); border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 14px; border-radius: 10px; font-size: 0.85rem; color: #fff;
}
#challenge5App .score-pill.active-turn { border-color: #ffd700; box-shadow: 0 0 12px rgba(255, 215, 0, 0.35); }

/* 6.6 النوافذ المنبثقة */
#challenge5App .modal-overlay {
    position: fixed; inset: 0; background: rgba(4, 6, 18, 0.88); display: flex;
    align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
#challenge5App .modal-box { max-width: 420px; width: 100%; text-align: center; }
#challenge5App .pause-big-icon { font-size: 3.5rem; color: #ff9800; margin-bottom: 12px; }
#challenge5App .big-trophy { font-size: 3.5rem; margin-bottom: 10px; }
#challenge5App .rankings-list { margin: 18px 0; text-align: left; }
#challenge5App .rank-item {
    display: flex; justify-content: space-between; padding: 10px 14px;
    background: rgba(255, 255, 255, 0.07); border-radius: 8px; margin-bottom: 8px; color: #fff;
}
/* تم نقل قاعدة .hidden إلى الأعلى لتطبيقها على كل النوافذ، بما فيها شاشة البطولة. */

@media (max-width: 600px) {
    #challenge5App .nav-buttons-row, #challenge5App .quiz-header { flex-direction: column; }
    #challenge5App .options-grid { grid-template-columns: 1fr; }
}

/* ================================================= */
/* 7. توافق كامل مع الهاتف والتابلت والشاشات الكبيرة  */
/*    تعديل طريقة العرض فقط؛ الألوان والخطوط والشعار   */
/*    والتأثيرات الأصلية تبقى كما هي.                  */
/* ================================================= */
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100dvh; }
.view-container { min-width: 0; }
img, svg, video { max-width: 100%; }
button, a, input, select { touch-action: manipulation; }

@media (max-width: 900px) {
    body,
    body.dashboard-bg,
    body.streamers-bg,
    body.offers-bg {
        padding-left: clamp(14px, 4vw, 40px);
        padding-right: clamp(14px, 4vw, 40px);
    }

    button, .neon-pill-btn, .radio-pill, .social-link, .verify-link {
        min-height: 44px;
    }
    .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
    #playMusicBtn, #nextSongBtn { width: 44px !important; height: 44px !important; flex: 0 0 44px; }

    .categories-grid { gap: 12px; }
    .category-card { padding: 16px 10px; min-height: 96px; }
    .card-content i { font-size: 26px; }
    .card-content span { font-size: 12px; overflow-wrap: anywhere; }

    .banner-inner { padding: 11px 16px; gap: 10px; }
    .banner-title { font-size: clamp(14px, 3.2vw, 20px); }
    .banner-icon-left { font-size: 22px; }
    .play-circle { flex: 0 0 30px; width: 30px; height: 30px; }
    .banner-crown { left: 20%; top: -15px; font-size: 20px; }

    .quiz-arena-container,
    .results-container,
    .hub-container,
    #challenge5App .container { max-width: 100%; }
}

@media (max-width: 700px) {
    body,
    body.dashboard-bg,
    body.streamers-bg,
    body.offers-bg {
        align-items: flex-start;
        justify-content: center;
        padding-top: calc(env(safe-area-inset-top) + 16px);
        padding-right: 14px;
        padding-bottom: calc(env(safe-area-inset-bottom) + 28px);
        padding-left: 14px;
    }

    .main-container { margin: 0 auto; }
    .login-box { padding: 24px 18px 22px; }
    .title-top { font-size: clamp(26px, 8vw, 32px); }
    .title-bottom { font-size: clamp(21px, 6.6vw, 27px); }
    .tagline { font-size: 9px; letter-spacing: 1.5px; }
    .welcome-text h2 { font-size: 21px; }
    .input-group input,
    .cyber-select,
    #challenge5App input[type="email"],
    #challenge5App input[type="password"],
    #challenge5App input[type="text"] {
        min-height: 46px;
    }
    .btn-signin,
    .btn-google,
    .nav-btn,
    .neon-pill-btn,
    .results-gold-btn,
    .quiz-action-btn,
    #challenge5App button,
    .recover-error-btn,
    .profile-toggle,
    .verify-link,
    #challenge5App .radio-pill {
        min-height: 44px;
    }
    .verify-link,
    #challenge5App .radio-pill { display: inline-flex; align-items: center; justify-content: center; }
    .footer-links {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
        gap: 4px 10px; line-height: 1.8;
    }
    .footer-links .sep { display: none; }
    .verify-lead, .verify-steps li { line-height: 1.8; }

    .dashboard-container { padding-top: 46px; gap: 16px; }
    .user-panel {
        top: calc(env(safe-area-inset-top) + 10px);
        right: calc(env(safe-area-inset-right) + 10px);
    }
    .dashboard-footer { flex-direction: column; gap: 10px; }
    .developer-bar { flex-wrap: wrap; justify-content: center; gap: 10px; border-radius: 18px; padding: 12px; }
    .dev-credit { width: 100%; text-align: center; }

    .hub-container { gap: 16px; padding-top: env(safe-area-inset-top); }
    .hub-top-bar { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .hub-top-bar .neon-pill-btn { flex: 1 1 130px; }
    .forfeit-alert { order: 3; width: 100%; max-width: none; justify-content: center; text-align: center; }
    .championship-banner { padding: 10px 18px; max-width: 100%; }
    .champ-sub { font-size: 15px; }
    .champ-main { font-size: clamp(24px, 8vw, 36px); }
    .champ-ribbon { font-size: 11px; padding: 4px 14px; }
    .trophy-badge { font-size: 34px; }
    .streamers-podium { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px 12px; }
    .streamer-slot { gap: 10px; min-width: 0; }
    .streamer-tag { font-size: clamp(12px, 3.8vw, 17px); padding: 8px 6px; overflow-wrap: anywhere; }
    .arcade-btn { width: min(100%, 115px); height: 64px; }
    .hub-bottom-bar { flex-direction: column; align-items: stretch; }
    .side-hex-badge { width: 100%; min-width: 0; }
    .results-gold-btn { width: 100%; max-width: none; padding: 13px 16px; font-size: clamp(13px, 4vw, 17px); text-align: center; }

    .modal-overlay {
        align-items: flex-start;
        padding: calc(env(safe-area-inset-top) + 14px) 14px calc(env(safe-area-inset-bottom) + 14px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .cyber-modal,
    #challenge5App .modal-box {
        width: 100%; max-width: 440px; margin: auto;
        max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px);
        overflow-y: auto; padding: 22px 18px;
    }
    .modal-actions,
    #challenge5App .nav-buttons-row,
    #adminTimerSetup > div { flex-direction: column; }
    .modal-actions .nav-btn,
    .modal-actions button { width: 100%; }
    .modal-header { font-size: 17px; }

    .quiz-top-hud {
        display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .hud-box { min-width: 0; padding: 8px 6px; gap: 6px; justify-content: center; text-align: center; }
    .timer-circle { flex: 0 0 32px; width: 32px; height: 32px; font-size: 14px; border-width: 2px; }
    .timer-num { font-size: 21px; }
    .timer-unit { display: none; }
    .player-hud { font-size: 12px; }
    .counter-hud { font-size: 11px; }
    #activePlayerName { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .question-frame { padding: 22px 16px; }
    .q-book-icon, .q-bg-marks { display: none; }
    .q-text { font-size: clamp(18px, 5vw, 26px); line-height: 1.6; overflow-wrap: anywhere; }
    .options-grid { grid-template-columns: 1fr; gap: 10px; }
    .option-btn {
        min-height: 52px; padding: 14px 16px;
        font-size: clamp(15px, 4.2vw, 19px); text-align: right;
        overflow-wrap: anywhere;
    }
    .option-radio { flex: 0 0 22px; }
    .quiz-bottom-hud { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .quiz-bottom-hud .blue-next-btn { grid-column: 1 / -1; grid-row: 1; }
    .quiz-action-btn { justify-content: center; padding: 12px 14px; font-size: 14px; text-align: center; }

    .results-container { padding: 18px 14px; }
    .results-title-banner { font-size: clamp(18px, 5vw, 24px); padding: 6px 24px; }
    .winner-name-plate { font-size: clamp(20px, 6vw, 26px); overflow-wrap: anywhere; }
    .rank-row { padding: 10px 12px; gap: 8px; }
    .rank-left { min-width: 0; }
    .rank-player { font-size: 14px; overflow-wrap: anywhere; }
    .results-footer { flex-direction: column; gap: 10px; }
    .results-footer .neon-pill-btn,
    .thanks-badge { width: 100%; text-align: center; }

    #offersView { height: 100vh; height: 100dvh; padding-top: calc(env(safe-area-inset-top) + 16px); }
    .offers-top-bar { justify-content: center; }
    .offers-top-bar .neon-pill-btn { flex: 1 1 140px; }
    .offers-brand { order: -1; width: 100%; justify-content: center; }
    .offers-section { border-radius: 18px; }
    .custom-amount-panel {
        align-items: flex-start;
        padding: calc(env(safe-area-inset-top) + 14px) 14px calc(env(safe-area-inset-bottom) + 14px);
        overflow-y: auto;
    }
    .custom-amount-card {
        margin: auto; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px);
        overflow-y: auto; padding: 24px 18px 20px;
    }
    .custom-amount-actions { flex-direction: column; }
    .custom-amount-actions button { width: 100%; }

    #challenge5App .page { padding: 18px 12px; }
    #challenge5App .glass-card { padding: 20px 14px; }
    #challenge5App .top-banner,
    #challenge5App .sub-banner { flex-wrap: wrap; justify-content: center; text-align: center; padding: 10px 14px; }
    #challenge5App .modes-grid,
    #challenge5App .difficulty-grid,
    #challenge5App .players-inputs-grid { grid-template-columns: 1fr; }
    #challenge5App .question-card h2 { font-size: clamp(18px, 5vw, 22px); overflow-wrap: anywhere; }
    #challenge5App .turn-banner { align-items: flex-start; }
    #challenge5App .rank-item { gap: 10px; overflow-wrap: anywhere; }

    /* مشغّل الموسيقى: تصغيره على الهاتف دون تغيير سلوك الأغاني أو أزراره */
    #musicPlayerWidget {
        left: calc(env(safe-area-inset-left) + 10px) !important;
        bottom: calc(env(safe-area-inset-bottom) + 10px) !important;
        max-width: calc(100vw - 20px); padding: 6px 10px !important; gap: 8px !important;
    }
    #musicPlayerWidget > div { max-width: min(42vw, 150px) !important; font-size: 10px !important; }
    #playMusicBtn, #nextSongBtn { width: 44px !important; height: 44px !important; flex: 0 0 44px; }
}

@media (max-width: 420px) {
    .login-box { padding: 20px 14px 18px; }
    .categories-grid { gap: 9px; }
    .category-card { padding: 13px 6px; min-height: 88px; }
    .card-content i { font-size: 23px; }
    .card-content span { font-size: 11px; }
    .support-options { grid-template-columns: 1fr 1fr; }
    .quiz-top-hud { grid-template-columns: 1fr 1fr; }
    .quiz-top-hud .counter-hud { grid-column: 1 / -1; }
    .streamers-podium { gap: 10px; padding: 14px 10px; }
    .arcade-btn { height: 58px; }
}

/* الأجهزة اللمسية: حد أدنى مساحة للنقر حتى في الوضع الأفقي أو التابلت */
@media (pointer: coarse) {
    button, .neon-pill-btn, .radio-pill, .category-card, .support-tier,
    .footer-links a, .social-link, .verify-link {
        min-height: 44px;
    }
    .footer-links a, .verify-link { display: inline-flex; align-items: center; }
    #playMusicBtn, #nextSongBtn { width: 44px !important; height: 44px !important; flex: 0 0 44px; }
}

@media (max-height: 520px) and (orientation: landscape) {
    body,
    body.dashboard-bg,
    body.streamers-bg,
    body.offers-bg { padding-top: 10px; padding-bottom: 14px; }
    .logo-section { margin-bottom: 8px; }
    .crown-icon { font-size: 22px; margin-bottom: -4px; }
    .welcome-text { margin-bottom: 10px; }
    .verify-steps { margin: 8px 0 0; padding: 8px 12px 8px 28px; }
    .verify-icon { width: 48px; height: 48px; font-size: 22px; margin-bottom: 6px; }
    .trophy-badge { font-size: 28px; margin-bottom: 0; }
    .question-frame { padding: 14px; }
    #challenge5App .page { padding: 10px; }
}