/* تصميم بسيط وسهل للمستخدمين */

:root {
  --bg: #0B1628;
  --card: #0E1E36;
  --text: #FFFFFF;
  --muted: #A0B3CC;
  --blue: #2D7DFF;
  --green: #34D058;
  --gold: #F6C25A;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== الأنيميشن ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(246, 194, 90, 0.4);
  }
  50% { 
    box-shadow: 0 0 20px 10px rgba(246, 194, 90, 0.2);
  }
}

@keyframes glow {
  0%, 100% { 
    border-color: var(--gold);
    text-shadow: 0 0 5px rgba(246, 194, 90, 0.5);
  }
  50% { 
    border-color: #FFD700;
    text-shadow: 0 0 20px rgba(246, 194, 90, 0.8);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #070D18 0%, #0B1628 50%, #0A1424 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, "Noto Sans Arabic", sans-serif;
  line-height: 1.7;
  scroll-behavior: smooth;
}

/* شريط التنقل */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(11, 22, 40, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.menu-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-btn svg {
  width: 24px;
  height: 24px;
}

.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(30px) scale(0.5);
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.5rem 0.75rem;
    height: 50px;
  }
  
  .menu-btn {
    width: 36px;
    height: 36px;
  }
  
  .menu-btn svg {
    width: 22px;
    height: 22px;
  }
  
  .nav-title {
    font-size: 0.9rem;
  }
  
  .nav-logo {
    width: 30px;
    height: 30px;
  }
}

.navbar.scrolled .nav-logo {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.navbar.scrolled .nav-title {
  opacity: 0;
  pointer-events: none;
}

/* القائمة الجانبية - تصميم عصري */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85%;
  height: 100%;
  background: linear-gradient(180deg, #0a1525 0%, #0E1E36 50%, #0a1525 100%);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(45, 125, 255, 0.15);
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem;
  background: linear-gradient(135deg, rgba(45, 125, 255, 0.1) 0%, transparent 100%);
  border-bottom: 1px solid rgba(45, 125, 255, 0.2);
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-title::before {
  content: "☰";
  font-size: 1rem;
  color: var(--blue);
}

.close-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.close-btn:hover {
  background: rgba(255, 80, 80, 0.15);
  border-color: rgba(255, 80, 80, 0.3);
  color: #ff6b6b;
  transform: rotate(90deg);
}

.close-btn svg {
  width: 20px;
  height: 20px;
}

.sidebar-links {
  padding: 1rem 0.75rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--blue);
  transform: scaleY(0);
  transition: transform 0.25s ease;
  border-radius: 0 4px 4px 0;
}

.sidebar-link:hover {
  background: linear-gradient(90deg, rgba(45, 125, 255, 0.15) 0%, rgba(45, 125, 255, 0.05) 100%);
  color: var(--text);
  border-color: rgba(45, 125, 255, 0.2);
  transform: translateX(-4px);
}

.sidebar-link:hover::before {
  transform: scaleY(1);
}

.sidebar-link:active {
  background: rgba(45, 125, 255, 0.25);
  transform: translateX(-4px) scale(0.98);
}

.sidebar-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  padding: 4px;
  background: rgba(45, 125, 255, 0.1);
  border-radius: 8px;
  transition: all 0.25s ease;
}

.sidebar-link:hover svg {
  background: rgba(45, 125, 255, 0.2);
  color: var(--blue);
}

.sidebar-link span {
  font-size: 0.95rem;
  font-weight: 600;
}

/* أنماط روابط خاصة */
.sidebar-link-gold svg {
  background: rgba(246, 194, 90, 0.15);
  color: var(--gold);
}

.sidebar-link-gold:hover {
  background: linear-gradient(90deg, rgba(246, 194, 90, 0.15) 0%, rgba(246, 194, 90, 0.05) 100%);
  border-color: rgba(246, 194, 90, 0.3);
}

.sidebar-link-gold:hover svg {
  background: rgba(246, 194, 90, 0.25);
}

.sidebar-link-gold::before {
  background: var(--gold);
}

.sidebar-link-telegram svg {
  background: rgba(0, 136, 204, 0.15);
  color: #0088cc;
}

.sidebar-link-telegram:hover {
  background: linear-gradient(90deg, rgba(0, 136, 204, 0.15) 0%, rgba(0, 136, 204, 0.05) 100%);
  border-color: rgba(0, 136, 204, 0.3);
}

.sidebar-link-telegram:hover svg {
  background: rgba(0, 136, 204, 0.25);
}

.sidebar-link-telegram::before {
  background: #0088cc;
}

/* تذييل القائمة الجانبية */
.sidebar-footer {
  padding: 1.25rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.sidebar-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.sidebar-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.sidebar-footer-text {
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.5;
  margin: 0;
}

/* الصفحة الرئيسية */
.page {
  flex: 1;
  padding: 4.5rem 0 2rem;
  width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  box-sizing: border-box;
}

/* صندوق الهيرو */
.hero-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
  scroll-margin-top: 4rem;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-box {
    flex-direction: row-reverse;
    text-align: right;
    gap: 2.5rem;
    justify-content: center;
  }
}

/* جانب الشعار */
.logo-side {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-side a {
  display: block;
  line-height: 0;
}

.big-logo {
  width: 140px;
  height: 140px;
  max-width: 140px;
  max-height: 140px;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.3s ease,
              opacity 0.4s ease;
  animation: float 3s ease-in-out infinite;
  object-fit: contain;
}

/* عند التمرير - الشعار يطير للأعلى */
body.scrolled .big-logo {
  transform: translateY(-100vh) scale(0.2);
  opacity: 0;
  animation: none;
}

.big-logo:hover {
  transform: scale(1.08);
  box-shadow: 0 25px 70px rgba(45, 125, 255, 0.3);
  animation-play-state: paused;
}

@media (min-width: 768px) {
  .big-logo {
    width: 180px;
    height: 180px;
    max-width: 180px;
    max-height: 180px;
  }
}

/* جانب المحتوى */
.content-side {
  max-width: 550px;
  flex: 1;
  min-width: 0;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text);
}

.lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* الأزرار */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .buttons {
    flex-direction: row;
    gap: 1rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-icon {
  width: 22px;
  height: 22px;
}

.btn-android {
  background: linear-gradient(135deg, #34D058, #28A745);
  color: #fff;
  box-shadow: 0 8px 24px rgba(52, 208, 88, 0.3);
}

.btn-android:hover {
  box-shadow: 0 12px 32px rgba(52, 208, 88, 0.4);
}

.btn-ios {
  background: linear-gradient(135deg, #333, #1a1a1a);
  color: #fff;
  border: 1px solid #444;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-ios:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.btn-register {
  background: linear-gradient(135deg, #34D058, #28A745);
  color: #fff;
  box-shadow: 0 8px 24px rgba(52, 208, 88, 0.3);
}

.btn-register:hover {
  box-shadow: 0 12px 32px rgba(52, 208, 88, 0.4);
}

.btn-login {
  background: linear-gradient(135deg, var(--blue), #1D6DE8);
  color: #fff;
  box-shadow: 0 8px 24px rgba(45, 125, 255, 0.3);
}

.btn-login:hover {
  box-shadow: 0 12px 32px rgba(45, 125, 255, 0.4);
}

/* قسم كود الترويج */
.promo-section {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(14, 30, 54, 0.8), rgba(11, 22, 40, 0.9));
  border-radius: 20px;
  border: 1px solid rgba(246, 194, 90, 0.2);
  animation: fadeInUp 0.8s ease-out 0.2s both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-margin-top: 4rem;
}

.promo-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(246, 194, 90, 0.15);
}

.promo-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.promo-section > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.promo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.promo-code {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 3px;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #1a2a42, #0E1E36);
  border: 2px dashed var(--gold);
  border-radius: 12px;
  color: var(--gold);
  font-family: monospace;
  animation: glow 2s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.promo-code:hover {
  transform: scale(1.05);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.copy-btn:hover {
  background: #1D6DE8;
  transform: translateY(-2px);
}

.copy-icon {
  width: 18px;
  height: 18px;
}

.promo-desc {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(246, 194, 90, 0.1);
  border-radius: 8px;
  display: inline-block;
}

.promo-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* زر معرفة المزيد */
.learn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1px solid rgba(246, 194, 90, 0.3);
  border-radius: 20px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.learn-more-btn:hover {
  background: rgba(246, 194, 90, 0.1);
  border-color: var(--gold);
}

/* نسخة زرقاء */
.learn-more-btn.learn-more-blue {
  color: var(--blue);
  border-color: rgba(45, 125, 255, 0.3);
}

.learn-more-btn.learn-more-blue:hover {
  background: rgba(45, 125, 255, 0.1);
  border-color: var(--blue);
}

/* مسافة إضافية لزر معرفة المزيد في قسم التطبيق */
.learn-more-btn.app-learn-btn {
  margin-top: 2rem;
}

.learn-more-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.learn-more-btn.active .learn-more-icon {
  transform: rotate(180deg);
}

/* محتوى معرفة المزيد */
.learn-more-content {
  display: none;
  text-align: right;
  background: rgba(11, 22, 40, 0.6);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.4s ease;
}

.learn-more-content.active {
  display: block;
}

.learn-more-content h3 {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* فيديو شرح الكود */
.promo-video-box {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.promo-video {
  width: 100%;
  max-height: 400px;
  display: block;
  border-radius: 12px;
}

@media (max-width: 480px) {
  .promo-video {
    max-height: 250px;
  }
  
  .promo-video-box {
    margin-bottom: 1rem;
    border-radius: 10px;
  }
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: right;
}

.step-number {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: linear-gradient(135deg, var(--blue), #1D6DE8);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.step-item span:last-child {
  color: var(--muted);
  line-height: 1.6;
  padding-top: 0.15rem;
}

.step-item strong {
  color: var(--gold);
}

.benefits-box {
  background: rgba(52, 208, 88, 0.08);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(52, 208, 88, 0.2);
}

.benefits-box h4 {
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.4rem 0;
  padding-right: 1.5rem;
  position: relative;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--green);
  font-weight: 700;
}

/* نسخة زرقاء */
.benefits-box.benefits-blue {
  background: rgba(45, 125, 255, 0.08);
  border-color: rgba(45, 125, 255, 0.2);
}

.benefits-box.benefits-blue h4 {
  color: var(--blue);
}

.benefits-box.benefits-blue .benefits-list li::before {
  color: var(--blue);
}

.conclusion {
  background: rgba(246, 194, 90, 0.08);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(246, 194, 90, 0.15);
}

.conclusion p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.conclusion strong {
  color: var(--gold);
}

/* نسخة زرقاء */
.conclusion.conclusion-blue {
  background: rgba(45, 125, 255, 0.08);
  border-color: rgba(45, 125, 255, 0.15);
}

.conclusion.conclusion-blue strong {
  color: var(--blue);
}

.btn-gold {
  background: linear-gradient(135deg, #F6C25A, #D8A73F);
  color: #0B1628;
  box-shadow: 0 8px 24px rgba(246, 194, 90, 0.3);
}

.btn-gold:hover {
  box-shadow: 0 12px 32px rgba(246, 194, 90, 0.4);
}

/* قسم مجموعة التوقعات */
.group-section {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(14, 30, 54, 0.8), rgba(11, 22, 40, 0.9));
  border-radius: 20px;
  border: 1px solid rgba(45, 125, 255, 0.2);
  animation: fadeInUp 0.8s ease-out 0.4s both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-margin-top: 4rem;
}

.group-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(45, 125, 255, 0.15);
}

.group-logo {
  width: 180px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  animation: float 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.group-logo:hover {
  transform: scale(1.05);
}

.group-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.group-desc {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.group-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(45, 125, 255, 0.1);
  border-radius: 25px;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.feature:hover {
  transform: scale(1.05);
  background: rgba(45, 125, 255, 0.2);
}

.feature-icon {
  font-size: 1.2rem;
  animation: bounce 1.5s ease-in-out infinite;
}

.btn-telegram {
  background: linear-gradient(135deg, #0088cc, #006699);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.3);
}

.btn-telegram:hover {
  box-shadow: 0 12px 32px rgba(0, 136, 204, 0.4);
}

/* أمثلة النتائج */
.results-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  color: var(--text);
}

.results-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 600px) {
  .results-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.result-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.result-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-color: var(--green);
}

.result-hidden {
  display: none;
}

.results-images.show-all .result-hidden {
  display: block;
}

.show-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(45, 125, 255, 0.3);
  border-radius: 25px;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.show-more-btn:hover {
  background: rgba(45, 125, 255, 0.1);
  border-color: var(--blue);
}

.show-more-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.show-more-btn.active .show-more-icon {
  transform: rotate(180deg);
}

.results-note {
  font-size: 0.95rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(52, 208, 88, 0.1);
  border-radius: 8px;
  display: inline-block;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.lightbox-close:hover {
  transform: scale(1.2);
  color: var(--gold);
}

/* الفوتر */
.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeIn 1s ease-out 0.6s both;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-divider {
  color: var(--muted);
  opacity: 0.5;
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.7;
  max-width: 500px;
  margin: 0.5rem auto;
  line-height: 1.6;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

/* ===== تحسينات الموبايل ===== */
@media (max-width: 480px) {
  /* الصفحة */
  .page {
    padding: 3.75rem 0 1.5rem;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 0.75rem;
    gap: 1.5rem;
  }
  
  /* صندوق الهيرو */
  .hero-box {
    gap: 1.25rem;
    padding: 0;
  }
  
  /* العنوان الرئيسي */
  h1 {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
  }
  
  .lead {
    font-size: 0.9rem;
    line-height: 1.7;
  }
  
  .sub {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.7;
  }
  
  /* الشعار الكبير - مهم جداً */
  .logo-side {
    width: auto;
    display: flex;
    justify-content: center;
  }
  
  .big-logo {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    border-radius: 18px;
  }
  
  /* المحتوى */
  .content-side {
    width: 100%;
    max-width: 100%;
  }
  
  /* الأزرار */
  .btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    width: 100%;
  }
  
  .buttons {
    gap: 0.5rem;
    flex-direction: column;
  }
  
  .btn-icon {
    width: 18px;
    height: 18px;
  }
  
  /* قسم كود الترويج */
  .promo-section {
    padding: 1.25rem 1rem;
    border-radius: 14px;
  }
  
  .promo-section h2 {
    font-size: 1.1rem;
  }
  
  .promo-section > p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .promo-box {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .promo-code {
    font-size: 1.2rem;
    padding: 0.5rem 0.85rem;
    letter-spacing: 2px;
  }
  
  .copy-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }
  
  .promo-desc {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }
  
  .promo-hint {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }
  
  /* قسم المجموعة */
  .group-section {
    padding: 1.25rem 1rem;
    border-radius: 14px;
  }
  
  .group-section h2 {
    font-size: 1.1rem;
  }
  
  .group-logo {
    width: 120px;
  }
  
  .group-desc {
    font-size: 0.85rem;
  }
  
  .feature {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }
  
  .results-title {
    font-size: 0.9rem;
    margin: 1rem 0 0.75rem;
  }
  
  .results-note {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    margin-bottom: 1rem;
  }
  
  /* محتوى معرفة المزيد */
  .learn-more-content {
    padding: 0.85rem;
  }
  
  .learn-more-content h3 {
    font-size: 0.95rem;
  }
  
  .step-number {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 0.7rem;
  }
  
  .step-item span:last-child {
    font-size: 0.8rem;
  }
  
  .benefits-box {
    padding: 0.75rem;
  }
  
  .benefits-box h4 {
    font-size: 0.85rem;
  }
  
  .benefits-list li {
    font-size: 0.8rem;
    padding: 0.3rem 0;
    padding-right: 1.25rem;
  }
  
  .conclusion {
    padding: 0.75rem;
  }
  
  .conclusion p {
    font-size: 0.75rem;
  }
  
  /* الفوتر */
  .footer {
    padding: 1rem;
    font-size: 0.75rem;
  }
  
  /* زر معرفة المزيد */
  .learn-more-btn {
    font-size: 0.75rem;
    padding: 0.45rem 0.9rem;
  }
  
  .learn-more-btn.app-learn-btn {
    margin-top: 1.25rem;
  }
  
  .learn-more-icon {
    width: 16px;
    height: 16px;
  }
}

/* شاشات متوسطة */
@media (min-width: 481px) and (max-width: 767px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  h1 {
    font-size: 1.4rem;
  }
  
  .big-logo {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
  }
  
  .promo-code {
    font-size: 1.5rem;
  }
}

/* ===== صفحة سياسة الخصوصية ===== */
.back-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  text-decoration: none;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.back-btn svg {
  width: 24px;
  height: 24px;
}

.policy-box {
  background: linear-gradient(135deg, rgba(14, 30, 54, 0.8), rgba(11, 22, 40, 0.9));
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(45, 125, 255, 0.2);
}

.policy-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
  text-align: center;
}

.policy-subtitle {
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0.7;
}

.policy-intro {
  font-size: 1.1rem;
  color: var(--blue);
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(45, 125, 255, 0.1);
  border-radius: 12px;
  font-weight: 600;
}

.policy-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.policy-section {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border-right: 3px solid var(--blue);
}

.policy-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.policy-section p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--blue), #1D6DE8);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(45, 125, 255, 0.3);
}

.btn-back:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(45, 125, 255, 0.4);
}

.btn-back svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 480px) {
  .policy-box {
    padding: 1.25rem;
    border-radius: 16px;
  }
  
  .policy-title {
    font-size: 1.5rem;
  }
  
  .policy-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }
  
  .policy-intro {
    font-size: 0.95rem;
    padding: 0.75rem;
  }
  
  .policy-section {
    padding: 1rem;
  }
  
  .policy-section h2 {
    font-size: 1rem;
  }
  
  .policy-section p {
    font-size: 0.85rem;
  }
  
  .btn-back {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* ===== النافذة المنبثقة ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-box {
  background: linear-gradient(145deg, #0E1E36 0%, #0a1525 100%);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  border: 2px solid rgba(246, 194, 90, 0.3);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
              0 0 60px rgba(246, 194, 90, 0.15);
  transform: scale(0.8) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.active .popup-box {
  transform: scale(1) translateY(0);
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
  transition: all 0.25s ease;
  z-index: 100;
  padding: 0;
  margin: 0;
}

.popup-close:hover {
  background: rgba(255, 80, 80, 0.4);
  border-color: #ff6b6b;
  color: #fff;
  transform: scale(1.1);
}

.popup-close:active {
  transform: scale(0.95);
  background: rgba(255, 80, 80, 0.6);
}

.popup-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: bounce 1.5s ease-in-out infinite;
}

.popup-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.popup-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.popup-promo-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.popup-promo-code {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 3px;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #1a2a42, #0E1E36);
  border: 2px dashed var(--gold);
  border-radius: 10px;
  color: var(--gold);
  font-family: monospace;
  animation: glow 2s ease-in-out infinite;
}

.popup-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #F6C25A, #D8A73F);
  color: #0B1628;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(246, 194, 90, 0.3);
  width: 100%;
}

.popup-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(246, 194, 90, 0.4);
}

.popup-btn:active {
  transform: translateY(0);
}

/* تحسينات الموبايل للنافذة المنبثقة */
@media (max-width: 480px) {
  .popup-box {
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }
  
  .popup-icon {
    font-size: 2.5rem;
  }
  
  .popup-title {
    font-size: 1.15rem;
  }
  
  .popup-promo-code {
    font-size: 1.25rem;
    padding: 0.4rem 1rem;
  }
  
  .popup-desc {
    font-size: 0.85rem;
  }
  
  .popup-btn {
    font-size: 0.95rem;
    padding: 0.9rem 1.5rem;
  }
  
  .popup-close {
    width: 40px;
    height: 40px;
    top: 8px;
    right: 8px;
    font-size: 24px;
  }
}

/* تقليل الحركة للمستخدمين الذين يفضلون ذلك */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
