  :root {
    --bg-deep:       #1a0a2e;
    --bg-mid:        #22103a;
    --bg-card:       #2d1a4a;
    --bg-card2:      #381f58;
    --purple-vivid:  #7c3aed;
    --purple-light:  #a855f7;
    --purple-bright: #c084fc;
    --purple-glow:   rgba(124,58,237,0.45);
    --orange:        #f59e0b;
    --orange-dark:   #d97706;
    --orange-glow:   rgba(245,158,11,0.4);
    --white:         #ffffff;
    --text-muted:    #a78bca;
    --border:        rgba(124,58,237,0.3);
    --border-bright: rgba(168,85,247,0.5);
    --radius:        18px;
    --radius-sm:     12px;
    --primary-color: var(--purple-vivid);
    --primary-light: var(--purple-light);
    --primary-dark: #4c1d95;
    --secondary-color: var(--purple-bright);
    --accent-color: var(--orange);
    --accent-light: #fbbf24;
    --text-light: #ffffff;
    --text-dark: #2c3e50;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-deep);
    color: var(--white);
    overflow-x: hidden;
    padding-top: 80px;
  }

  body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(ellipse 90% 70% at 60% 10%,  rgba(124,58,237,0.22) 0%, transparent 55%),
      radial-gradient(ellipse 70% 60% at 10% 85%,  rgba(109,40,217,0.18) 0%, transparent 55%),
      radial-gradient(ellipse 50% 40% at 90% 70%,  rgba(168,85,247,0.1)  0%, transparent 50%),
      linear-gradient(180deg, #1a0a2e 0%, #120820 60%, #1a0a2e 100%);
  }

  /* ========== Orientation Lock - Portrait Only ========== */
  .orientation-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a0a2e 0%, #7c3aed 55%, #4c1d95 100%);
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    font-family: 'Cairo', sans-serif;
  }

  .orientation-warning.show {
    display: flex;
  }

  .orientation-warning-icon {
    font-size: 80px;
    margin-bottom: 30px;
    animation: rotate 2s linear infinite;
  }

  @keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(90deg); }
  }

  .orientation-warning h2 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
  }

  .orientation-warning p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 400px;
  }

  @media screen and (max-width: 768px) and (orientation: landscape) {
    body > *:not(.orientation-warning) {
      display: none !important;
    }

    .orientation-warning {
      display: flex !important;
    }
  }

  /* ========== شريط العنوان العلوي ========== */
  .header-banner {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 80px;
    background: rgba(26, 10, 46, 0.55);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  }

  .header-banner.header-banner--scrolled {
    background: rgba(26, 10, 46, 0.92);
    box-shadow: 0 2px 32px rgba(0, 0, 0, 0.55);
    border-bottom-color: rgba(168, 85, 247, 0.35);
  }
  
  .header-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    gap: 12px;
    box-sizing: border-box;
    padding-inline-start: 40px;
    padding-inline-end: 10px;
  }

  /* عمودان متساويان يحيطان بالقائمة الوسطى لإبقاء «الرئيسية» في منتصف الصفحة */
  .header-cluster--leading,
  .header-cluster--trailing {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
  }

  /* طرف الشاشة: الشعار + الحساب (في RTL أقصى اليمين) */
  .header-cluster--leading {
    justify-content: flex-start;
    gap: 14px;
  }

  /* الطرف المقابل: الاشتراك فقط (في RTL أقصى اليسار) */
  .header-cluster--trailing {
    justify-content: flex-start;
    gap: 12px;
  }

  /* الشعار + الحساب ككتلة واحدة حتى لا يبعدهما توزيع flex على العمود الواسع */
  .header-logo-auth-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 14px;
    min-width: 0;
  }
  
  .logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }
  
  .logo-container:hover {
    transform: translateY(-2px);
  }

  /* شارة حالة الاشتراك/التجربة بجانب زر الاشتراك في الهيدر (ديسكتوب فقط) */
  .subscription-status-badge {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    margin-left: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: default;
  }

  .subscription-status-badge--trial {
    background: rgba(76, 175, 80, 0.18);
    border-color: rgba(76, 175, 80, 0.6);
  }

  .subscription-status-badge--no-games {
    background: rgba(244, 67, 54, 0.18);
    border-color: rgba(244, 67, 54, 0.6);
  }

  .subscription-status-badge--has-games {
    background: rgba(255, 193, 7, 0.18);
    border-color: rgba(255, 193, 7, 0.7);
  }
  
  .header-image {
    width: 64px;
    height: 64px;
    box-sizing: border-box;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(168, 85, 247, 0.45);
    box-shadow: 0 0 22px var(--purple-glow), 0 4px 16px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    padding: 3px;
    flex-shrink: 0;
    display: block;
  }
  
  .auth-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  
  .auth-buttons-header {
    display: flex;
    gap: 10px;
  }
  
  .auth-btn-header {
    background: rgba(124, 58, 237, 0.12);
    color: var(--white);
    border: 1.5px solid rgba(168, 85, 247, 0.4);
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.22s ease;
    backdrop-filter: blur(10px);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .auth-btn-header:hover {
    background: rgba(124, 58, 237, 0.22);
    border-color: var(--purple-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.25);
  }
  
  .user-info-header {
    display: none;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 5px 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    gap: 10px;
  }
  
  .user-name-header {
    font-weight: 600;
    font-size: 0.95em;
    color: white;
    margin: 0;
  }

  .account-details-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 18px;
    padding: 4px 10px;
    font-size: 0.8em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
  }

  .account-details-btn i {
    font-size: 0.9em;
  }

  .account-details-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
  }
  
  .logout-btn-header {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 4px 10px;
    margin-right: 10px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .logout-btn-header:hover {
    background: rgba(255, 255, 255, 0.15);
  }
  
  .nav-menu {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px 16px;
    flex: 0 0 auto;
    min-width: 0;
    max-width: min(760px, 46vw);
    margin: 0;
    direction: ltr;
  }

  .nav-cluster {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    direction: rtl;
  }

  .nav-item-single-line {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-cluster--start {
    justify-content: flex-end;
  }

  .nav-cluster--end {
    justify-content: flex-start;
  }
  
  .nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    padding: 8px 16px;
    border-radius: 24px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.25s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .nav-item i {
    font-size: 1.1em;
  }
  
  .nav-item:hover {
    color: var(--white);
    background: rgba(124, 58, 237, 0.22);
    transform: translateY(-2px);
  }
  
  .nav-item.active {
    color: var(--accent-color);
    background: rgba(245, 158, 11, 0.12);
    font-weight: 700;
  }
  
  .nav-item:not(.nav-item--home).active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 50%;
    transform: translateX(50%);
    width: 30px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
  }

  .nav-item--home {
    grid-column: 2;
    justify-self: center;
    font-size: 1.12em;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 28px;
    background: linear-gradient(
      155deg,
      rgba(124, 58, 237, 0.65) 0%,
      rgba(91, 33, 182, 0.75) 28%,
      rgba(56, 31, 88, 0.88) 52%,
      rgba(245, 158, 11, 0.32) 88%,
      rgba(168, 85, 247, 0.45) 100%
    );
    border: 1px solid rgba(168, 85, 247, 0.75);
    box-shadow:
      0 0 32px rgba(124, 58, 237, 0.55),
      0 0 48px rgba(245, 158, 11, 0.12),
      0 4px 20px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    color: var(--white);
    letter-spacing: 0.02em;
  }

  .nav-home-label {
    background: linear-gradient(
      180deg,
      #fffef5 0%,
      #fde68a 22%,
      #f59e0b 55%,
      #c084fc 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 10px rgba(124, 58, 237, 0.55));
  }

  .nav-item--home i {
    font-size: 1.15em;
    color: var(--accent-color);
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.55));
    -webkit-text-fill-color: initial;
  }

  .nav-item--home:hover {
    background: linear-gradient(
      155deg,
      rgba(124, 58, 237, 0.78) 0%,
      rgba(245, 158, 11, 0.22) 45%,
      rgba(56, 31, 88, 0.85) 72%,
      rgba(168, 85, 247, 0.5) 100%
    );
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow:
      0 0 40px rgba(124, 58, 237, 0.6),
      0 0 36px rgba(245, 158, 11, 0.22),
      0 6px 22px rgba(0, 0, 0, 0.38);
    transform: translateY(-2px);
  }

  .nav-item--home:hover .nav-home-label {
    filter: drop-shadow(0 1px 12px rgba(245, 158, 11, 0.45));
  }

  .nav-item--home.active {
    background: linear-gradient(
      155deg,
      rgba(245, 158, 11, 0.35) 0%,
      rgba(124, 58, 237, 0.62) 38%,
      rgba(76, 29, 149, 0.82) 70%,
      rgba(168, 85, 247, 0.42) 100%
    );
    border-color: rgba(245, 158, 11, 0.72);
    box-shadow:
      0 0 42px rgba(245, 158, 11, 0.38),
      0 0 36px rgba(124, 58, 237, 0.45),
      inset 0 0 20px rgba(255, 255, 255, 0.06);
    font-weight: 800;
  }

  .nav-item--home.active::after {
    display: none;
  }

  /* روابط الجوال (نفس عناصر القائمة) */
  .mobile-nav-links {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0 4px;
    margin-top: 12px;
    border-top: 1px solid rgba(168, 85, 247, 0.25);
  }

  .mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1em;
    transition: background 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
  }

  .mobile-nav-item:hover {
    color: var(--white);
    background: rgba(124, 58, 237, 0.22);
  }

  .mobile-nav-item--home {
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(
      155deg,
      rgba(124, 58, 237, 0.65) 0%,
      rgba(56, 31, 88, 0.85) 50%,
      rgba(245, 158, 11, 0.28) 100%
    );
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow:
      0 0 24px rgba(124, 58, 237, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .mobile-nav-item--home .nav-home-label {
    display: inline-block;
  }

  .mobile-nav-item-single-line {
    white-space: nowrap;
  }
  
  .user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-inline-start: auto;
    flex-shrink: 0;
  }
  
  .subscribe-btn-header {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: white;
    border: none;
    border-radius: 30px;
    padding: 13px 22px;
    font-size: 1.05em;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 22px var(--orange-glow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .subscribe-btn-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    transform: translateX(-100%);
    transition: transform 0.5s ease;
  }
  
  .subscribe-btn-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--orange-glow);
  }
  
  .subscribe-btn-header:hover::before {
    transform: translateX(0);
  }
  
  .subscribe-icon {
    font-size: 1.28em;
  }
  
  .mobile-menu-btn {
    display: none;
    background: transparent;
    color: white;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
  }

  /* Mobile Menu Dropdown */
  .mobile-menu-dropdown {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 10, 46, 0.98) 0%, rgba(45, 26, 74, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    z-index: 999;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .mobile-menu-dropdown.show {
    display: block;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu-content {
    padding: 20px;
    direction: rtl;
  }

  .mobile-auth-section {
    margin-bottom: 15px;
  }

  .mobile-user-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .mobile-user-name {
    color: white;
    font-weight: 600;
    font-size: 1.1em;
    text-align: center;
  }

  .mobile-logout-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 10px 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
  }

  .mobile-logout-btn:hover {
    background: rgba(255, 255, 255, 0.25);
  }

  .mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-login-btn,
  .mobile-signup-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 12px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .mobile-login-btn:hover,
  .mobile-signup-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
  }


  /* نافذة خيارات تسجيل الدخول الرئيسية */
  .auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 20, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
  }

  .auth-modal {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-deep));
    border-radius: 22px;
    padding: 30px 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.35), 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.45);
    text-align: center;
  }

  .auth-modal h2 {
    margin-bottom: 10px;
    color: var(--text-light);
  }

  .auth-modal p {
    margin-bottom: 20px;
    color: #ddd;
    font-size: 0.95em;
  }

  .auth-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .auth-modal-close {
    margin-top: 15px;
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: underline;
  }


  @media (min-width: 993px) {
    .mobile-menu-dropdown {
      display: none !important;
    }
  }
  
  /* شاشات عريضة متوسطة (~1480px): تقليل الهيدر حتى لا يتداخل قسم الحساب مع القائمة */
  @media (max-width: 1640px) {
    .header-content {
      gap: 8px;
      padding-inline-start: 28px;
      padding-inline-end: 12px;
    }

    .header-cluster--leading {
      gap: 10px;
    }

    .header-cluster--trailing {
      gap: 8px;
    }

    .logo-container {
      gap: 10px;
    }

    .header-logo-auth-wrap {
      gap: 10px;
    }

    .header-image {
      width: 56px;
      height: 56px;
    }

    .user-info-header {
      padding: 4px 10px;
      gap: 6px;
      border-radius: 20px;
    }

    .user-name-header {
      font-size: 0.82em;
      max-width: 10rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .account-details-btn {
      padding: 3px 8px;
      font-size: 0.72em;
      border-radius: 14px;
      gap: 4px;
    }

    .logout-btn-header {
      padding: 3px 8px;
      margin-right: 6px;
      font-size: 0.72em;
      gap: 4px;
    }

    .subscription-status-badge {
      padding: 6px 11px;
      font-size: 0.78rem;
      margin-left: 6px;
    }

    .nav-menu {
      gap: 5px 8px;
      max-width: min(620px, 40vw);
    }

    .nav-cluster {
      gap: 6px;
    }

    .nav-item {
      padding: 6px 10px;
      font-size: 0.85em;
      gap: 6px;
    }

    .nav-item i {
      font-size: 1em;
    }

    .nav-item--home {
      font-size: 0.98em;
      padding: 7px 14px;
      border-radius: 22px;
    }

    .nav-item--home i {
      font-size: 1.05em;
    }

    .subscribe-btn-header {
      padding: 10px 17px;
      font-size: 0.9em;
      border-radius: 26px;
    }

    .subscribe-icon {
      font-size: 1.02em;
    }
  }

  /* 993px–1280px (مثل 1221px): ضغط إضافي حتى لا يتداخل صندوق الحساب/الخروج مع القائمة الوسطى */
  @media (max-width: 1280px) and (min-width: 993px) {
    .header-content {
      gap: 5px;
      padding-inline-start: 14px;
      padding-inline-end: 8px;
    }

    .header-cluster--leading {
      gap: 6px;
    }

    .header-cluster--trailing {
      gap: 6px;
    }

    .header-logo-auth-wrap {
      gap: 6px;
      flex-shrink: 1;
      min-width: 0;
      align-items: center;
    }

    /* inline-flex يضيق بعرض المحتوى (لا يملأ عمود الهيدر) */
    .auth-section {
      display: inline-flex;
      flex: 0 1 auto;
      width: auto;
      max-width: 100%;
      min-width: 0;
      margin-inline-end: 0;
    }

    .user-section {
      min-width: 0;
      flex-shrink: 1;
    }

    /* JS يفرض style.display = flex؛ !important + grid يمنع تمدداً بعرض العمود */
    .user-info-header {
      display: grid !important;
      grid-template-columns: auto auto;
      grid-template-rows: auto auto;
      column-gap: 8px;
      row-gap: 6px;
      justify-content: center;
      justify-items: center;
      align-items: center;
      width: max-content !important;
      max-width: 100%;
      min-width: 0;
      padding: 4px 0;
      padding-inline-start: 0;
      border-radius: 16px;
      background: transparent;
      border: none;
      box-shadow: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }

    .user-name-header {
      grid-column: 1 / -1;
      grid-row: 1;
      margin: 0;
      text-align: center;
      font-size: 0.72em;
      max-width: 11rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .account-details-btn,
    .logout-btn-header {
      position: relative;
      padding: 3px 7px;
      font-size: 0.65em;
      gap: 2px;
      margin-right: 0;
      border-radius: 11px;
    }

    .logout-btn-header {
      grid-column: 1;
      grid-row: 2;
    }

    .account-details-btn {
      grid-column: 2;
      grid-row: 2;
    }

    .account-details-btn span,
    .logout-btn-header span {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .header-image {
      width: 54px;
      height: 54px;
    }

    .subscription-status-badge {
      padding: 4px 8px;
      font-size: 0.66rem;
      margin-left: 4px;
    }

    .nav-menu {
      gap: 5px 9px;
      max-width: min(560px, 35vw);
    }

    .nav-cluster {
      gap: 6px;
    }

    .nav-item {
      padding: 6px 11px;
      font-size: 0.82em;
      gap: 6px;
    }

    .nav-item i {
      font-size: 1.02em;
    }

    .nav-item--home {
      font-size: 0.94em;
      padding: 7px 15px;
      border-radius: 22px;
    }

    .nav-item--home i {
      font-size: 1.06em;
    }

    .subscribe-btn-header {
      padding: 8px 13px;
      font-size: 0.82em;
      border-radius: 22px;
      gap: 6px;
    }

    .subscribe-icon {
      font-size: 0.95em;
    }
  }
  
  /* ≤992px: هيدر بنفس تخطيط الجوال — لوجو بالمنتصف، همبرغر يسار، اشترك/الشارة حول اللوجو */
  @media (max-width: 992px) {
    body {
      padding-top: 60px;
      overflow-x: hidden;
    }

    .header-banner {
      height: 60px;
      padding: 0 5px;
    }

    .header-cluster--leading,
    .header-cluster--trailing {
      display: contents;
    }

    .header-logo-auth-wrap {
      display: contents;
    }

    .header-content {
      justify-content: space-between;
      gap: 5px;
      padding: 0;
      position: relative;
      width: 100%;
      max-width: 100%;
    }

    .nav-menu {
      display: none;
    }

    .mobile-nav-links {
      display: flex;
    }

    .mobile-menu-btn {
      display: block;
      flex-shrink: 0;
      padding: 8px;
      font-size: 1.2em;
      order: 1;
      position: absolute;
      left: 5px;
      top: 50%;
      transform: translateY(-50%);
      z-index: 5;
    }

    .logo-container {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      order: 2;
      z-index: 1;
    }

    .header-image {
      width: 50px;
      height: 50px;
    }

    .subscription-status-badge {
      display: flex !important;
      position: absolute;
      right: 50%;
      top: 50%;
      transform: translate(calc(50% + min(292px, 41vw)), -50%);
      margin-left: 0;
      z-index: 1;
      font-size: clamp(0.62rem, 2.1vw, 0.78rem);
      padding: 6px 12px;
      max-width: min(280px, 52vw);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .auth-section {
      display: none !important;
    }

    .user-section {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(calc(-50% - min(108px, 15vw)), -50%);
      order: 4;
      flex-shrink: 0;
      gap: 0;
      z-index: 1;
      margin-inline-start: unset;
    }

    .subscribe-btn-header {
      padding: 8px;
      width: 40px;
      height: 40px;
      min-width: 40px;
      justify-content: center;
      white-space: normal;
    }

    .subscribe-icon {
      font-size: 1.15em;
    }

    .subscribe-btn-header span {
      display: none;
    }

    .auth-btn-header {
      padding: 6px;
      width: 32px;
      height: 32px;
      min-width: 32px;
      justify-content: center;
    }

    .auth-btn-header span {
      display: none;
    }

    .mobile-menu-dropdown {
      top: 60px;
    }
  }

  /* شاشات ضيقة جداً (مثل 492×837): تصغير شارة حالة الاشتراك قليلاً */
  @media (max-width: 492px) {
    .subscription-status-badge {
      font-size: clamp(0.46rem, 2.35vw, 0.55rem);
      padding: 3px 6px;
      max-width: min(200px, 52vw);
    }
  }

  #particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
  }
  /* ══ HERO ══ */
  .hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 36px 60px 70px; position: relative; z-index: 2;
  }
  .hero-inner {
    max-width: 1200px; margin: auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  }
  .hero-text { position: relative; }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(124,58,237,0.2); border: 1px solid rgba(168,85,247,0.45);
    border-radius: 30px; padding: 6px 16px; font-size: 13px;
    color: var(--purple-bright); font-weight: 700; margin-bottom: 24px;
  }
  .hero-badge::before { content: '✦'; color: var(--orange); margin-left: 4px; }
  .hero-title {
    font-size: clamp(38px, 4.5vw, 60px); font-weight: 900; line-height: 1.15; margin-bottom: 20px;
  }
  .hero-title .accent {
    background: linear-gradient(90deg, var(--orange) 0%, #fbbf24 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }
  .hero-title .purple-accent {
    background: linear-gradient(90deg, var(--purple-light) 0%, var(--purple-bright) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }
  .hero-sub {
    font-size: 17px; color: var(--text-muted); line-height: 1.85;
    max-width: 480px; margin-bottom: 36px; font-weight: 500;
  }
  .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn-hero-primary {
    background: linear-gradient(135deg, var(--orange), #f97316);
    color: #fff; font-family: 'Cairo', sans-serif;
    font-size: 16px; font-weight: 800; padding: 14px 34px;
    border: none; border-radius: 40px; cursor: pointer;
    box-shadow: 0 6px 32px var(--orange-glow); transition: all 0.25s;
  }
  .btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px var(--orange-glow); }
  .btn-hero-secondary {
    background: rgba(124,58,237,0.12);
    border: 1.5px solid rgba(168,85,247,0.5);
    color: var(--purple-bright); font-family: 'Cairo', sans-serif;
    font-size: 16px; font-weight: 700; padding: 14px 34px;
    border-radius: 40px; cursor: pointer; transition: all 0.25s;
  }
  .btn-hero-secondary:hover {
    background: rgba(124,58,237,0.22); border-color: var(--purple-light);
    transform: translateY(-3px);
  }
  .hero-stats {
    display: flex; gap: 28px; margin-top: 44px; padding-top: 32px;
    border-top: 1px solid var(--border);
  }
  .stat-item { text-align: center; }
  .stat-num { font-size: 26px; font-weight: 900; color: var(--orange); line-height: 1; }
  .stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-top: 4px; }

  /* ── اللابتوب ── */
  .hero-visual { display: flex; align-items: center; justify-content: center; position: relative; }
  .laptop-wrap {
    position: relative; width: 100%; max-width: 520px;
    animation: float 4s ease-in-out infinite;
  }
  @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

  .laptop-outer {
    background: linear-gradient(145deg, #2d1a4a, #1a0a2e);
    border-radius: 20px 20px 0 0; padding: 12px;
    border: 2px solid rgba(124,58,237,0.45);
    box-shadow: 0 0 70px rgba(124,58,237,0.3), 0 30px 60px rgba(0,0,0,0.55);
    aspect-ratio: 16/10; overflow: hidden;
  }
  .laptop-screen {
    background: var(--bg-deep); border-radius: 10px; width: 100%; height: 100%;
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid rgba(124,58,237,0.25);
  }
  .screen-bar {
    height: 28px; background: #2d1a4a;
    display: flex; align-items: center; gap: 6px; padding: 0 10px;
    border-bottom: 1px solid var(--border);
  }
  .screen-dot { width: 8px; height: 8px; border-radius: 50%; }
  .screen-dot:nth-child(1) { background: #ff5f57; }
  .screen-dot:nth-child(2) { background: #febc2e; }
  .screen-dot:nth-child(3) { background: #28c840; }
  .screen-url {
    flex: 1; background: rgba(255,255,255,0.06); border-radius: 4px; height: 14px;
    margin: 0 10px; font-size: 9px; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; font-family: monospace;
  }
  .screen-content {
    flex: 1; display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 12px; padding: 18px;
    background: radial-gradient(ellipse at 50% 30%, rgba(124,58,237,0.28) 0%, transparent 65%);
  }

  .screen-logo-img {
    width: 64px; height: 64px; border-radius: 50%; object-fit: contain;
    box-shadow: 0 0 40px rgba(124,58,237,0.7);
    animation: pulse-glow 2.5s ease-in-out infinite;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
  }
  .screen-logo-fallback {
    width: 72px; height: 72px; background: linear-gradient(135deg, #7c3aed, #4c1d95);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 900; color: var(--orange);
    box-shadow: 0 0 40px rgba(124,58,237,0.7);
    animation: pulse-glow 2.5s ease-in-out infinite;
  }
  @keyframes pulse-glow {
    0%,100% { box-shadow: 0 0 30px rgba(124,58,237,0.6); }
    50%      { box-shadow: 0 0 60px rgba(124,58,237,0.9), 0 0 80px rgba(124,58,237,0.4); }
  }
  .screen-title {
    font-size: 15px; font-weight: 900;
    background: linear-gradient(90deg, var(--orange), #fbbf24);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }
  .screen-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; width: 100%; }
  .sc {
    background: #2d1a4a; border-radius: 8px; padding: 8px 6px; text-align: center;
    border: 1px solid rgba(124,58,237,0.3);
  }
  .sc-icon { font-size: 18px; }
  .sc-pts { font-size: 10px; color: var(--orange); font-weight: 800; }
  .sc-name { font-size: 8px; color: var(--text-muted); margin-top: 2px; }

  .laptop-base {
    background: linear-gradient(180deg, #2d1a4a, #1a0a2e);
    height: 22px; border-radius: 0 0 16px 16px;
    border: 2px solid rgba(124,58,237,0.35); border-top: none; position: relative;
  }
  .laptop-base::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%); width: 60px; height: 6px;
    background: rgba(255,255,255,0.06); border-radius: 4px;
  }

  /* ── القوائم الطائرة ── */
  .float-badge {
    position: absolute;
    background: linear-gradient(135deg, #2d1a4a, #381f58);
    border: 1px solid rgba(168,85,247,0.45); border-radius: var(--radius-sm);
    padding: 12px 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.45);
    min-width: 160px;
  }
  .float-badge.right-top {
    right: -44px; top: 10%;
    animation: fb1 5s ease-in-out infinite;
  }
  .float-badge.left-bot {
    left: -36px; bottom: 12%;
    animation: fb2 5.5s ease-in-out infinite;
  }
  @keyframes fb1 { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }
  @keyframes fb2 { 0%,100% { transform: translateY(0) rotate(2deg); }    50% { transform: translateY(-7px) rotate(-2deg); } }

  .float-badge-inner { display: flex; align-items: center; gap: 10px; }

  /* ★ صورة داخل القائمة الطائرة ← غيّر src */
  .badge-img {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    border: 2px solid rgba(168,85,247,0.5);
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
  }
  .badge-icon-fallback {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
  }
  .badge-text { display: flex; flex-direction: column; }
  .badge-label { color: var(--text-muted); font-size: 11px; font-weight: 600; display: block; }
  .badge-val   { color: var(--orange); font-size: 17px; font-weight: 900; line-height: 1.2; }

  /* ── HERO Mobile Layout ── */
  @media (max-width: 768px) {
    .hero {
      min-height: auto;
      padding: 24px 18px 48px;
    }

    .hero-inner {
      grid-template-columns: 1fr;
      gap: 24px;
    }

    .hero-text {
      text-align: center;
    }

    .hero-sub {
      max-width: 100%;
      margin-bottom: 24px;
    }

    .hero-btns {
      justify-content: center;
    }

    .hero-stats {
      justify-content: center;
      margin-top: 30px;
      padding-top: 24px;
    }

    .hero-visual {
      order: 2;
    }

    .laptop-wrap {
      max-width: 280px;
      margin: 0 auto;
    }

    .container {
      padding: 0 16px;
    }

    .steps,
    .features-grid,
    .pu-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }
  }

  /* ══ SHARED ══ */
  section { position: relative; z-index: 1; }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
  .section-header { text-align: center; margin-bottom: 52px; }
  .section-tag {
    display: inline-block; background: rgba(124,58,237,0.18);
    border: 1px solid rgba(168,85,247,0.38); border-radius: 30px;
    padding: 5px 16px; font-size: 13px; color: var(--purple-bright);
    font-weight: 700; margin-bottom: 14px;
  }
  .section-title { font-size: clamp(26px,3.5vw,40px); font-weight: 900; line-height: 1.2; margin-bottom: 12px; }
  .section-sub { color: var(--text-muted); font-size: 16px; max-width: 500px; margin: 0 auto; line-height: 1.7; }

  /* ══ HOW IT WORKS ══ */
  .how { padding: 90px 0; background: rgba(0,0,0,0.18); }
  .steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
  .step {
    text-align: center; padding: 44px 28px 32px;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card2));
    border: 1px solid var(--border); border-radius: var(--radius);
    position: relative; transition: transform 0.3s, box-shadow 0.3s;
  }
  .step:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 28px rgba(124,58,237,0.2);
  }
  .step-num {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 900; color: #fff;
    box-shadow: 0 4px 16px var(--orange-glow);
  }
  .step-icon { font-size: 48px; margin-bottom: 16px; display: block; }
  .step-title { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
  .step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.75; }

  /* ══ CATEGORIES ══ */
  .features { padding: 90px 0; }
  .features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
  .feat-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card2));
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer; position: relative;
  }
  .feat-card::after {
    content: ''; position: absolute; inset: 0; border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(124,58,237,0.1), transparent);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
  }
  .feat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 32px rgba(124,58,237,0.22);
    border-color: var(--border-bright);
  }
  .feat-card:hover::after { opacity: 1; }

  .card-img {
    width: 100%; aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  /* ★ صور الفئات ← استبدل src في كل img.cat-img */
  .card-img img.cat-img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; inset: 0;
    transition: transform 0.4s;
  }
  .feat-card:hover .card-img img.cat-img { transform: scale(1.06); }
  .card-emoji { font-size: 62px; position: relative; z-index: 1; }

  /* خلفيات Placeholder */
  .card-img-epl    { background: linear-gradient(135deg, #065f46, #022c22); }
  .card-img-saudi  { background: linear-gradient(135deg, #1e3a5f, #0a1e35); }
  .card-img-quran  { background: linear-gradient(135deg, #3b0764, #1e0a3a); }
  .card-img-player { background: linear-gradient(135deg, #1c1c2e, #0d0d18); }

  .card-badge {
    position: absolute; top: 10px; left: 10px; z-index: 3;
    background: var(--orange); color: #fff; font-size: 12px; font-weight: 800;
    padding: 4px 10px; border-radius: 20px;
    box-shadow: 0 2px 10px var(--orange-glow);
  }
  .card-body { padding: 16px 18px 22px; }
  .card-name { font-size: 17px; font-weight: 800; text-align: center; }
  .card-desc { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 6px; line-height: 1.65; }

  /* ══ CTA ══ */
  .cta-section { padding: 90px 0; }
  .cta-box {
    background: linear-gradient(135deg, #2d1a4a, #1a0a2e 50%, #2d1a4a);
    border: 1px solid rgba(168,85,247,0.4); border-radius: 28px;
    padding: 70px 60px; text-align: center; position: relative; overflow: hidden;
    box-shadow: 0 0 80px rgba(124,58,237,0.2);
  }
  .cta-box::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% -10%, rgba(124,58,237,0.35) 0%, transparent 60%);
  }
  .cta-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
  .cta-orb {
    position: absolute; border-radius: 50%;
    background: rgba(124,58,237,0.18); filter: blur(40px);
    animation: orb-move 8s ease-in-out infinite;
  }
  .cta-orb:nth-child(1) { width: 300px; height: 300px; top: -100px; right: -80px; }
  .cta-orb:nth-child(2) { width: 250px; height: 250px; bottom: -80px; left: -60px; animation-delay: 4s; }
  @keyframes orb-move { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px,15px); } }
  .cta-inner { position: relative; z-index: 2; }
  .cta-title { font-size: clamp(28px,4vw,48px); font-weight: 900; margin-bottom: 16px; }
  .cta-sub { font-size: 17px; color: var(--text-muted); max-width: 500px; margin: 0 auto 36px; line-height: 1.7; }
  .cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
  .btn-cta-main {
    background: linear-gradient(135deg, var(--orange), #f97316);
    color: #fff; font-family: 'Cairo', sans-serif;
    font-size: 17px; font-weight: 800; padding: 16px 42px;
    border: none; border-radius: 40px; cursor: pointer;
    box-shadow: 0 6px 30px var(--orange-glow); transition: all 0.25s;
  }
  .btn-cta-main:hover { transform: translateY(-3px); box-shadow: 0 12px 40px var(--orange-glow); }

  /* ══ FOOTER ══ */
  footer {
    background: rgba(0,0,0,0.35); border-top: 1px solid var(--border);
    padding: 40px 60px; text-align: center;
    color: var(--text-muted); font-size: 14px; position: relative; z-index: 2;
  }
  .foot-logo { font-size: 20px; font-weight: 900; color: var(--white); margin-bottom: 10px; }
  .foot-logo span { color: var(--orange); }

  /* ══ REVEAL ══ */
  .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.65s ease, transform 0.65s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.10s; }
  .reveal-delay-2 { transition-delay: 0.22s; }
  .reveal-delay-3 { transition-delay: 0.34s; }
  .reveal-delay-4 { transition-delay: 0.46s; }

  /* ══ POWER-UPS ══ */
  .powerups { padding: 90px 0; background: rgba(0,0,0,0.22); }

  .pu-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 24px;
  }

  .pu-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card2));
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 36px 24px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.32s, box-shadow 0.32s, border-color 0.32s;
  }
  .pu-card::before {
    content: '';
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 0.32s;
    pointer-events: none;
    border-radius: 22px;
  }
  .pu-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--pu-color, var(--purple-light));
    box-shadow:
      0 22px 55px rgba(0,0,0,0.38),
      0 0 35px var(--pu-glow, var(--purple-glow));
  }
  .pu-card:hover::before { opacity: 1; }

  /* لون مخصص لكل بطاقة */
  .pu-risk   { --pu-color:#ef4444; --pu-glow:rgba(239,68,68,0.35); }
  .pu-risk::before   { background: radial-gradient(ellipse at 50% 0%, rgba(239,68,68,0.12), transparent 70%); }

  .pu-delete { --pu-color:#f59e0b; --pu-glow:rgba(245,158,11,0.35); }
  .pu-delete::before { background: radial-gradient(ellipse at 50% 0%, rgba(245,158,11,0.12), transparent 70%); }

  .pu-steal  { --pu-color:#22d3ee; --pu-glow:rgba(34,211,238,0.35); }
  .pu-steal::before  { background: radial-gradient(ellipse at 50% 0%, rgba(34,211,238,0.12), transparent 70%); }

  .pu-wheel  { --pu-color:#a855f7; --pu-glow:rgba(168,85,247,0.4); }
  .pu-wheel::before  { background: radial-gradient(ellipse at 50% 0%, rgba(168,85,247,0.15), transparent 70%); }

  /* أيقونة */
  .pu-icon-wrap {
    width: 76px; height: 76px; border-radius: 50%;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.08);
    transition: transform 0.32s;
    position: relative; z-index: 1;
  }
  .pu-risk   .pu-icon-wrap { background: rgba(239,68,68,0.15);  border-color: rgba(239,68,68,0.3); }
  .pu-delete .pu-icon-wrap { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.3); }
  .pu-steal  .pu-icon-wrap { background: rgba(34,211,238,0.15); border-color: rgba(34,211,238,0.3); }
  .pu-wheel  .pu-icon-wrap { background: rgba(168,85,247,0.15); border-color: rgba(168,85,247,0.3); }
  .pu-card:hover .pu-icon-wrap { transform: scale(1.12) rotate(-6deg); }
  .pu-icon-img { width: 90px; height: 90px; object-fit: contain; display: block; }

  .pu-name {
    font-size: 18px; font-weight: 900; margin-bottom: 10px;
    position: relative; z-index: 1;
  }
  .pu-desc {
    font-size: 13px; color: var(--text-muted); line-height: 1.75;
    position: relative; z-index: 1;
  }

  /* شارة "جديد" */
  .pu-badge-new {
    position: absolute; top: 14px; left: 14px;
    background: linear-gradient(135deg, var(--pu-color, var(--orange)), var(--pu-color, var(--orange-dark)));
    color: #fff; font-size: 11px; font-weight: 800;
    padding: 3px 10px; border-radius: 20px;
    box-shadow: 0 2px 10px var(--pu-glow, var(--orange-glow));
  }

  /* ══ WHEEL MODAL ══ */
  .wheel-modal {
    display: none;
    position: fixed; inset: 0; z-index: 999;
    background: rgba(10,5,20,0.82);
    backdrop-filter: blur(10px);
    align-items: center; justify-content: center;
    flex-direction: column; gap: 28px;
  }
  .wheel-modal.open { display: flex; }

  .wheel-modal-box {
    background: linear-gradient(145deg, #2d1a4a, #1e0f36);
    border: 1px solid rgba(168,85,247,0.45);
    border-radius: 28px; padding: 40px;
    text-align: center; position: relative;
    box-shadow: 0 0 80px rgba(124,58,237,0.35);
    min-width: 340px;
  }
  .wheel-close {
    position: absolute; top: 16px; left: 20px;
    background: rgba(255,255,255,0.08); border: none;
    color: var(--text-muted); font-size: 22px; cursor: pointer;
    border-radius: 50%; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
  }
  .wheel-close:hover { background: rgba(239,68,68,0.25); color:#fff; }

  .wheel-title {
    font-size: 20px; font-weight: 900; margin-bottom: 28px;
    background: linear-gradient(90deg, var(--purple-light), var(--purple-bright));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }

  /* العجلة */
  .wheel-canvas-wrap {
    position: relative; display: inline-block; margin-bottom: 24px;
  }
  #wheelCanvas {
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(124,58,237,0.5), 0 0 0 4px rgba(168,85,247,0.25);
    display: block;
  }
  .wheel-pointer {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 26px solid var(--orange);
    filter: drop-shadow(0 2px 6px var(--orange-glow));
  }

  .wheel-spin-btn {
    background: linear-gradient(135deg, var(--purple-vivid), #5b21b6);
    color: #fff; font-family: 'Cairo', sans-serif;
    font-size: 16px; font-weight: 800; padding: 13px 40px;
    border: none; border-radius: 40px; cursor: pointer;
    box-shadow: 0 5px 25px var(--purple-glow); transition: all 0.25s;
    width: 100%;
  }
  .wheel-spin-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 32px var(--purple-glow); }
  .wheel-spin-btn:disabled { opacity: 0.55; cursor: not-allowed; }

  .wheel-outcome {
    margin-top: 16px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s;
  }
  .wheel-outcome.show { opacity: 1; }

  .wheel-result {
    font-size: 16px; font-weight: 800;
    min-height: 26px; color: var(--orange);
    margin: 0;
  }

  .wheel-result-detail {
    margin: 10px 0 0;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
    color: rgba(245, 243, 255, 0.88);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .wheel-result-detail:empty { display: none; }

  /* نافذة تفاصيل الحساب (مثل lobby) */
  #accountDetailsModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    align-items: center;
    justify-content: center;
  }
  #accountDetailsOverlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 5, 20, 0.82) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  #accountDetailsModal > div:nth-child(2) {
    position: relative;
    max-width: 400px;
    width: 90%;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-deep)) !important;
    border-radius: 18px;
    padding: 25px 20px 20px;
    border: 1px solid rgba(168, 85, 247, 0.45) !important;
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.3), 0 20px 50px rgba(0, 0, 0, 0.55) !important;
    text-align: center;
  }

  /* تثبيت تخطيط الجوال: البطاقات سطر بسطر */
  @media (max-width: 768px) {
    .steps,
    .features-grid,
    .pu-grid {
      grid-template-columns: 1fr !important;
      gap: 16px;
    }
  }
