/* ==========================================================================
   AI Preference Quiz - Phase 1: Interactive CRO Landing Page
   Design System: Dark Glassmorphism, Mobile-First, CRO & AdSense Safe
   ========================================================================== */

:root {
  /* نظام الألوان (Color Palette) */
  --bg-dark: #0a0a0f;
  --bg-card: rgba(18, 22, 34, 0.65);
  --bg-card-hover: rgba(26, 32, 48, 0.85);
  --bg-glass-input: rgba(255, 255, 255, 0.04);
  --bg-glass-border: rgba(255, 255, 255, 0.08);
  --bg-glass-border-active: rgba(59, 130, 246, 0.5);

  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-blue-glow: rgba(59, 130, 246, 0.35);
  --accent-purple: #8b5cf6;
  
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #60a5fa;

  --success-green: #10b981;
  --success-glow: rgba(16, 185, 129, 0.25);

  /* خطوط وتدرجات */
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-latin: 'Outfit', sans-serif;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* التصفير والإعدادات العامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  padding: 16px;
}

/* ==========================================================================
   إضاءة الخلفية النيون المحيطة (Ambient Glow Orbs)
   ========================================================================== */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  transition: all 1s ease;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  top: -60px;
  right: -60px;
  animation: floatOrb 8s infinite alternate ease-in-out;
}

.orb-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  bottom: -40px;
  left: -40px;
  animation: floatOrb 10s infinite alternate-reverse ease-in-out;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation: pulseGlow 6s infinite alternate ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(25px, 35px) scale(1.15); }
}

@keyframes pulseGlow {
  0% { opacity: 0.25; transform: scale(0.9); }
  100% { opacity: 0.5; transform: scale(1.1); }
}

/* ==========================================================================
   الهيكل الرئيسي والبطاقة الزجاجية (Glass Card)
   ========================================================================== */
.main-wrapper {
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 1;
  margin: auto;
}

.quiz-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
              0 0 30px rgba(59, 130, 246, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal);
}

/* شريط إضاءة دقيق في أعلى البطاقة */
.quiz-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.6), transparent);
}

/* ==========================================================================
   رأس البطاقة (Header Section)
   ========================================================================== */
.quiz-header {
  text-align: center;
  margin-bottom: 24px;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 50px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-blue);
  animation: blinkDot 1.5s infinite ease-in-out;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.badge-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-highlight);
  letter-spacing: 0.3px;
}

.main-title {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ai-emoji {
  display: inline-block;
  animation: gentleBounce 2.5s infinite ease-in-out;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.main-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 22px;
  padding: 0 8px;
}

/* ==========================================================================
   شريط التقدم (Progress Bar)
   ========================================================================== */
.progress-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.progress-label {
  color: var(--text-muted);
  font-weight: 600;
}

.progress-step {
  color: var(--accent-blue);
  font-weight: 700;
  background: rgba(59, 130, 246, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ==========================================================================
   شاشة المقدمة التمهيدية المتغيرة (Dynamic Intro Screen)
   ========================================================================== */
.intro-screen {
  text-align: center;
  padding: 8px 4px 16px 4px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.intro-screen.fade-out {
  opacity: 0;
  transform: translateY(-15px);
}

.intro-content-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.intro-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-highlight);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.intro-headline {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.45;
  letter-spacing: -0.3px;
}

.intro-paragraph {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto;
}

.intro-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin: 10px 0;
}

.intro-feature-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.intro-feature-item:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.feat-icon {
  font-size: 1.3rem;
}

.feat-text {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.btn-start-quiz {
  width: 100%;
  min-height: 58px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  background-size: 200% auto;
  border: none;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 25px var(--accent-blue-glow);
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  transition: all var(--transition-normal);
}

.btn-start-quiz:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.5), 
              0 0 30px rgba(6, 182, 212, 0.35);
}

.btn-start-quiz:active {
  transform: scale(0.98);
}

.btn-start-icon {
  font-size: 1.2rem;
  animation: pulseIcon 1.5s infinite ease-in-out;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  border-radius: 10px;
  box-shadow: 0 0 12px var(--accent-blue-glow);
  transition: width 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   حاوية الأسئلة (Question Container & Animation)
   ========================================================================== */
.questions-container {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.question-block {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.question-block.fade-out {
  opacity: 0;
  transform: translateY(-12px);
}

.question-block.fade-in {
  animation: questionSlideIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes questionSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-heading {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 18px;
  text-align: center;
  line-height: 1.45;
}

.options-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* أزرار الخيارات التفاعلية (CRO Optimized Touch Targets) */
.option-btn {
  background: var(--bg-glass-input);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--text-main);
  font-family: var(--font-arabic);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: right;
  min-height: 60px; /* مريح جداً للإصبع */
}

.option-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--bg-glass-border-active);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.18);
}

.option-btn:active {
  transform: scale(0.98);
}

.option-btn.selected {
  background: rgba(59, 130, 246, 0.18);
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.option-content-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.option-img-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-fast);
  position: relative;
}

.option-img-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.option-btn:hover .option-img-box {
  border-color: var(--accent-blue);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.45);
}

.option-btn:hover .option-img-thumb {
  transform: scale(1.12);
}

.option-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}

.option-main-text {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.option-sub-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.option-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.option-btn:hover .option-icon-box {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
}

.option-arrow {
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.option-btn:hover .option-arrow {
  color: var(--accent-blue);
  transform: translateX(-5px); /* بالسهم لليمين في العربية */
}

/* ==========================================================================
   شاشة المعالجة بالذكاء الاصطناعي (Fake AI Processing Screen)
   ========================================================================== */
.ai-processing-screen {
  padding: 30px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scanner-visual {
  width: 140px;
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed var(--accent-blue);
}

.radar-outer {
  width: 130px;
  height: 130px;
  opacity: 0.4;
  animation: rotateClockwise 12s linear infinite;
}

.radar-middle {
  width: 95px;
  height: 95px;
  border-style: dotted;
  border-color: var(--accent-cyan);
  opacity: 0.6;
  animation: rotateAntiClockwise 8s linear infinite;
}

.radar-core {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(10, 10, 15, 0.8) 100%);
  border: 1px solid var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-highlight);
  box-shadow: 0 0 25px var(--accent-blue-glow);
  z-index: 2;
}

.ai-core-icon {
  width: 28px;
  height: 28px;
  animation: pulseCore 1.8s infinite ease-in-out;
}

.scan-beam {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(59, 130, 246, 0.25) 60deg, transparent 70deg);
  animation: rotateClockwise 2.5s linear infinite;
  pointer-events: none;
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateAntiClockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulseCore {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px var(--accent-blue)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 10px var(--accent-blue)); }
}

.processing-status-box {
  margin-bottom: 20px;
}

.typing-indicator {
  display: inline-flex;
  gap: 5px;
  margin-bottom: 8px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-5px); opacity: 1; }
}

.processing-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.2px;
  min-height: 28px;
  transition: all 0.3s ease;
}

.ai-neural-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.neural-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
}

.neural-tag.active {
  color: var(--text-highlight);
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.4);
}

/* ==========================================================================
   التذييل ومؤشرات المصداقية (Footer & CRO Trust Badges)
   ========================================================================== */
.quiz-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.trust-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.trust-item svg {
  color: var(--accent-blue);
}

.disclaimer-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   نافذة النتيجة الآمنة لأدسنس (AdSense Safe Result Modal)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: rgba(16, 20, 32, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 28px 22px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(59, 130, 246, 0.15);
  animation: modalPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-glow-top {
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-blue), transparent);
  box-shadow: 0 0 15px var(--accent-blue);
}

.modal-badge-wrapper {
  text-align: center;
  margin-bottom: 18px;
}

.match-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--success-green);
  box-shadow: 0 0 15px var(--success-glow);
}

.check-icon {
  width: 16px;
  height: 16px;
}

/* بطاقة الجهاز المختار */
.matched-device-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.device-icon-box {
  width: 82px;
  height: 82px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(59, 130, 246, 0.15));
  border: 2px solid rgba(245, 158, 11, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.25);
}

.matched-device-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.device-details {
  flex-grow: 1;
}

.device-match-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.device-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.device-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: var(--text-secondary);
}

/* النص المتوافق مع AdSense */
.adsense-safe-statement {
  text-align: center;
  margin-bottom: 24px;
}

.statement-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.statement-body {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.statement-body strong {
  color: var(--accent-cyan);
  font-weight: 800;
}

.safety-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #facc15;
  font-weight: 600;
}

.safety-alert svg {
  flex-shrink: 0;
}

/* زر الـ CTA البارز عالي التحويل */
.modal-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-cta {
  width: 100%;
  min-height: 58px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  background-size: 200% auto;
  border: none;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-arabic);
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 25px var(--accent-blue-glow);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.btn-cta:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.5), 
              0 0 30px rgba(6, 182, 212, 0.35);
}

.btn-cta:active {
  transform: scale(0.98);
}

.btn-timer-icon {
  font-size: 1.15rem;
  animation: pulseIcon 1.5s infinite ease-in-out;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.btn-glow-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  animation: buttonShine 3s infinite ease-in-out;
}

@keyframes buttonShine {
  0% { left: -100%; }
  40%, 100% { left: 160%; }
}

.modal-footnote {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   الشريط العلوي الديناميكي (Dynamic Brand Bar)
   ========================================================================== */
.dynamic-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 10px 18px;
  margin-bottom: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 12px var(--accent-blue-glow);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.brand-controls-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctrl-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.ctrl-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px var(--accent-blue-glow);
  transform: translateY(-1px);
}

.ctrl-icon-btn:active {
  transform: scale(0.92);
}

.ctrl-icon-btn.muted {
  color: var(--text-muted);
  opacity: 0.7;
}

.live-users-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.72rem;
  color: var(--success-green);
  font-weight: 700;
}

/* ==========================================================================
   قسم الأسئلة الشائعة (FAQ Accordion Section)
   ========================================================================== */
.faq-section {
  margin-top: 30px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 26px 22px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.refresh-faq-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 20px;
  padding: 5px 12px;
  font-family: var(--font-arabic);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-highlight);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.refresh-faq-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}

.refresh-faq-btn:active {
  transform: scale(0.96);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-glass-input);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.faq-item.active {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
}

.faq-question {
  width: 100%;
  padding: 16px 18px;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-arabic);
  font-size: 0.96rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-highlight);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 18px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 6px 18px 16px 18px;
}

/* ==========================================================================
   قسم آراء وتعليقات المشاركين (Social Proof Comments & Likes)
   ========================================================================== */
.comments-section {
  margin-top: 30px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 26px 22px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.comments-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: #facc15;
  font-weight: 700;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.comment-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all var(--transition-fast);
}

.comment-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(59, 130, 246, 0.25);
}

.comment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.comment-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
  border: 1.5px solid rgba(59, 130, 246, 0.4);
}

.comment-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sentiment-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sentiment-positive {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sentiment-confused {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.sentiment-critical {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.comment-names {
  display: flex;
  flex-direction: column;
}

.comment-author-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
}

.comment-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.comment-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.comment-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 10px;
}

.like-button {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-arabic);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  transition: all var(--transition-fast);
}

.like-button:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.08);
}

.like-button.liked {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.3);
}

.like-button svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition-bounce);
}

.like-button.liked svg {
  fill: #f43f5e;
  transform: scale(1.2);
}

.matched-pill-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-highlight);
  background: rgba(59, 130, 246, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}

/* نموذج إضافة تعليق سريع */
.add-comment-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.add-comment-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.comment-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.comment-input-field {
  width: 100%;
  background: var(--bg-glass-input);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-main);
  font-family: var(--font-arabic);
  font-size: 0.86rem;
  outline: none;
}

.comment-input-field:focus {
  border-color: var(--accent-blue);
}

.btn-submit-comment {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  align-self: flex-start;
  transition: all var(--transition-fast);
}

.btn-submit-comment:hover {
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ==========================================================================
   تذييل الصفحة الشامل وروابط السياسات (Full Footer & Policy Links)
   ========================================================================== */
.site-global-footer {
  margin-top: 36px;
  padding: 28px 16px;
  text-align: center;
  border-top: 1px solid var(--bg-glass-border);
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 16px;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.6;
}





/* ==========================================================================
   الفوتر المؤسسي المعتمد المتكامل (Official Institutional Site Footer)
   ========================================================================== */
.site-footer {
  margin-top: 50px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94) 0%, rgba(8, 12, 24, 0.98) 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 44px 20px 32px;
  box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #38bdf8, #10b981, transparent);
}

.footer-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: right;
  direction: rtl;
}

.footer-brand {
  margin-bottom: 28px;
}

.footer-brand .logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.uae-flag-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.logo-title {
  font-size: 1.22rem;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.3;
}

.logo-subtitle {
  font-size: 0.82rem;
  color: #38bdf8;
  font-weight: 600;
  margin-top: 2px;
}

.footer-desc {
  font-size: 0.87rem;
  color: #94a3b8;
  line-height: 1.75;
  margin: 12px 0 0;
  max-width: 840px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px 40px;
  margin: 28px 0 24px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #38bdf8;
  padding-bottom: 5px;
}

.footer-links-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list li {
  margin: 0;
  padding: 0;
}

.footer-links-list li a {
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links-list li a::before {
  content: '←';
  color: #38bdf8;
  font-size: 0.85rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-links-list li a:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

.footer-links-list li a:hover::before {
  transform: translateX(-3px);
  color: #34d399;
}

.footer-bottom-bar {
  text-align: center;
  padding-top: 12px;
}

.footer-bottom-bar p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0 0 10px;
}

.disclaimer-mini {
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  color: #fbbf24 !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  display: inline-block;
  margin-top: 6px;
  line-height: 1.6;
  text-align: center;
  max-width: 780px;
}

/* الترويسة وشريط التنبيه المعتمد */
.top-announcement-bar {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.2));
  border-bottom: 1px solid rgba(16, 185, 129, 0.4);
  padding: 10px 16px;
  font-size: 0.84rem;
  color: #e2e8f0;
}

.announcement-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.announcement-badge {
  background: rgba(16, 185, 129, 0.3);
  border: 1px solid #10b981;
  color: #34d399;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.announcement-text {
  font-weight: 600;
}

.announcement-text strong {
  color: #fbbf24;
  letter-spacing: 0.5px;
}

.main-header {
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.header-content {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.official-license-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

.license-icon {
  font-size: 1rem;
}

.pulse-dot-green {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.faq-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}


.app-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}


/* ==========================================================================
   التوافق الشامل مع الهواتف الذكية والأجهزة المحمولة (Comprehensive Mobile Optimization)
   ========================================================================== */

/* منع التمرير الأفقي وضبط التمرير السلس على الهواتف */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
}

/* ضبط حجم الخط للحقول على الهواتف لمنع التكبير التلقائي في Safari iOS */
@media (max-width: 768px) {
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* شاشات الأجهزة اللوحية والهواتف المتوسطة (أقل من 768px) */
@media (max-width: 768px) {
  body {
    padding: 10px 8px;
  }

  .container, .app-container {
    padding: 0 10px;
  }

  .quiz-card, .reg-wrapper, .faq-section, .comments-section {
    padding: 22px 14px;
    margin: 14px auto 28px;
    border-radius: var(--radius-lg);
  }

  .dynamic-brand-bar {
    padding: 10px 12px;
    gap: 10px;
  }

  .brand-name {
    font-size: 0.86rem;
  }

  .brand-tagline {
    font-size: 0.72rem;
  }

  .live-users-pill {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .info-guideline-banner, .urgency-banner {
    padding: 14px 12px;
    gap: 10px;
  }

  .beneficiary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .b-hero-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* شاشات الهواتف الذكية الشائعة (أقل من 540px وأقل من 480px) */
@media (max-width: 540px) {
  body {
    padding: 6px 4px;
  }

  .container, .app-container {
    padding: 0 6px;
  }

  .quiz-card, .reg-wrapper, .faq-section, .comments-section {
    padding: 18px 12px;
    margin: 10px auto 20px;
    border-radius: var(--radius-md);
  }

  /* الشريط العلوي والترويسة */
  .top-announcement-bar {
    padding: 8px 10px;
    font-size: 0.74rem;
  }

  .announcement-content {
    gap: 6px;
  }

  .announcement-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
  }

  .main-header {
    padding: 12px 10px;
    margin-bottom: 16px;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .official-license-pill {
    font-size: 0.74rem;
    padding: 4px 10px;
    width: 100%;
    justify-content: center;
  }

  .dynamic-brand-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 8px;
    padding: 10px;
  }

  .brand-identity {
    justify-content: center;
  }

  .brand-controls-wrapper {
    justify-content: center;
  }

  /* نصوص العناوين الرئيسية */
  .main-title {
    font-size: 1.3rem;
    line-height: 1.35;
  }

  .main-subtitle {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* بطاقة الاستعجال */
  .urgency-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 10px;
    gap: 8px;
  }

  .urgency-title {
    flex-direction: column;
    gap: 6px;
    font-size: 0.94rem;
    text-align: center;
  }

  .urgency-timer {
    font-size: 1.15rem;
  }

  .urgency-desc {
    font-size: 0.82rem;
  }

  /* بطاقة المستفيد المحجوزة في share.html */
  .beneficiary-confirmed-hero {
    padding: 14px 12px;
  }

  .b-hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .b-hero-item {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .b-hero-value {
    font-size: 0.92rem;
  }

  /* صندوق شرط الاحتراف والمشاركة */
  .share-pro-box {
    padding: 18px 12px;
  }

  .pro-headline {
    font-size: 1.18rem;
    line-height: 1.45;
  }

  .pro-instructions {
    font-size: 0.84rem;
    line-height: 1.6;
  }

  /* شريط تقدم الـ 5 مشاركات */
  .share-progress-container {
    padding: 14px 10px;
  }

  .share-progress-header {
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 4px;
  }

  .steps-dots {
    gap: 4px;
  }

  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .step-label {
    font-size: 0.65rem;
    white-space: nowrap;
  }

  /* بطاقة درع منع الحظر */
  .anti-ban-shield-card {
    padding: 12px 10px;
  }

  .anti-ban-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .anti-ban-badge {
    font-size: 0.76rem;
    padding: 3px 10px;
  }

  .anti-ban-counter {
    font-size: 0.76rem;
  }

  .btn-rotate-template {
    font-size: 0.74rem;
    padding: 4px 8px;
  }

  .preview-content {
    font-size: 0.82rem;
    line-height: 1.6;
    padding: 8px 10px;
  }

  /* زر الواتساب الرئيسي الفوري */
  .btn-whatsapp-icon-cta {
    padding: 12px 14px;
    gap: 12px;
    border-radius: 40px;
  }

  .wa-icon-circle-pulse {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .wa-icon-svg-large {
    width: 26px;
    height: 26px;
  }

  .wa-cta-main-title {
    font-size: 1.02rem;
    line-height: 1.3;
  }

  .wa-cta-sub-title {
    font-size: 0.75rem;
  }

  /* أزرار المشاركة البديلة */
  .wa-alt-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .wa-alt-btn {
    padding: 10px 8px;
    font-size: 0.78rem;
    justify-content: center;
  }

  /* زر استلام الكود */
  .btn-claim-code {
    padding: 14px 16px;
    font-size: 0.94rem;
    line-height: 1.4;
    text-align: center;
    justify-content: center;
  }

  /* بطاقة التذكرة الرسمية */
  .success-ticket-box {
    padding: 20px 12px;
  }

  .ticket-code-display {
    font-size: clamp(1.1rem, 5vw, 1.45rem);
    letter-spacing: 1px;
    padding: 8px 14px;
    width: 100%;
    max-width: 100%;
    word-break: break-all;
  }

  .barcode-svg {
    max-width: 100%;
    height: auto;
  }

  /* حقول الاستمارة في registration.html */
  .phone-input-container {
    gap: 6px;
  }

  .country-select-btn {
    padding: 10px 10px;
    font-size: 0.85rem;
    gap: 6px;
    min-height: 48px;
  }

  .b-input {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 16px !important;
  }

  .countries-dropdown-menu {
    width: 100% !important;
    max-width: 100% !important;
    right: 0 !important;
    left: 0 !important;
    position: absolute !important;
    z-index: 9999 !important;
  }

  .prize-summary-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 14px;
  }

  .prize-img-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }

  /* الأسئلة الشائعة والتعليقات */
  .faq-header-flex, .comments-header-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .refresh-faq-btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  .faq-question {
    padding: 14px 12px;
    font-size: 0.9rem;
  }

  .faq-answer {
    font-size: 0.85rem;
  }

  .faq-item.active .faq-answer {
    padding: 6px 12px 14px 12px;
  }

  .comment-item {
    padding: 12px 10px;
    gap: 10px;
  }

  .comment-avatar-img {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .comment-author-name {
    font-size: 0.86rem;
  }

  .comment-text {
    font-size: 0.83rem;
  }

  /* الفوتر المؤسسي على الهواتف */
  .site-footer {
    padding: 30px 12px 22px;
    margin-top: 32px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .logo-icon-box {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .logo-title {
    font-size: 1.05rem;
  }

  .logo-subtitle {
    font-size: 0.76rem;
  }

  .footer-desc {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    padding: 16px 0;
    margin: 18px 0 14px;
  }

  .footer-col-title {
    font-size: 0.88rem;
    margin-bottom: 8px;
  }

  .footer-links-list li a {
    font-size: 0.8rem;
  }

  .disclaimer-mini {
    font-size: 0.76rem !important;
    padding: 10px 12px;
    line-height: 1.5;
  }
}

/* شاشات الهواتف فائقة الصغر (أقل من 375px مثل iPhone SE) */
@media (max-width: 375px) {
  .main-title {
    font-size: 1.18rem;
  }

  .pro-headline {
    font-size: 1.05rem;
  }

  .wa-cta-main-title {
    font-size: 0.94rem;
  }

  .wa-alt-grid {
    grid-template-columns: 1fr;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .step-circle {
    width: 24px;
    height: 24px;
    font-size: 0.74rem;
  }

  .step-label {
    font-size: 0.6rem;
  }
}

/* إبراز الخطأ في الحقول الإلزامية */
.error-border {
  border-color: #ef4444 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45) !important;
  animation: shake 0.3s ease-in-out;
}

/* ==========================================================================
   بنر الترحيب الفيروسي للزوار القادمين من الواتساب (Viral Loop Welcome Banner)
   ========================================================================== */
.viral-welcome-banner {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 18px auto;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.15) 0%, rgba(16, 185, 129, 0.10) 50%, rgba(15, 23, 42, 0.88) 100%);
  border: 1.5px solid rgba(37, 211, 102, 0.45);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  animation: slideDownViral 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownViral {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.viral-banner-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  position: relative;
  z-index: 2;
}

.viral-banner-icon-badge {
  position: relative;
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
}

.viral-pulse-ping {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  background: #34d399;
  border: 2px solid #0f172a;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

.viral-banner-text-group {
  flex: 1;
  text-align: right;
}

.viral-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 211, 102, 0.2);
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6ee7b7;
  margin-bottom: 6px;
}

.viral-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 8px #25d366;
}

.viral-banner-heading {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.viral-banner-sub {
  font-size: 0.82rem;
  color: #d1fae5;
  margin: 0;
  line-height: 1.5;
}

.viral-banner-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  padding: 0;
}

.viral-banner-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  transform: scale(1.08);
}

.viral-card-highlight {
  border-color: rgba(37, 211, 102, 0.45) !important;
  box-shadow: 0 0 45px rgba(37, 211, 102, 0.18), 0 20px 45px -15px rgba(0, 0, 0, 0.7) !important;
}

@media (max-width: 768px) {
  .viral-welcome-banner {
    border-radius: 14px;
    margin-bottom: 14px;
  }
  .viral-banner-body {
    padding: 12px 14px;
    gap: 12px;
  }
  .viral-banner-icon-badge {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.2rem;
  }
  .viral-banner-heading {
    font-size: 0.88rem;
  }
  .viral-banner-sub {
    font-size: 0.76rem;
  }
}
