/* ==========================================================================
   Arab-Ware-Dos - Competition & Floating Discount Sticker Styles
   ========================================================================== */

/* --- Competition Section Container --- */
.competition-section {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(93, 218, 209, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 15% 80%, rgba(23, 78, 198, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 85% 60%, rgba(42, 169, 255, 0.12) 0%, transparent 55%),
              linear-gradient(180deg, rgba(3, 76, 112, 0.35) 0%, rgba(0, 27, 64, 0.75) 100%);
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
  transition: all 0.5s ease;
}

.competition-section.highlight-active {
  animation: competitionGlowPulse 2.4s ease-in-out 2;
}

@keyframes competitionGlowPulse {
  0% { box-shadow: inset 0 0 0px rgba(93, 218, 209, 0); }
  50% { box-shadow: inset 0 0 80px rgba(93, 218, 209, 0.35), 0 0 60px rgba(93, 218, 209, 0.3); }
  100% { box-shadow: inset 0 0 0px rgba(93, 218, 209, 0); }
}

.competition-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Background Cyber Mesh */
.competition-bg-decor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  z-index: 1;
}

/* --- Section Header --- */
.competition-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 50px;
}

.competition-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  border-radius: 999px;
  background: rgba(93, 218, 209, 0.12);
  border: 1px solid rgba(93, 218, 209, 0.35);
  color: #5ddad1;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(93, 218, 209, 0.2);
}

.competition-badge-pill .pulse-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5ddad1;
  box-shadow: 0 0 10px #5ddad1;
  animation: indicatorBlink 1.6s infinite ease-in-out;
}

@keyframes indicatorBlink {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.competition-title {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 20px;
}

.competition-title .highlight-text {
  background: linear-gradient(135deg, #ffffff 10%, #5dd8d1 60%, #2aa9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.competition-subtitle {
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 20px;
}

.competition-discount-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(23, 78, 198, 0.35), rgba(93, 218, 209, 0.25));
  border: 1px dashed rgba(93, 218, 209, 0.5);
  padding: 10px 24px;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.competition-discount-banner .discount-tag {
  background: #5ddad1;
  color: #001b40;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
}

/* --- How to Participate Steps --- */
.participation-steps-wrapper {
  margin-bottom: 50px;
}

.steps-heading-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.steps-heading-title::after,
.steps-heading-title::before {
  content: "";
  height: 2px;
  width: 45px;
  background: linear-gradient(90deg, transparent, #5ddad1);
}
.steps-heading-title::before {
  background: linear-gradient(90deg, #5ddad1, transparent);
}

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

.step-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px 24px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform: translateZ(0);
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(93, 218, 209, 0.4);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 15px 40px rgba(93, 218, 209, 0.15);
}

.step-number-badge {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 1px;
}

.step-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(23, 78, 198, 0.4), rgba(93, 218, 209, 0.3));
  border: 1px solid rgba(93, 218, 209, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #5ddad1;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.step-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* Social Buttons in Step 1 */
.social-follow-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.social-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
  min-width: 110px;
}

.social-follow-btn.fb-btn {
  background: rgba(24, 119, 242, 0.15);
  color: #4da3ff;
  border: 1px solid rgba(24, 119, 242, 0.35);
}

.social-follow-btn.fb-btn:hover {
  background: #1877f2;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.4);
  transform: translateY(-2px);
}

.social-follow-btn.insta-btn {
  background: rgba(225, 48, 108, 0.15);
  color: #ff6699;
  border: 1px solid rgba(225, 48, 108, 0.35);
}

.social-follow-btn.insta-btn:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.4);
  transform: translateY(-2px);
}

/* --- Prizes Showcase --- */
.prizes-showcase-wrapper {
  margin-bottom: 60px;
}

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

.prize-card {
  position: relative;
  /* background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); */
  /* border: 1px solid rgba(255, 255, 255, 0.12); */
  /* border-radius: 18px; */
  padding: 24px 18px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}

.prize-card:hover {
  transform: translateY(-6px);
  /* border-color: rgba(93, 218, 209, 0.5); */
  /* box-shadow: 0 12px 30px rgba(93, 218, 209, 0.18); */
  /* background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); */
}

.prize-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 218, 209, 0.25) 0%, rgba(23, 78, 198, 0.1) 70%);
  border: 1px solid rgba(93, 218, 209, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #5ddad1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.prize-card:hover .prize-icon-wrap {
  transform: scale(1.1) rotate(6deg);
  color: #ffffff;
  border-color: #5ddad1;
}

.prize-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.prize-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.prize-badge-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(93, 218, 209, 0.2);
  color: #5ddad1;
  border: 1px solid rgba(93, 218, 209, 0.4);
}

/* --- The Competition Form Container --- */
.competition-form-card {
  position: relative;
  background: rgba(11, 29, 45, 0.7);
  border: 1px solid rgba(93, 218, 209, 0.25);
  border-radius: 28px;
  padding: 45px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(93, 218, 209, 0.08);
}

/* Progress Tracker */
.competition-progress-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 35px;
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.progress-bar-track {
  height: 8px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #174ec6 0%, #2aa9ff 50%, #5ddad1 100%);
  transition: width 0.4s ease;
  box-shadow: 0 0 12px rgba(93, 218, 209, 0.6);
}

/* Question Blocks */
.quiz-questions-wrapper {
  margin-bottom: 40px;
}

.quiz-question-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.quiz-question-item.answered {
  border-color: rgba(93, 218, 209, 0.3);
  background: rgba(93, 218, 209, 0.03);
}

.question-text-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}

.question-text-title .q-icon {
  color: #5ddad1;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Radio Options (Yes / No) */
.quiz-options-binary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.quiz-radio-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
}

.quiz-radio-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-radio-label:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(93, 218, 209, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
}

.quiz-radio-input:checked + .quiz-radio-label {
  background: linear-gradient(135deg, rgba(23, 78, 198, 0.4), rgba(93, 218, 209, 0.25));
  border-color: #5ddad1;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(93, 218, 209, 0.25);
}

.quiz-radio-input:checked + .quiz-radio-label .check-indicator {
  background: #5ddad1;
  color: #001b40;
  border-color: #5ddad1;
}

.check-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.25s ease;
}

/* Multi-Choice Radio Options (Question 4) */
.quiz-options-multichoice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.quiz-multi-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
}

.quiz-multi-label:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(93, 218, 209, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
}

.quiz-radio-input:checked + .quiz-multi-label {
  background: linear-gradient(135deg, rgba(23, 78, 198, 0.4), rgba(93, 218, 209, 0.25));
  border-color: #5ddad1;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(93, 218, 209, 0.25);
}

.quiz-radio-input:checked + .quiz-multi-label .check-indicator {
  background: #5ddad1;
  color: #001b40;
  border-color: #5ddad1;
}

/* Participant Information Fields */
.participant-details-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 35px;
}

.participant-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.participant-section-title i {
  color: #5ddad1;
}

.participant-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.form-group-tech {
  position: relative;
}

.form-label-tech {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.form-label-tech .required-mark {
  color: #ff5e7e;
  margin-right: 4px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
  pointer-events: none;
}

[dir="rtl"] .input-with-icon .input-icon {
  right: 16px;
}

[dir="ltr"] .input-with-icon .input-icon {
  left: 16px;
}

.form-input-tech {
  width: 100%;
  height: 52px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: #ffffff;
  transition: all 0.3s ease;
  outline: none;
}

[dir="rtl"] .form-input-tech {
  padding: 0 46px 0 16px;
}

[dir="ltr"] .form-input-tech {
  padding: 0 16px 0 46px;
}

.form-input-tech::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
}

.form-input-tech:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #5ddad1;
  box-shadow: 0 0 16px rgba(93, 218, 209, 0.3);
}

.input-with-icon:focus-within .input-icon {
  color: #5ddad1;
}

/* ==========================================================================
   Submit Button - Interactive Transparency & Reveal Mechanism
   ========================================================================== */
.competition-submit-area {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.submit-helper-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
  transition: all 0.4s ease;
}

.submit-helper-status.status-locked {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
}

.submit-helper-status.status-unlocked {
  background: rgba(93, 218, 209, 0.15);
  border: 1px solid rgba(93, 218, 209, 0.5);
  color: #5ddad1;
  box-shadow: 0 0 20px rgba(93, 218, 209, 0.25);
  animation: bounceHint 2s infinite ease-in-out;
}

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

/* The Submit Button Base */
.competition-submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 48px;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 16px;
  border: none;
  outline: none;
  cursor: pointer;
  user-select: none;
  transition: all 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

/* Initially Transparent & Locked State */
.competition-submit-btn.btn-locked {
  opacity: 0.18;
  filter: grayscale(100%);
  pointer-events: none;
  cursor: not-allowed;
  transform: translateY(8px) scale(0.96);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

/* Fully Revealed Active State */
.competition-submit-btn.btn-active-revealed {
  opacity: 1;
  filter: grayscale(0%);
  pointer-events: auto;
  cursor: pointer;
  transform: translateY(0) scale(1);
  background: linear-gradient(135deg, #174ec6 0%, #2aa9ff 50%, #5ddad1 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(93, 218, 209, 0.35), 0 0 25px rgba(23, 78, 198, 0.4);
  animation: buttonRadiance 3s infinite alternate;
}

@keyframes buttonRadiance {
  0% {
    box-shadow: 0 10px 30px rgba(93, 218, 209, 0.35), 0 0 25px rgba(23, 78, 198, 0.4);
  }
  100% {
    box-shadow: 0 14px 40px rgba(93, 218, 209, 0.55), 0 0 35px rgba(93, 218, 209, 0.4);
  }
}

.competition-submit-btn.btn-active-revealed:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 45px rgba(93, 218, 209, 0.6), 0 0 30px rgba(42, 169, 255, 0.5);
}

.competition-submit-btn.btn-active-revealed:active {
  transform: translateY(1px) scale(0.98);
}

/* Light Shine Effect across the button */
.btn-shine-effect {
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: none;
}

.competition-submit-btn.btn-active-revealed .btn-shine-effect {
  animation: btnShineAnim 3.5s infinite;
}

@keyframes btnShineAnim {
  0% { left: -120%; }
  35%, 100% { left: 160%; }
}

/* Spin animation for loading state */
.spin-icon {
  display: inline-block;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Floating Discount Sticker (ملصق الخصم والمسابقة التفاعلي على اليسار)
   ========================================================================== */
.floating-discount-container {
  position: fixed;
  left: 28px;
  bottom: 28px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  animation: discountStickerFloat 4.2s ease-in-out infinite;
}

@keyframes discountStickerFloat {
  0% {
    transform: translate3d(0, 0px, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(-1.5deg);
  }
  100% {
    transform: translate3d(0, 0px, 0) rotate(0deg);
  }
}

/* Pulsing Radar Aura behind the sticker */
.discount-radar-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 218, 209, 0.35) 0%, rgba(23, 78, 198, 0.15) 50%, transparent 75%);
  pointer-events: none;
  z-index: -1;
  animation: radarWave 2.8s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.discount-radar-pulse.pulse-delay {
  animation-delay: 1.4s;
}

@keyframes radarWave {
  0% {
    transform: translate3d(-50%, -50%, 0) scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: translate3d(-50%, -50%, 0) scale(1.6);
    opacity: 0;
  }
}

/* Interactive Tooltip Bubble */
.discount-bubble-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 29, 45, 0.92);
  border: 1px solid rgba(93, 218, 209, 0.5);
  border-radius: 12px;
  padding: 8px 14px;
  white-space: nowrap;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(93, 218, 209, 0.2);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: tooltipFloat 2.5s ease-in-out infinite alternate;
}

.discount-bubble-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(93, 218, 209, 0.5) transparent transparent transparent;
}

.discount-bubble-tooltip .bubble-icon {
  color: #5ddad1;
  font-size: 15px;
}

@keyframes tooltipFloat {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-4px); }
}

/* The Sticker Image Wrapper */
.discount-sticker-link {
  position: relative;
  display: block;
  text-decoration: none;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.discount-sticker-img {
  width: 130px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 18px rgba(93, 218, 209, 0.3));
  transition: all 0.35s ease;
}

.floating-discount-container:hover .discount-sticker-img {
  transform: scale(1.1) rotate(-4deg);
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 28px rgba(93, 218, 209, 0.6));
}

.floating-discount-container:active .discount-sticker-img {
  transform: scale(0.96);
}

/* Badge at bottom of sticker */
.discount-live-badge {
  margin-top: 4px;
  background: linear-gradient(90deg, #174ec6, #5ddad1);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   Celebration Modal (نافذة النجاح والتهنئة الاحتفالية)
   ========================================================================== */
.competition-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 15, 35, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.competition-success-card {
  position: relative;
  background: linear-gradient(160deg, rgba(11, 29, 45, 0.95), rgba(3, 76, 112, 0.9));
  border: 1px solid rgba(93, 218, 209, 0.4);
  border-radius: 28px;
  padding: 45px 36px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 50px rgba(93, 218, 209, 0.25);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.competition-modal-overlay.active .competition-success-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.success-trophy-badge {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: radial-gradient(circle, rgba(93, 218, 209, 0.3) 0%, rgba(23, 78, 198, 0.2) 70%);
  border: 2px solid #5ddad1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #5ddad1;
  box-shadow: 0 0 30px rgba(93, 218, 209, 0.4);
  animation: trophyPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes trophyPop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.success-modal-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.success-modal-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 24px;
}

.summary-participant-info {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  text-align: start;
}

.modal-action-btn {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #174ec6, #5ddad1);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(93, 218, 209, 0.35);
}

.modal-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(93, 218, 209, 0.5);
}

/* Confetti particles canvas */
#confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991px) {
  .competition-title {
    font-size: 32px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .prizes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .participant-inputs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .competition-form-card {
    padding: 30px 20px;
  }
  .floating-discount-container {
    left: 16px;
    bottom: 20px;
  }
  .discount-sticker-img {
    width: 105px;
  }
}

@media (max-width: 576px) {
  .competition-section {
    padding: 70px 0 90px;
  }
  .competition-title {
    font-size: 26px;
  }
  .competition-subtitle {
    font-size: 16px;
  }
  .prizes-grid {
    grid-template-columns: 1fr;
  }
  .quiz-options-binary {
    grid-template-columns: 1fr;
  }
  .competition-submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
  }
  .floating-discount-container {
    left: 12px;
    bottom: 16px;
  }
  .discount-sticker-img {
    width: 90px;
  }
  .discount-bubble-tooltip {
    display: none; /* Hide tooltip on small mobile screens to keep space clean */
  }
}
