﻿/* Modern Premium Scrollbar */
    ::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }

    ::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.3);
      border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, #10b981, #34d399);
      border-radius: 10px;
      border: 2px solid rgba(0, 0, 0, 0.3);
      box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    }

    ::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, #34d399, #10b981);
      box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    }

    * {
      scrollbar-width: thin;
      scrollbar-color: #10b981 rgba(0, 0, 0, 0.3);
      box-sizing: border-box;
      transition: color .2s ease, background-color .2s ease;
    }

    html {
      scroll-behavior: smooth;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 40px;
      width: 100%;
    }

    body {
      margin: 0;
      background: #000;
      color: #fff;
      font-family: 'Tajawal', 'Cairo', 'Inter', 'Poppins', system-ui, sans-serif;
      font-weight: 400;
      letter-spacing: .01em;
      line-height: 1.7;
      overflow-x: hidden;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* Top Bar & Back Button */
    .top-bar {
      position: sticky;
      top: 0;
      z-index: 1000;
      padding: 20px;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
      backdrop-filter: blur(10px);
      display: flex;
      align-items: center;
      justify-content: flex-start;
      pointer-events: auto;
    }

    .back-button {
      pointer-events: auto;
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 12px 24px;
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.05));
      border: 1.5px solid rgba(52, 211, 153, 0.3);
      border-radius: 16px;
      color: #fff;
      font-weight: 700;
      text-decoration: none;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      backdrop-filter: blur(20px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      position: relative;
      overflow: hidden;
    }

    .back-button:hover {
      transform: translateX(-5px) scale(1.02);
      border-color: #34d399;
      color: #34d399;
      box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2);
    }

    [dir="rtl"] .back-button:hover {
      transform: translateX(5px) scale(1.02);
    }

    .back-button i {
      font-size: 18px;
      transition: transform 0.3s ease;
    }

    [dir="rtl"] .back-button i {
      transform: scaleX(-1);
    }

    .back-button:hover i {
      transform: translateX(-3px);
    }

    [dir="rtl"] .back-button:hover i {
      transform: scaleX(-1) translateX(-3px);
    }

    /* Premium Button Effects */
    .shimmer {
      position: relative;
      overflow: hidden;
    }

    .shimmer::after {
      content: "";
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(45deg,
          transparent,
          rgba(255, 255, 255, 0.1),
          transparent);
      transform: rotate(45deg);
      animation: shimmerMove 3s infinite;
    }

    @keyframes shimmerMove {
      0% {
        transform: translate(-100%, -100%) rotate(45deg);
      }

      100% {
        transform: translate(100%, 100%) rotate(45deg);
      }
    }

    /* Download Page Layout */
    main {
      flex: 1;
      position: relative;
      padding: 60px 20px 100px;
      display: flex;
      flex-direction: column;
      align-items: center;
      z-index: 1;
    }

    #particles {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
      opacity: 0.6;
    }

    .download-hero {
      text-align: center;
      max-width: 900px;
      margin-bottom: 60px;
      animation: fadeInDown 0.8s ease-out;
    }

    @keyframes fadeInDown {
      from {
        opacity: 0;
        transform: translateY(-30px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .hero-title {
      font-size: clamp(40px, 8vw, 72px);
      font-weight: 900;
      line-height: 1.1;
      margin-bottom: 24px;
      background: linear-gradient(135deg, #fff 0%, #34d399 50%, #10b981 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 10px 30px rgba(16, 185, 129, 0.3));
    }

    .hero-subtitle {
      font-size: clamp(16px, 4vw, 20px);
      color: rgba(255, 255, 255, 0.7);
      max-width: 650px;
      margin: 0 auto;
      line-height: 1.6;
    }

    .download-card {
      background: linear-gradient(145deg, rgba(16, 185, 129, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
      backdrop-filter: blur(30px);
      border: 1.5px solid rgba(52, 211, 153, 0.25);
      border-radius: 40px;
      padding: 80px 40px;
      width: 100%;
      max-width: 850px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 50px;
      box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(16, 185, 129, 0.1);
      animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
      position: relative;
      overflow: hidden;
    }

    .download-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.6), transparent);
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(40px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .version-badge {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.1));
      color: #34d399;
      padding: 10px 24px;
      border-radius: 99px;
      font-weight: 800;
      font-size: 15px;
      border: 1px solid rgba(52, 211, 153, 0.4);
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 20px;
      box-shadow: 0 5px 15px rgba(16, 185, 129, 0.1);
    }

    .main-download-btn {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      color: #000;
      padding: 26px 80px;
      border-radius: 24px;
      font-size: 26px;
      font-weight: 900;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 24px;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      box-shadow: 0 20px 50px rgba(16, 185, 129, 0.4);
      position: relative;
    }

    .main-download-btn:hover {
      transform: scale(1.05) translateY(-8px);
      box-shadow: 0 35px 70px rgba(16, 185, 129, 0.5);
      background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    }

    .main-download-btn i {
      font-size: 32px;
    }

    .download-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
      width: 100%;
    }

    .stat-item {
      padding: 24px;
      background: rgba(255, 255, 255, 0.04);
      border: 1.5px solid rgba(255, 255, 255, 0.06);
      border-radius: 24px;
      text-align: center;
      transition: all 0.4s ease;
    }

    .stat-item:hover {
      background: rgba(16, 185, 129, 0.06);
      border-color: rgba(52, 211, 153, 0.3);
      transform: translateY(-8px) scale(1.02);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

    .stat-value {
      display: block;
      font-size: 22px;
      font-weight: 800;
      color: #fff;
      margin-bottom: 6px;
    }

    .stat-label {
      font-size: 14px;
      color: rgba(255, 255, 255, 0.4);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    /* Guide Section */
    .guide-section {
      margin-top: 120px;
      max-width: 1000px;
      width: 100%;
    }

    .section-title {
      font-size: 38px;
      font-weight: 900;
      margin-bottom: 50px;
      text-align: center;
      background: linear-gradient(135deg, #fff, #34d399);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .guide-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 40px;
    }

    .guide-step {
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
      border: 1.5px solid rgba(255, 255, 255, 0.08);
      padding: 40px;
      border-radius: 32px;
      position: relative;
      transition: all 0.4s ease;
    }

    .guide-step:hover {
      border-color: rgba(52, 211, 153, 0.4);
      background: rgba(16, 185, 129, 0.05);
      transform: translateY(-10px);
    }

    .step-number {
      position: absolute;
      top: -24px;
      left: 30px;
      width: 56px;
      height: 56px;
      background: linear-gradient(135deg, #10b981, #34d399);
      color: #000;
      border-radius: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 26px;
      font-weight: 900;
      box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
      transform: rotate(-5deg);
    }

    [dir="rtl"] .step-number {
      left: auto;
      right: 30px;
      transform: rotate(5deg);
    }

    .guide-step h3 {
      font-size: 22px;
      font-weight: 800;
      margin-bottom: 16px;
      color: #34d399;
    }

    .guide-step p {
      color: rgba(255, 255, 255, 0.7);
      font-size: 16px;
      line-height: 1.7;
    }

    footer {
      padding: 60px 0;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(20px);
    }

    .foot {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 30px;
    }

    @media (max-width: 768px) {
      .download-card {
        padding: 60px 24px;
      }

      .download-stats {
        grid-template-columns: 1fr;
        gap: 20px;
      }

      .hero-title {
        font-size: 42px;
      }

      .main-download-btn {
        padding: 22px 40px;
        font-size: 20px;
        width: 100%;
        justify-content: center;
      }

      .top-bar {
        padding: 15px;
      }
    }

    /* Premium Dropdown Styles */
    .lang-dropdown {
      position: relative;
      z-index: 2000;
    }

    .lang-toggle {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 20px;
      border-radius: 14px;
      background: rgba(16, 185, 129, 0.1);
      border: 1.5px solid rgba(52, 211, 153, 0.3);
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      color: #fff;
      font-weight: 700;
    }

    .lang-toggle:hover {
      background: rgba(16, 185, 129, 0.2);
      border-color: #34d399;
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    }

    .lang-menu {
      position: absolute;
      top: calc(100% + 12px);
      right: 0;
      min-width: 180px;
      background: rgba(10, 25, 47, 0.98);
      backdrop-filter: blur(25px);
      border: 1px solid rgba(52, 211, 153, 0.2);
      border-radius: 16px;
      padding: 8px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(15px) scale(0.95);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      z-index: 1000;
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
      pointer-events: none;
    }

    .lang-dropdown.open .lang-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }

    .lang-option {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      border-radius: 12px;
      color: rgba(255, 255, 255, 0.8);
      cursor: pointer;
      transition: all 0.2s ease;
      font-weight: 600;
    }

    .lang-option:hover {
      background: rgba(52, 211, 153, 0.15);
      color: #34d399;
      transform: translateX(-4px);
    }

    [dir="rtl"] .lang-option:hover {
      transform: translateX(4px);
    }

    .lang-option.active {
      background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(16, 185, 129, 0.1));
      color: #34d399;
      border: 1px solid rgba(52, 211, 153, 0.2);
    }

    .lang-option span:first-child {
      font-size: 20px;
    }

    /* Redesign Top Bar Container */
    .top-bar .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

@keyframes modalSlideIn {
      from {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
      }

      to {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }

    @keyframes rotate {
      from {
        transform: rotate(0deg);
      }

      to {
        transform: rotate(360deg);
      }
    }

    @keyframes float {

      0%,
      100% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(-10px);
      }
    }

    @keyframes pulse {

      0%,
      100% {
        transform: scale(1);
        opacity: 0.6;
      }

      50% {
        transform: scale(1.05);
        opacity: 0.8;
      }
    }

    #accountInfoModalContent::-webkit-scrollbar {
      width: 6px;
    }

    #accountInfoModalContent::-webkit-scrollbar-thumb {
      background: rgba(16, 185, 129, 0.3);
      border-radius: 10px;
    }


