/* خطوط وأنماط اللعبة الأساسية */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Tajawal:wght@400;500;700;900&display=swap');

:root {
    --primary: #ff9800;
    --primary-dark: #e65100;
    --accent: #ffd54f;
    --bg-dark: #1e1e24;
    --card-bg: rgba(33, 33, 40, 0.95);
    --hud-bg: rgba(25, 25, 32, 0.88);
    --border-color: rgba(255, 255, 255, 0.15);
    --danger: #f44336;
    --success: #4caf50;
    --gold: #ffc107;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

html {
    width: 100%;
    height: 100%;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    background: radial-gradient(circle at center, #2e3440 0%, #1a1c23 100%);
    font-family: 'Tajawal', 'Cairo', sans-serif;
    color: #f0f2f5;
    direction: rtl;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 10px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* الحاوية الكبرى الحاضنة للعبة والإعلانات الجانبية (Sidebar Ads Layout) */
.game-layout-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

@media (min-width: 1240px) {
    .game-layout-wrapper {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        max-width: 1320px;
        gap: 16px;
    }
}

/* حاوية اللعبة المركزية */
.game-container {
    width: 100%;
    max-width: 880px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .game-container {
        max-width: 100%;
        gap: 8px;
    }
}

/* شريط الرأس ومعلومات اللعبة (HUD) */
.hud-bar {
    width: 100%;
    background: var(--hud-bg);
    backdrop-filter: blur(8px);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hud-bar {
        padding: 8px 12px;
        gap: 8px;
        border-radius: 12px;
    }

    .hud-group {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
    }

    .level-title-badge {
        font-size: 0.82rem;
        padding: 4px 10px;
    }

    .heart-container {
        font-size: 1.15rem;
        gap: 3px;
    }

    .hud-item {
        font-size: 0.92rem;
        gap: 4px;
    }

    .hud-label {
        font-size: 0.8rem;
    }

    .hud-actions {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        margin-top: 2px;
    }

    .hud-winners-badge,
    .hud-withdraw-badge,
    .hud-voucher-badge,
    .hud-earnings-badge {
        font-size: 0.74rem;
        padding: 4px 8px;
        border-radius: 8px;
    }

    .hud-btn {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 6px 4px;
        padding-top: max(6px, env(safe-area-inset-top));
        padding-bottom: max(6px, env(safe-area-inset-bottom));
        padding-left: max(4px, env(safe-area-inset-left));
        padding-right: max(4px, env(safe-area-inset-right));
    }

    .hud-bar {
        padding: 6px 8px;
        gap: 6px;
    }

    .hud-group {
        gap: 4px;
    }

    .level-title-badge {
        font-size: 0.75rem;
        padding: 3px 7px;
    }

    .heart-container {
        font-size: 1rem;
        gap: 2px;
    }

    .hud-item {
        font-size: 0.82rem;
        gap: 2px;
    }

    /* إخفاء الأزرار المكررة من شريط HUD على الشاشات الصغيرة لتجنب كسر السطر وتوفير المساحة */
    #btnOpenWithdrawalModal,
    #btnOpenVoucherStore {
        display: none !important;
    }

    .hud-actions {
        justify-content: space-between;
    }

    .hud-winners-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    .hud-earnings-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

.hud-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
}

.hud-label {
    color: #90a4ae;
    font-size: 0.95rem;
}

.level-title-badge {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(245, 124, 0, 0.4);
}

.heart-container {
    display: flex;
    gap: 5px;
    font-size: 1.4rem;
}

.heart.empty {
    filter: grayscale(1) opacity(0.35);
}

/* أزرار الإجراءات في الشريط */
.hud-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* شارة الأرباح ومحفظة الإعلانات */
.hud-earnings-badge {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    border: 1px solid #4caf50;
    color: #a5d6a7;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.hud-earnings-badge:hover {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

.hud-earnings-value {
    color: #ffd54f;
    font-weight: 900;
}

.hud-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 1.1rem;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hud-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hud-btn:active {
    transform: translateY(1px);
}

/* لوحة اللعبة (Canvas) */
.canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 860 / 560;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(255, 152, 0, 0.3);
    touch-action: none;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .canvas-wrapper {
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 152, 0, 0.3);
    }
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* أدوات التحكم اللمسية (D-pad) للهواتف والشاشات اللمسية */
.mobile-controls {
    display: none; /* تظهر تلقائياً عبر Media Query أو الكشف البرمجي للجوال */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    margin-bottom: 8px;
    z-index: 25;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

/* إظهار أدوات التحكم فوراً على كل شاشات الهواتف والتابلت وأي جهاز يدعم اللمس */
@media (max-width: 992px), (hover: none) and (pointer: coarse), (pointer: coarse) {
    .mobile-controls {
        display: flex !important;
    }
}

/* إظهار أدوات التحكم إذا تم تفعيل نمط الجوال أو اللمس عبر الفحص البرمجي */
body.is-mobile .mobile-controls,
body.has-touch .mobile-controls,
.mobile-controls.force-show {
    display: flex !important;
}

.dpad-container {
    direction: ltr !important;
    display: grid;
    grid-template-columns: repeat(3, 64px);
    grid-template-rows: repeat(3, 64px);
    gap: 8px;
    padding: 10px;
    background: rgba(22, 25, 35, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 152, 0, 0.4);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.dpad-btn {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    color: #fff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    cursor: pointer;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    transition: transform 0.08s ease, background 0.1s ease, border-color 0.1s ease, box-shadow 0.1s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    -webkit-tap-highlight-color: transparent;
}

.dpad-btn:hover {
    background: linear-gradient(145deg, rgba(255, 152, 0, 0.35), rgba(255, 152, 0, 0.15));
    border-color: rgba(255, 152, 0, 0.6);
}

.dpad-btn:active,
.dpad-btn.active {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    border-color: #ffe082 !important;
    transform: scale(0.91) !important;
    box-shadow: 0 2px 6px rgba(245, 124, 0, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

.dpad-btn.up {
    grid-column: 2;
    grid-row: 1;
}

.dpad-btn.left {
    grid-column: 1;
    grid-row: 2;
}

.dpad-btn.center-action {
    grid-column: 2;
    grid-row: 2;
    background: rgba(255, 152, 0, 0.15);
    border-color: rgba(255, 152, 0, 0.35);
    font-size: 1.5rem;
}

.dpad-btn.right {
    grid-column: 3;
    grid-row: 2;
}

.dpad-btn.down {
    grid-column: 2;
    grid-row: 3;
}

.mobile-controls-hint {
    font-size: 0.82rem;
    color: #ffd54f;
    margin-top: 8px;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

@media (max-width: 480px) {
    .dpad-container {
        grid-template-columns: repeat(3, 56px);
        grid-template-rows: repeat(3, 56px);
        gap: 6px;
        padding: 8px;
        border-radius: 20px;
    }
    .dpad-btn {
        font-size: 1.4rem;
        border-radius: 13px;
    }
}

/* بطاقة الدليل والتعليمات أسفل اللعبة */
.game-guide-card {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 12px;
    font-size: 0.95rem;
    color: #b0bec5;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-icon {
    font-size: 1.3rem;
}

/* النوافذ المنبثقة (Modals) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    background: linear-gradient(145deg, #262933, #1e2029);
    border: 2px solid rgba(255, 152, 0, 0.4);
    border-radius: 24px;
    padding: 32px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.modal-title.gold {
    color: var(--accent);
}

.modal-title.danger {
    color: var(--danger);
}

.modal-text {
    font-size: 1.1rem;
    color: #cfd8dc;
    line-height: 1.6;
}

.modal-avatar {
    font-size: 4rem;
    animation: bounce 1.2s infinite alternate ease-in-out;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.stars-rating {
    font-size: 2.2rem;
    color: var(--gold);
    letter-spacing: 4px;
}

/* شبكة اختيار المراحل */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
    max-height: 340px;
    overflow-y: auto;
    padding: 8px;
}

.level-card {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.level-card.unlocked:hover {
    background: rgba(255, 152, 0, 0.2);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.level-card.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.level-number {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
}

.level-card-title {
    font-size: 0.75rem;
    color: #b0bec5;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

.level-stars {
    font-size: 0.85rem;
    color: #ffc107;
}

.star-icon {
    color: #555;
}

.star-icon.active {
    color: #ffc107;
}

/* أزرار الإجراءات الرئيسية */
.btn-action {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 12px 28px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.4);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-action:hover {
    background: linear-gradient(135deg, #ffa726, #fb8c00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.6);
}

.btn-action:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #eceff1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 10px 22px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

/* أزرار الإعلانات بمكافأة المتوهجة */
.btn-rewarded-ad {
    background: linear-gradient(135deg, #ffd700, #ff8f00);
    color: #1a1a24;
    border: 2px solid #fff;
    border-radius: 14px;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    animation: adPulse 2s infinite;
}

@keyframes adPulse {
    0% { transform: scale(1); box-shadow: 0 0 14px rgba(255, 215, 0, 0.4); }
    50% { transform: scale(1.03); box-shadow: 0 0 24px rgba(255, 215, 0, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 14px rgba(255, 215, 0, 0.4); }
}

.btn-rewarded-ad:hover {
    background: linear-gradient(135deg, #fff176, #ffa000);
    transform: translateY(-2px) scale(1.04);
}

/* بنرات الإعلانات أعلى وأسفل اللعبة */
.ad-banner-slot {
    width: 100%;
    max-width: 860px;
    min-height: 80px;
    background: rgba(22, 24, 32, 0.85);
    border: 1px dashed rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.ad-banner-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 0.68rem;
    color: #90a4ae;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
}

.ad-demo-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    width: 100%;
    justify-content: space-between;
}

.ad-demo-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-demo-icon {
    font-size: 2.2rem;
}

.ad-demo-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}

.ad-demo-subtitle {
    font-size: 0.82rem;
    color: #b0bec5;
}

.ad-demo-cta {
    background: #00e5ff;
    color: #002b36;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s;
}

.ad-demo-cta:hover {
    background: #80d8ff;
}

@media (max-width: 600px) {
    .ad-banner-slot {
        min-height: auto;
        padding: 6px;
    }

    .ad-demo-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 8px 6px;
    }

    .ad-demo-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
    }

    .ad-demo-title {
        font-size: 0.88rem;
    }

    .ad-demo-subtitle {
        font-size: 0.75rem;
    }

    .ad-demo-cta {
        width: 100%;
        text-align: center;
        padding: 6px 12px;
        font-size: 0.82rem;
    }
}

/* ========================================================
   المساحات الإعلانية الجديدة: الجانبية (Sidebars) وللهواتف (Mobile)
   ======================================================== */

/* الإعلانات الجانبية العمودية (Desktop / Tablet Skyscraper: 160x600) */
.sidebar-ad-slot {
    width: 160px;
    min-width: 160px;
    min-height: 600px;
    max-height: 650px;
    background: rgba(22, 24, 32, 0.9);
    border: 1px dashed rgba(255, 215, 0, 0.35);
    border-radius: 14px;
    position: sticky;
    top: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 16px 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    z-index: 20;
    box-sizing: border-box;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-ad-slot:hover {
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 10px 28px rgba(255, 152, 0, 0.25);
}

.sidebar-ad-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-top: 15px;
    width: 100%;
}

.sidebar-ad-icon {
    font-size: 2.8rem;
    animation: pulseSidebarAdIcon 2s infinite ease-in-out;
}

@keyframes pulseSidebarAdIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.sidebar-ad-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffd700;
    line-height: 1.35;
}

.sidebar-ad-desc {
    font-size: 0.78rem;
    color: #b0bec5;
    line-height: 1.4;
}

.sidebar-ad-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
    transition: transform 0.15s, background 0.15s;
    width: 90%;
}

.sidebar-ad-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffa726, #fb8c00);
}

/* مساحة إعلانية صغيرة مخصصة للهواتف أسفل أزرار التحكم (Mobile Bottom Ad) */
.mobile-bottom-ad-slot {
    display: none; /* مخفية على شاشات الحواسيب والتابلت الكبيرة */
    width: 100%;
    max-width: 420px;
    min-height: 55px;
    margin-top: 18px; /* مسافة أمان إجبارية تفوق 15 بكسل عن أزرار D-pad لتجنب النقرات العرضية وحماية AdSense */
    margin-bottom: 12px;
    background: rgba(22, 24, 32, 0.92);
    border: 1px dashed rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    padding: 8px 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.mobile-ad-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.mobile-ad-icon {
    font-size: 1.6rem;
}

.mobile-ad-text {
    display: flex;
    flex-direction: column;
}

.mobile-ad-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffd700;
}

.mobile-ad-sub {
    font-size: 0.72rem;
    color: #b0bec5;
}

/* إخفاء الإعلانات الجانبية تماماً لمنع ضغط شاشة اللعبة والامتثال التام لـ AdSense */
.sidebar-ad-slot {
    display: none !important;
}

.mobile-bottom-ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1240px) {
    .mobile-bottom-ad-slot {
        display: none !important;
    }
}

/* شاشة الإعلان التفاعلي ومحاكي الفيديو */
.ad-video-mockup {
    width: 100%;
    height: 230px;
    background: radial-gradient(circle at center, #1e3c72 0%, #2a5298 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.ad-timer-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffeb3b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 235, 59, 0.3);
}

.ad-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
}

.ad-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff9800, #4caf50);
    transition: width 1s linear;
}

/* نافذة إعدادات الأرباح */
.monetization-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    text-align: right;
}

.monetization-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    direction: ltr;
    font-family: monospace;
    outline: none;
}

.monetization-input:focus {
    border-color: #ff9800;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.stat-box-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffd54f;
}

.stat-box-label {
    font-size: 0.85rem;
    color: #90a4ae;
}

/* شارة متجر القسائم والشحن في الشريط العلوي */
.hud-voucher-badge {
    background: linear-gradient(135deg, #7b1fa2, #4a148c);
    border: 1px solid #ba68c8;
    color: #f3e5f5;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    animation: voucherPulse 2.4s infinite;
}

@keyframes voucherPulse {
    0% { box-shadow: 0 0 6px rgba(186, 104, 200, 0.4); }
    50% { box-shadow: 0 0 16px rgba(186, 104, 200, 0.85); transform: translateY(-1px); }
    100% { box-shadow: 0 0 6px rgba(186, 104, 200, 0.4); }
}

.hud-voucher-badge:hover {
    background: linear-gradient(135deg, #8e24aa, #6a1b9a);
    transform: translateY(-2px);
}

/* تبويبات متجر الشحن */
.voucher-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-bottom: 8px;
}

.voucher-tab-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cfd8dc;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.voucher-tab-btn.active {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: #fff;
    border-color: #f48fb1;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

/* شبكة كروت القسائم */
.voucher-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
    max-height: 380px;
    overflow-y: auto;
    padding: 6px;
}

@media (max-width: 600px) {
    .voucher-grid {
        grid-template-columns: 1fr;
    }
}

.voucher-card {
    background: linear-gradient(145deg, #252834, #1a1c26);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.voucher-card.affordable {
    border-color: #ffd700;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.25);
}

.voucher-game-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.voucher-icon {
    font-size: 2.5rem;
    margin-top: 10px;
}

.voucher-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
}

.voucher-cost {
    font-size: 1rem;
    font-weight: 800;
    color: #ffca28;
}

.voucher-progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.voucher-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff9800, #4caf50);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.voucher-progress-text {
    font-size: 0.75rem;
    color: #90a4ae;
}

.btn-redeem {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.btn-redeem.active {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-redeem.active:hover {
    background: linear-gradient(135deg, #66bb6a, #388e3c);
    transform: translateY(-2px);
}

.btn-redeem.disabled {
    background: rgba(255, 255, 255, 0.08);
    color: #78909c;
    cursor: not-allowed;
}

/* شريط ربح النقاط السريع عبر الإعلانات داخل المتجر */
.store-ad-bonus-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.08));
    border: 1px dashed #ffd54f;
    border-radius: 14px;
    padding: 12px 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* سجل القسائم المستبدلة */
.history-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.history-status {
    color: #4caf50;
    font-size: 0.8rem;
    font-weight: 800;
}

.history-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed #ffd700;
    border-radius: 8px;
    padding: 6px 12px;
}

.history-code-text {
    font-family: monospace;
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 1px;
    direction: ltr;
}

.btn-copy-mini {
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.history-item-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #90a4ae;
}

/* زر الدخول للوحة المدير في ذيل الصفحة */
.admin-login-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #90a4ae;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-login-pill:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
    color: #ffd700;
}

/* تنسيقات لوحة المدير والطلبات */
.admin-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.admin-tab-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #b0bec5;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-tab-btn.active {
    background: #0288d1;
    color: #fff;
    border-color: #29b6f6;
    box-shadow: 0 4px 10px rgba(2, 136, 209, 0.4);
}

.admin-table-container {
    width: 100%;
    max-height: 360px;
    overflow-x: auto;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: right;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.08);
    color: #eceff1;
    padding: 10px 12px;
    font-weight: 800;
    white-space: nowrap;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.order-status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-block;
}

.order-status-badge.completed {
    background: rgba(76, 175, 80, 0.25);
    color: #81c784;
    border: 1px solid #4caf50;
}

.order-status-badge.pending {
    background: rgba(255, 152, 0, 0.25);
    color: #ffb74d;
    border: 1px solid #ff9800;
}

.order-status-badge.rejected,
.order-status-badge.cancel {
    background: rgba(244, 67, 54, 0.25);
    color: #ef5350;
    border: 1px solid #f44336;
}

.btn-order-filter.active {
    background: #ffd54f !important;
    color: #0d1b2a !important;
    font-weight: 800 !important;
    border-color: #ffd54f !important;
}

.admin-action-btn {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.admin-action-btn.topup {
    background: #e91e63;
    color: #fff;
}

.admin-action-btn.done {
    background: #4caf50;
    color: #fff;
}

.admin-action-btn.cancel {
    background: #f44336;
    color: #fff;
}

/* مخزن الأكواد الحقيقية */
.admin-vault-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    margin-bottom: 14px;
}

.admin-vault-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.admin-textarea {
    width: 100%;
    height: 110px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffd700;
    font-family: monospace;
    font-size: 0.95rem;
    direction: ltr;
    resize: vertical;
    outline: none;
}

.admin-textarea:focus {
    border-color: #0288d1;
}

/* ========================================================
   1. شريط التنقل والقائمة الرئيسية (Main Navbar)
   ======================================================== */
.main-navbar {
    width: 100%;
    max-width: 900px;
    background: rgba(22, 24, 31, 0.94);
    backdrop-filter: blur(14px);
    border: 2px solid rgba(255, 152, 0, 0.35);
    border-radius: 18px;
    padding: 10px 18px;
    margin-bottom: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.brand-avatar {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    animation: bounce 2s infinite alternate ease-in-out;
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd54f, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.brand-tag {
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid rgba(255, 152, 0, 0.4);
    color: #ffb74d;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 10px;
    display: inline-block;
    align-self: flex-start;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-item-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cfd8dc;
    padding: 7px 13px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.nav-item-btn:hover {
    background: rgba(255, 152, 0, 0.2);
    border-color: rgba(255, 152, 0, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

.nav-item-btn.active {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.3), rgba(245, 124, 0, 0.4));
    border-color: #ff9800;
    color: #ffd54f;
}

.nav-item-btn.nav-btn-highlight {
    background: linear-gradient(135deg, #e53935, #c62828);
    border-color: #ef5350;
    color: #fff;
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.4);
    animation: pulseSubBtn 2.2s infinite;
}

@keyframes pulseSubBtn {
    0%, 100% { box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35); }
    50% { box-shadow: 0 4px 22px rgba(229, 57, 53, 0.7); }
}

.nav-item-btn.nav-btn-highlight:hover {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.nav-item-btn.nav-btn-admin {
    background: rgba(3, 169, 244, 0.12);
    border-color: rgba(3, 169, 244, 0.35);
    color: #81d4fa;
}

.nav-item-btn.nav-btn-admin:hover {
    background: rgba(3, 169, 244, 0.25);
    color: #fff;
}

/* زر لوحة تحكم الإدارة في شاشة البداية */
.start-admin-box-btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #0277bd, #01579b);
    border: 2px solid #29b6f6;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 18px rgba(2, 119, 189, 0.45);
    transition: all 0.25s ease;
    display: block;
}

.start-admin-box-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0288d1, #0277bd);
    box-shadow: 0 6px 22px rgba(41, 182, 246, 0.6);
    border-color: #81d4fa;
}

.nav-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.hamburger-bar {
    width: 22px;
    height: 3px;
    background: #ffd54f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 820px) {
    .nav-toggle-btn {
        display: flex;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background: rgba(22, 24, 32, 0.98);
        border: 2px solid rgba(255, 152, 0, 0.4);
        border-radius: 16px;
        padding: 14px;
        flex-direction: column;
        gap: 8px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(16px);
        z-index: 1000;
    }

    .navbar-menu.active {
        display: flex;
        animation: fadeIn 0.2s ease forwards;
    }

    .nav-item-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 16px;
        font-size: 0.95rem;
    }
}

/* ========================================================
   2. نافذة من نحن (About Us Modal)
   ======================================================== */
.about-hero-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 152, 0, 0.25);
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    text-align: right;
}

.about-badges-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-badge {
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.35);
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 12px;
}

.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .about-cards-grid {
        grid-template-columns: 1fr;
    }
}

.about-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px;
    text-align: right;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.about-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 152, 0, 0.4);
}

.about-card-icon {
    font-size: 2rem;
    margin-bottom: 6px;
}

.about-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffd54f;
    margin-bottom: 4px;
}

.about-card-desc {
    font-size: 0.88rem;
    color: #b0bec5;
    line-height: 1.5;
}

/* ========================================================
   3. نافذة مواقع التواصل (Social Media Modal)
   ======================================================== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

@media (max-width: 620px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

.social-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
    transition: all 0.25s ease;
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.social-card.yt { border-color: rgba(255, 0, 0, 0.35); background: linear-gradient(145deg, rgba(255,0,0,0.1), rgba(0,0,0,0.4)); }
.social-card.tg { border-color: rgba(0, 136, 204, 0.35); background: linear-gradient(145deg, rgba(0,136,204,0.1), rgba(0,0,0,0.4)); }
.social-card.tt { border-color: rgba(254, 44, 85, 0.35); background: linear-gradient(145deg, rgba(254,44,85,0.08), rgba(0,0,0,0.4)); }
.social-card.fb { border-color: rgba(24, 119, 242, 0.35); background: linear-gradient(145deg, rgba(24,119,242,0.1), rgba(0,0,0,0.4)); }
.social-card.ig { border-color: rgba(225, 48, 108, 0.35); background: linear-gradient(145deg, rgba(225,48,108,0.1), rgba(0,0,0,0.4)); }
.social-card.dc { border-color: rgba(88, 101, 242, 0.35); background: linear-gradient(145deg, rgba(88,101,242,0.1), rgba(0,0,0,0.4)); }

.social-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.social-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.social-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.social-sub {
    font-size: 0.8rem;
    color: #90a4ae;
    line-height: 1.4;
    margin-top: 2px;
}

.social-btn {
    text-align: center;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
}

.social-btn:hover {
    transform: scale(1.02);
    filter: brightness(1.15);
}

.yt-btn { background: #e53935; }
.tg-btn { background: #0088cc; }
.tt-btn { background: linear-gradient(135deg, #010101, #fe2c55); }
.fb-btn { background: #1877f2; }
.ig-btn { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.dc-btn { background: #5865f2; }

/* ========================================================
   4. نافذة شرط الاشتراك الإلزامي (Mandatory Sub Modal)
   ======================================================== */
.mandatory-sub-box {
    border: 2px solid #e53935 !important;
    box-shadow: 0 0 35px rgba(229, 57, 53, 0.4) !important;
}

.sub-pulse-icon {
    font-size: 3.5rem;
    animation: subPulse 1.4s infinite alternate ease-in-out;
}

@keyframes subPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 152, 0, 0.5)); }
    100% { transform: scale(1.15) rotate(5deg); filter: drop-shadow(0 0 15px rgba(229, 57, 53, 0.8)); }
}

.mandatory-badge {
    background: rgba(229, 57, 53, 0.2);
    border: 1px solid #ef5350;
    color: #ff8a80;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
}

.target-channel-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 152, 0, 0.4);
    border-radius: 16px;
    padding: 14px 18px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: right;
}

.target-channel-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.target-channel-info {
    flex: 1;
}

.target-channel-badge {
    color: #ff5252;
    font-size: 0.8rem;
    font-weight: 800;
}

.target-channel-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #ffd54f;
    margin: 2px 0;
}

.target-channel-desc {
    font-size: 0.82rem;
    color: #b0bec5;
}

.sub-steps-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sub-step-btn {
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sub-step-btn.step-1 {
    background: linear-gradient(135deg, #e53935, #b71c1c);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.sub-step-btn.step-1:hover {
    background: linear-gradient(135deg, #f44336, #c62828);
    transform: translateY(-2px);
}

.sub-step-btn.step-1.step-completed {
    background: #2e7d32;
    color: #c8e6c9;
}

.sub-step-btn.step-2 {
    background: rgba(255, 255, 255, 0.08);
    color: #90a4ae;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sub-step-btn.step-2.active-verify-btn {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    animation: pulseVerify 1.5s infinite;
}

@keyframes pulseVerify {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.mandatory-progress-box {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mandatory-progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.mandatory-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffd54f, #4caf50);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.mandatory-status-text {
    font-size: 0.9rem;
    color: #ffd54f;
    font-weight: 700;
    margin-top: 8px;
    text-align: center;
}

/* ========================================================
   5. نظام منع حاجب الإعلانات (Anti-AdBlock Modal)
   ======================================================== */
.adblock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 10, 14, 0.97);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999999 !important;
    padding: 20px;
    animation: fadeIn 0.3s ease forwards;
}

.adblock-modal-content {
    background: linear-gradient(145deg, #242028, #19171e);
    border: 3px solid #f44336;
    border-radius: 26px;
    padding: 34px;
    max-width: 580px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 50px rgba(244, 67, 54, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.adblock-icon-wrapper {
    position: relative;
    font-size: 4rem;
    line-height: 1;
}

.adblock-shield-icon {
    display: inline-block;
    animation: pulseShield 1.6s infinite alternate;
}

@keyframes pulseShield {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.adblock-ban-icon {
    position: absolute;
    bottom: -6px;
    left: -10px;
    font-size: 2.2rem;
}

.adblock-tag {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ff8a80;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
}

.adblock-steps-guide {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px;
    width: 100%;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adblock-guide-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffd54f;
    margin-bottom: 2px;
}

.adblock-step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: #eceff1;
    line-height: 1.45;
}

.adblock-step-num {
    background: #f44336;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 900;
    flex-shrink: 0;
}

.adblock-btn {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    font-size: 1.05rem;
    padding: 14px 20px;
    box-shadow: 0 4px 18px rgba(76, 175, 80, 0.4);
}

.adblock-btn:hover {
    background: linear-gradient(135deg, #66bb6a, #388e3c);
    transform: translateY(-2px);
}

/* ========================================================
   12. نظام تسجيل الدخول والأمان والكابتشا وحماية الحسابات
   (Security, Authentication & WAF UI Styles)
   ======================================================== */
.nav-btn-auth {
    border-color: rgba(0, 229, 255, 0.4) !important;
    color: #80deea !important;
    background: rgba(0, 229, 255, 0.08) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.nav-btn-auth:hover {
    border-color: #00e5ff !important;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4) !important;
    transform: translateY(-2px);
}

.nav-btn-auth.logged-in {
    border-color: rgba(76, 175, 80, 0.5) !important;
    color: #a5d6a7 !important;
    background: rgba(76, 175, 80, 0.12) !important;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #90a4ae;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    text-align: center;
}

.auth-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.25), rgba(255, 112, 67, 0.3));
    color: #ffd54f;
    border: 1px solid rgba(255, 152, 0, 0.5);
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.25);
}

.captcha-box-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 213, 79, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
    text-align: right;
}

.captcha-canvas {
    background: #10121a;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

.otp-security-box {
    background: rgba(41, 182, 246, 0.1);
    border: 1px solid rgba(41, 182, 246, 0.35);
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    margin-top: 8px;
    text-align: center;
    color: #eceff1;
    font-size: 0.92rem;
    line-height: 1.5;
}

.profile-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9800, #f44336);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    box-shadow: 0 0 24px rgba(255, 152, 0, 0.45);
    border: 3px solid #ffd54f;
    margin-bottom: 6px;
}

.verified-badge-large {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #81c784;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.verified-mini-badge {
    color: #4caf50;
    font-size: 0.85rem;
    margin-right: 2px;
}

.profile-card-details {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
    margin: 12px 0;
}

.profile-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}

.profile-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-detail-row .detail-label {
    color: #90a4ae;
    font-weight: 700;
}

.profile-detail-row .detail-value {
    color: #eceff1;
    font-weight: 800;
}

/* ========================================================
   13. أنماط نظام سحب الأرباح والأموال الحقيقي
   (Real Cash Withdrawal System UI Styles)
   ======================================================== */

/* زر سحب الأرباح في القائمة الرئيسية Navbar */
.nav-btn-withdraw {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.15), rgba(0, 150, 136, 0.2)) !important;
    border-color: rgba(0, 230, 118, 0.45) !important;
    color: #69f0ae !important;
    font-weight: 800;
    transition: all 0.25s ease;
}

.nav-btn-withdraw:hover {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.3), rgba(0, 150, 136, 0.35)) !important;
    border-color: #00e676 !important;
    box-shadow: 0 0 14px rgba(0, 230, 118, 0.4) !important;
    transform: translateY(-2px);
}

/* شارة سحب الأرباح في شريط HUD العلوي */
.hud-withdraw-badge {
    background: linear-gradient(135deg, #00897b, #004d40);
    border: 1px solid #26a69a;
    color: #e0f2f1;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 77, 64, 0.3);
}

.hud-withdraw-badge:hover {
    background: linear-gradient(135deg, #009688, #00695c);
    border-color: #80cbc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.45);
}

/* بنر الرصيد داخل نافذة السحب */
.withdraw-balance-banner {
    background: linear-gradient(135deg, rgba(0, 77, 64, 0.4), rgba(18, 18, 24, 0.6));
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 16px;
    padding: 14px 20px;
    width: 100%;
    margin-top: 10px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.withdraw-rate-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: #b0bec5;
}

/* تبويبات نافذة السحب */
.withdraw-tabs {
    display: flex;
    gap: 8px;
    width: 100%;
    margin: 14px 0;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.withdraw-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #90a4ae;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    text-align: center;
}

.withdraw-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.withdraw-tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.25), rgba(0, 150, 136, 0.3));
    color: #69f0ae;
    border: 1px solid rgba(0, 230, 118, 0.5);
    box-shadow: 0 2px 10px rgba(0, 200, 83, 0.25);
}

/* شبكة كروت طرق السحب */
.withdrawal-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

@media (min-width: 600px) {
    .withdrawal-methods-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.withdrawal-method-card {
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.withdrawal-method-card:hover {
    border-color: rgba(0, 230, 118, 0.4);
    background: rgba(0, 230, 118, 0.05);
    transform: translateY(-2px);
}

.withdrawal-method-card.active {
    border-color: #00e676;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.15), rgba(0, 150, 136, 0.2));
    box-shadow: 0 0 16px rgba(0, 230, 118, 0.25);
}

.method-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.method-card-icon {
    font-size: 1.8rem;
}

.method-popular-badge {
    background: rgba(255, 87, 34, 0.2);
    border: 1px solid #ff5722;
    color: #ff8a65;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 12px;
}

.method-fast-badge {
    background: rgba(3, 169, 244, 0.2);
    border: 1px solid #03a9f4;
    color: #4fc3f7;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 12px;
}

.method-bank-badge {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #81c784;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 12px;
}

.method-wallet-badge {
    background: rgba(156, 39, 176, 0.2);
    border: 1px solid #ab47bc;
    color: #ce93d8;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 12px;
}

.method-card-title {
    font-weight: 800;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.3;
}

.method-card-sub {
    font-size: 0.72rem;
    color: #90a4ae;
    margin-top: 2px;
    direction: ltr;
    text-align: right;
}

.method-card-fee {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #ffd54f;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 6px;
}

/* شبكة باقات المبالغ السريعة */
.amount-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    width: 100%;
}

.amount-package-pill {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-family: inherit;
}

.amount-package-pill:hover {
    border-color: rgba(255, 213, 79, 0.5);
    background: rgba(255, 213, 79, 0.08);
}

.amount-package-pill.active {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.25));
    border-color: #ffd54f;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.package-usd {
    font-size: 1.15rem;
    font-weight: 900;
    color: #00e676;
}

.package-pts {
    font-size: 0.72rem;
    color: #ffd54f;
}

/* حاوية المبلغ المخصص */
.custom-amount-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 14px;
    margin-top: 8px;
}

/* صندوق الحساب والمعاينة */
.withdraw-calc-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px dashed rgba(255, 213, 79, 0.35);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 12px;
    width: 100%;
}

.calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.9rem;
}

.calc-label {
    color: #b0bec5;
    font-weight: 700;
}

.calc-value {
    font-weight: 800;
}

.calc-min-notice {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: #ffb74d;
    text-align: right;
}

/* صناديق نماذج الوسائل */
.method-form-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px;
    width: 100%;
    margin-top: 8px;
    text-align: right;
}

/* سجل طلبات السحب للمستخدم */
.withdraw-history-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
    transition: all 0.2s ease;
}

.withdraw-history-card:hover {
    border-color: rgba(0, 230, 118, 0.3);
    background: rgba(0, 0, 0, 0.45);
}

.withdraw-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.withdraw-method-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
}

.withdraw-status-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
}

.withdraw-status-badge.pending {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid #ff9800;
    color: #ffb74d;
}

.withdraw-status-badge.completed {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #81c784;
}

.withdraw-status-badge.rejected {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ef5350;
}

.withdraw-card-mid {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 8px 12px;
}

.withdraw-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #90a4ae;
}

/* ========================================================
   14. أنماط وضع المالك السري وحماية الموقع من التعديل
   (Stealth Owner Mode & Anti-Tamper UI)
   ======================================================== */
.owner-stealth-badge {
    position: fixed;
    bottom: 16px;
    left: 16px;
    background: rgba(18, 22, 34, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.45);
    color: #ffd700;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.25);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease-out;
}

.owner-pill-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.owner-pill-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
    transform: translateY(-1px);
}

.owner-pill-btn.lock {
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.4);
    color: #ff8a80;
}

.owner-pill-btn.lock:hover {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
    color: #fff;
}

.admin-stealth-notice {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: #80deea;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
}

/* ========================================================
   نظام الإحالة ودعوة الأصدقاء (Referral System Styles)
   ======================================================== */
.nav-item-btn.nav-btn-referral {
    background: linear-gradient(135deg, rgba(142, 36, 170, 0.25), rgba(94, 53, 177, 0.25));
    border: 1px solid rgba(171, 71, 188, 0.5);
    color: #e1bee7;
    transition: all 0.25s ease;
}

.nav-item-btn.nav-btn-referral:hover {
    background: linear-gradient(135deg, rgba(142, 36, 170, 0.45), rgba(94, 53, 177, 0.45));
    border-color: #ce93d8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(156, 39, 176, 0.3);
}

.referral-modal-box {
    border: 2px solid rgba(171, 71, 188, 0.5) !important;
    background: linear-gradient(145deg, #231c2e, #1a1724) !important;
}

.referral-toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #fff;
    padding: 14px 22px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 99999;
    font-weight: 800;
    font-size: 0.95rem;
    border: 1px solid #4caf50;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    max-width: 90vw;
    pointer-events: none;
}

.referral-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.referral-toast.error {
    background: linear-gradient(135deg, #c62828, #b71c1c);
    border-color: #ef5350;
}





/* =========================================================================
   قسم ولوحة قائمة الفائزين والمكافآت (Winners & Rewards Board Styles)
   ========================================================================= */

/* شريط البث التفاعلي المتحرك (Winners Ticker Ribbon) */
.winners-ticker-wrap {
    width: 100%;
    max-width: 860px;
    margin: 8px auto 6px auto;
    background: linear-gradient(90deg, rgba(20, 22, 32, 0.95), rgba(35, 25, 45, 0.95));
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 12px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 215, 0, 0.05);
    overflow: hidden;
    position: relative;
    user-select: none;
}

.winners-ticker-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
    transition: transform 0.2s ease;
}

.winners-ticker-badge:hover {
    transform: scale(1.03);
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 8px #4caf50;
    animation: livePulse 1.4s infinite alternate;
}

@keyframes livePulse {
    0% { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 1; }
}

.winners-ticker-viewport {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    cursor: pointer;
}

.winners-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    animation: tickerScroll 38s linear infinite;
    will-change: transform;
}

.winners-ticker-viewport:hover .winners-ticker-track {
    animation-play-state: paused;
}

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

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.ticker-item:hover {
    background: rgba(255, 255, 255, 0.14);
}

.ticker-item.rank-gold {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.12);
}

.ticker-item.rank-silver {
    border-color: rgba(200, 214, 229, 0.5);
    background: rgba(200, 214, 229, 0.1);
}

.ticker-item.rank-bronze {
    border-color: rgba(205, 127, 50, 0.5);
    background: rgba(205, 127, 50, 0.1);
}

.ticker-item.is-me {
    border-color: #00e5ff;
    background: rgba(0, 229, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.ticker-rank {
    font-weight: 800;
    color: #ffd54f;
}

.ticker-name {
    font-weight: 700;
    color: #f1f5f9;
}

.ticker-score {
    font-weight: 800;
    color: #4ade80;
}

.ticker-prize {
    font-size: 0.78rem;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
}

.ticker-separator {
    color: rgba(255, 215, 0, 0.4);
    font-size: 0.75rem;
}

.winners-ticker-btn {
    background: linear-gradient(135deg, #ffd700, #ff9800);
    border: none;
    color: #000;
    font-weight: 900;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.winners-ticker-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* شارات الناف بار و شريط الـ HUD */
.nav-item-btn.nav-btn-winners {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.25));
    border-color: rgba(245, 158, 11, 0.45);
    color: #fef3c7;
}

.nav-item-btn.nav-btn-winners:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.45), rgba(217, 119, 6, 0.45));
    border-color: #ffd700;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.hud-winners-badge {
    background: linear-gradient(135deg, #d97706, #b45309);
    border: 1px solid #ffd700;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.hud-winners-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.5);
}

/* نافذة لوحة الفائزين والمكافآت (Modal) */
.winners-board-modal-content {
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid rgba(255, 215, 0, 0.45);
    background: linear-gradient(180deg, #1a1c26 0%, #10121a 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.winners-board-header {
    text-align: center;
    width: 100%;
    margin-bottom: 8px;
}

.winners-board-icon {
    font-size: 3rem;
    margin-bottom: 4px;
    animation: bounce 1.2s infinite alternate;
}

/* بطاقة ترتيب اللاعب الحالي (Current Player Card) */
.current-player-rank-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 2px solid #00e5ff;
    border-radius: 14px;
    padding: 12px 18px;
    width: 100%;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.2);
}

.player-rank-badge {
    background: linear-gradient(135deg, #00e5ff, #0284c7);
    color: #000;
    font-size: 1.15rem;
    font-weight: 900;
    padding: 8px 14px;
    border-radius: 10px;
    white-space: nowrap;
}

.player-rank-info {
    flex: 1;
    text-align: right;
}

.player-rank-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-you-tag {
    background: rgba(0, 229, 255, 0.2);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.4);
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.player-rank-score {
    font-size: 1.1rem;
    font-weight: 900;
    color: #4ade80;
    margin-top: 2px;
}

.player-rank-prize {
    font-size: 0.85rem;
    color: #ffd54f;
    font-weight: 700;
    text-align: left;
    max-width: 45%;
}

/* جدول وقائمة الفائزين */
.winners-table-container {
    width: 100%;
    margin-bottom: 14px;
}

.winners-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.winner-row-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.winner-row-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-2px);
}

.winner-row-card.winner-card-me {
    border: 2px solid #00e5ff;
    background: rgba(0, 229, 255, 0.08);
}

.winner-row-card.top-rank.rank-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.04));
    border: 1.5px solid rgba(255, 215, 0, 0.6);
}

.winner-row-card.top-rank.rank-2 {
    background: linear-gradient(90deg, rgba(200, 214, 229, 0.12), rgba(200, 214, 229, 0.03));
    border: 1.5px solid rgba(200, 214, 229, 0.5);
}

.winner-row-card.top-rank.rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.12), rgba(205, 127, 50, 0.03));
    border: 1.5px solid rgba(205, 127, 50, 0.5);
}

.winner-row-rank {
    width: 44px;
    text-align: center;
    font-weight: 900;
    font-size: 1rem;
    color: #ffd54f;
}

.winner-row-avatar {
    font-size: 1.6rem;
}

.winner-row-details {
    flex: 1;
    text-align: right;
}

.winner-row-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.winner-row-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.winner-row-prize-box {
    text-align: left;
}

.winner-prize-tag {
    font-size: 0.8rem;
    color: #ffd54f;
    font-weight: 700;
}

.winner-points-tag {
    font-size: 0.95rem;
    font-weight: 900;
    color: #4ade80;
    margin-top: 2px;
}

.winners-board-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .winners-ticker-wrap {
        border-radius: 8px;
        padding: 4px 8px;
        gap: 6px;
    }
    .winners-ticker-badge {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    .winners-ticker-btn {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    .current-player-rank-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .player-rank-prize {
        max-width: 100%;
        text-align: right;
    }
    .winner-row-card {
        padding: 8px 10px;
        gap: 8px;
    }
    .winner-prize-tag {
        font-size: 0.72rem;
    }
    .winner-points-tag {
        font-size: 0.85rem;
    }
}


/* =========================================================================
   شريط الأذكار والأدعية الإسلامية (Islamic Dhikr & Dua Bar Styles)
   ========================================================================= */

.islamic-dhikr-bar {
    width: 100%;
    max-width: 860px;
    margin: 8px auto 4px auto;
    background: linear-gradient(90deg, rgba(12, 26, 18, 0.94) 0%, rgba(18, 36, 26, 0.94) 50%, rgba(12, 26, 18, 0.94) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(76, 175, 80, 0.08);
    position: relative;
    overflow: hidden;
    user-select: none;
    transition: all 0.3s ease;
}

.dhikr-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
}

.dhikr-badge-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.3), rgba(27, 94, 32, 0.4));
    border: 1px solid rgba(76, 175, 80, 0.5);
    padding: 4px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.dhikr-icon {
    font-size: 1.25rem;
    display: inline-block;
    animation: gentlePulse 2.5s infinite alternate;
}

@keyframes gentlePulse {
    0% { transform: scale(0.95); opacity: 0.85; }
    100% { transform: scale(1.1); opacity: 1; }
}

.dhikr-type-tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: #a5d6a7;
    letter-spacing: 0.5px;
}

.dhikr-content-box {
    flex: 1;
    text-align: center;
    padding: 0 6px;
    overflow: hidden;
}

.dhikr-text {
    font-size: 0.98rem;
    font-weight: 700;
    color: #f1f8e9;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.dhikr-text.dhikr-fade-out {
    opacity: 0;
    transform: translateY(-5px);
}

.dhikr-text.dhikr-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.dhikr-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.dhikr-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e8f5e9;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dhikr-action-btn:hover {
    background: rgba(76, 175, 80, 0.3);
    border-color: #81c784;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.dhikr-progress-bar {
    width: 100%;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.dhikr-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4caf50 0%, #81c784 60%, #ffd54f 100%);
    transition: width 0.5s linear;
}

.dhikr-mini-pill {
    display: none;
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: #f1f8e9;
    border: 1px solid #81c784;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    margin: 4px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

.dhikr-mini-pill:hover {
    transform: scale(1.05);
}

/* حالة التصغير */
.islamic-dhikr-bar.minimized {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 2px auto;
}

.islamic-dhikr-bar.minimized .dhikr-bar-inner,
.islamic-dhikr-bar.minimized .dhikr-progress-bar {
    display: none;
}

.islamic-dhikr-bar.minimized .dhikr-mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 650px) {
    .islamic-dhikr-bar {
        border-radius: 10px;
        margin: 6px auto;
    }
    .dhikr-bar-inner {
        padding: 6px 10px;
        gap: 8px;
    }
    .dhikr-badge-box {
        padding: 3px 6px;
    }
    .dhikr-icon {
        font-size: 1.1rem;
    }
    .dhikr-type-tag {
        display: none; /* إخفاء الوسم الفرعي للشاشات الصغيرة لتوفير المساحة */
    }
    .dhikr-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .dhikr-action-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   أدوات وأزرار التحكم في صوت اللعبة وخفضه ورفعه (Sound & Volume Controls)
   ========================================================================== */

/* زر الصوت في شريط التنقل العلوي للموقع */
.nav-sound-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid rgba(255, 152, 0, 0.4);
    color: #ffd54f;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-sound-btn:hover {
    background: rgba(255, 152, 0, 0.28);
    border-color: #ff9800;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.25);
}

.nav-sound-btn.muted {
    background: rgba(244, 67, 54, 0.18);
    border-color: rgba(244, 67, 54, 0.5);
    color: #ef9a9a;
}

.nav-sound-btn.muted:hover {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
}

/* صندوق التحكم بالصوت وخفضه في شريط HUD اللعبة */
.hud-sound-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 2px 6px;
    gap: 6px;
}

.hud-sound-btn.muted {
    background: rgba(244, 67, 54, 0.25);
    border-color: #f44336;
}

.hud-volume-panel {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vol-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.vol-btn:hover {
    background: rgba(255, 152, 0, 0.4);
    border-color: #ff9800;
    transform: scale(1.08);
}

.hud-volume-slider,
.modal-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 65px;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    accent-color: #ff9800;
}

.hud-volume-slider::-webkit-slider-thumb,
.modal-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #ffd54f;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hud-vol-label,
.volume-percent-badge {
    font-size: 0.78rem;
    font-weight: 800;
    color: #ffd54f;
    min-width: 34px;
    text-align: center;
}

/* شريط الصوت في النوافذ المنبثقة (Start / Pause Modals) */
.modal-sound-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 8px 14px;
    margin: 10px 0;
    width: 100%;
    box-sizing: border-box;
}

.modal-sound-toggle-btn {
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid #ff9800;
    color: #ffd54f;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.modal-sound-toggle-btn:hover {
    background: rgba(255, 152, 0, 0.3);
}

.modal-sound-toggle-btn.muted {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
    color: #ef9a9a;
}

.modal-volume-slider-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-volume-slider {
    width: 90px;
}

/* ========================================================
   شركاء الألعاب والمنصات الرسمية (Gaming Partners System)
   ======================================================== */
.nav-item-btn.nav-btn-partners {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.25), rgba(13, 71, 161, 0.35));
    border-color: rgba(33, 150, 243, 0.5);
    color: #90caf9;
}

.nav-item-btn.nav-btn-partners:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.4), rgba(21, 101, 192, 0.5));
    border-color: #42a5f5;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.35);
}

.partners-modal-content {
    max-width: 820px;
    width: 95%;
    max-height: 92vh;
    overflow-y: auto;
    background: linear-gradient(160deg, #181b24 0%, #12141c 100%);
    border: 2px solid rgba(66, 165, 245, 0.45);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(33, 150, 243, 0.15);
    padding: 24px;
    gap: 16px;
    border-radius: 24px;
}

.partners-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 14px;
    gap: 12px;
}

.partners-modal-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: right;
}

.partners-header-icon {
    font-size: 2.4rem;
    filter: drop-shadow(0 2px 8px rgba(33, 150, 243, 0.5));
}

.partners-modal-header .modal-subtitle {
    color: #90a4ae;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

.close-modal-pill {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cfd8dc;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.close-modal-pill:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
    color: #ff8a80;
}

/* شريط تبويبات وفلترة الشركاء */
.partners-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.partner-filter-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #b0bec5;
    padding: 8px 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.partner-filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.partner-filter-btn.active {
    background: linear-gradient(135deg, #1976d2, #0d47a1);
    border-color: #42a5f5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

/* شبكة بطاقات الشركاء */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    width: 100%;
}

.partner-card {
    background: rgba(24, 28, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1976d2, #ffd54f);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    border-color: rgba(66, 165, 245, 0.5);
    background: rgba(30, 36, 50, 0.95);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(33, 150, 243, 0.2);
}

.partner-card:hover::before {
    opacity: 1;
}

.partner-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.partner-icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* خلفيات أيقونات العلامات العالمية */
.steam-icon { background: linear-gradient(135deg, #171a21, #1b2838); border: 1px solid #66c0f4; }
.ps-icon { background: linear-gradient(135deg, #003791, #002050); border: 1px solid #29b6f6; }
.xbox-icon { background: linear-gradient(135deg, #107c10, #0a4f0a); border: 1px solid #4caf50; }
.epic-icon { background: linear-gradient(135deg, #333333, #1e1e1e); border: 1px solid #e0e0e0; }
.ff-icon { background: linear-gradient(135deg, #d32f2f, #b71c1c); border: 1px solid #ff7043; }
.pubg-icon { background: linear-gradient(135deg, #e65100, #bf360c); border: 1px solid #ffb74d; }
.google-icon { background: linear-gradient(135deg, #1e3a5f, #0f2027); border: 1px solid #34a853; }
.razer-icon { background: linear-gradient(135deg, #052405, #001200); border: 1px solid #00e700; }
.discord-icon { background: linear-gradient(135deg, #5865f2, #3b45a6); border: 1px solid #7983f5; }
.ea-icon { background: linear-gradient(135deg, #c2185b, #880e4f); border: 1px solid #f06292; }
.twitch-icon { background: linear-gradient(135deg, #6441a5, #4b367c); border: 1px solid #ba68c8; }
.konami-icon { background: linear-gradient(135deg, #b71c1c, #7f0000); border: 1px solid #e53935; }

.partner-info-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.partner-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 2px;
}

.platform-badge {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.5);
    color: #64b5f6;
}

.topup-badge {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.5);
    color: #ffb74d;
}

.gear-badge {
    background: rgba(156, 39, 176, 0.2);
    border: 1px solid rgba(156, 39, 176, 0.5);
    color: #ba68c8;
}

.partner-name {
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.3;
}

.partner-site {
    font-size: 0.72rem;
    color: #78909c;
    direction: ltr;
    display: inline-block;
    font-family: monospace;
}

.partner-description {
    font-size: 0.83rem;
    color: #b0bec5;
    line-height: 1.5;
    margin: 0;
}

.partner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.partner-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #eceff1;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 600;
}

.partner-visit-btn {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.8), rgba(13, 71, 161, 0.9));
    border: 1px solid #42a5f5;
    color: #ffffff;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: auto;
}

.partner-visit-btn:hover {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    box-shadow: 0 4px 14px rgba(30, 136, 229, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

.partner-arrow {
    transition: transform 0.2s ease;
}

.partner-visit-btn:hover .partner-arrow {
    transform: translateX(-4px);
}

/* شريط الملاحظة التوضيحية أسفل النافذة */
.partners-footer-note {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.partners-note-icon {
    font-size: 1.6rem;
}

.partners-note-text {
    font-size: 0.82rem;
    color: #ffe082;
    line-height: 1.5;
    text-align: right;
}

@media (max-width: 600px) {
    .partners-modal-content {
        padding: 16px 12px;
        gap: 12px;
    }
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .partners-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .close-modal-pill {
        align-self: flex-end;
    }
    .partner-filter-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* ========================================================
   تذييل الموقع والصفحات القانونية لـ Google AdSense
   ======================================================== */
.main-legal-footer {
    width: 100%;
    max-width: 900px;
    background: rgba(18, 20, 28, 0.96);
    border: 2px solid rgba(255, 152, 0, 0.35);
    border-radius: 20px;
    padding: 28px 24px 16px 24px;
    margin-top: 16px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    box-sizing: border-box;
}

.legal-footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 22px;
}

.footer-brand-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd54f, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.footer-logo {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.footer-brand-desc {
    font-size: 0.85rem;
    color: #90a4ae;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-contact-inline {
    font-size: 0.82rem;
    color: #ffd54f;
}

.footer-contact-inline a {
    color: #4fc3f7;
    text-decoration: underline;
    direction: ltr;
    display: inline-block;
}

.footer-col-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffd54f;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.3);
    padding-bottom: 6px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav-link {
    color: #cfd8dc;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-nav-link:hover {
    color: #ff9800;
    transform: translateX(-4px);
    text-decoration: underline;
}

.legal-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.copyright-text {
    font-size: 0.78rem;
    color: #78909c;
}

.footer-compliance-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.compliance-badge {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.35);
    color: #81c784;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

/* تنسيقات النوافذ القانونية الداخلية (Legal Modals) */
.legal-modal-content {
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: right;
    align-items: stretch;
    padding: 24px;
    gap: 14px;
}

.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.legal-modal-body {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #cfd8dc;
}

.legal-modal-body p {
    margin-bottom: 10px;
}

.legal-badge-pill {
    display: inline-block;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid #4caf50;
    color: #81c784;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .legal-footer-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .legal-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* =========================================
   متجر السكينات والأسلحة (Chicken Shop)
   ========================================= */
.shop-card.equipped {
    border-color: #00e676;
    box-shadow: 0 0 18px rgba(0, 230, 118, 0.35);
}

.shop-card.owned {
    border-color: #29b6f6;
    box-shadow: 0 0 12px rgba(41, 182, 246, 0.25);
}

.shop-swatches {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 2px 0;
}

.shop-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    display: inline-block;
}

.shop-item-desc {
    font-size: 0.78rem;
    color: #b0bec5;
    line-height: 1.4;
    min-height: 32px;
}

.btn-redeem.owned-btn {
    background: linear-gradient(135deg, #0288d1, #01579b);
    color: #fff;
    cursor: pointer;
}

.btn-redeem.equipped-btn {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #b9f6ca;
    cursor: default;
    opacity: 0.9;
}
