/* ===== ODS A1/A2 Live Campaign — v1.3.0 ===== */

/* ══════════════════════════════════════════════
   POPUP
   ══════════════════════════════════════════════ */

.ca-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,18,64,.85);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  direction: rtl;
}
.ca-overlay.ca-open { opacity: 1; visibility: visible; }

.ca-modal {
  background: linear-gradient(170deg, #0d1b4b 0%, #07101f 100%);
  border-radius: 20px;
  box-shadow:
    0 40px 90px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.07),
    0 0 60px rgba(24,63,225,.15);
  width: 100%;
  max-width: 500px;
  max-height: 94vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transform: translateY(30px) scale(.96);
  transition: transform .45s cubic-bezier(.175,.885,.32,1.275);
  direction: rtl;
}
.ca-overlay.ca-open .ca-modal { transform: translateY(0) scale(1); }
.ca-modal::-webkit-scrollbar { width: 3px; }
.ca-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }

.ca-stripe { display: flex; height: 5px; border-radius: 20px 20px 0 0; overflow: hidden; }
.ca-stripe span { flex: 1; }

.ca-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, transform .3s;
  z-index: 10;
  line-height: 1;
}
.ca-close:hover {
  background: rgba(245,166,35,.2);
  border-color: rgba(245,166,35,.4);
  color: #F5A623;
  transform: scale(1.1) rotate(90deg);
}

.ca-body { padding: 22px 28px 28px; }

/* Discount hero */
.ca-discount-hero {
  position: relative;
  text-align: center;
  padding: 18px 0 22px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(245,166,35,.08) 0%, rgba(24,63,225,.06) 100%);
  border: 1.5px solid rgba(245,166,35,.22);
  overflow: hidden;
}
.ca-discount-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 260px; height: 180px;
  background: radial-gradient(ellipse at center, rgba(245,166,35,.22) 0%, transparent 70%);
  pointer-events: none;
}
.ca-discount-label {
  font-family: 'Cairo','Tajawal',sans-serif;
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
  margin: 0 0 4px;
  position: relative; z-index: 1;
}
.ca-discount-number {
  font-family: 'Cairo','Tajawal',sans-serif;
  font-size: 96px; font-weight: 900;
  line-height: 1; color: #F5A623;
  letter-spacing: -3px;
  position: relative; z-index: 1;
  text-shadow: 0 0 40px rgba(245,166,35,.7), 0 0 80px rgba(245,166,35,.35), 0 6px 24px rgba(0,0,0,.5);
  animation: ca-discount-pulse 3s ease-in-out infinite;
}
@keyframes ca-discount-pulse {
  0%,100% { text-shadow: 0 0 40px rgba(245,166,35,.7), 0 0 80px rgba(245,166,35,.35), 0 6px 24px rgba(0,0,0,.5); }
  50%      { text-shadow: 0 0 60px rgba(245,166,35,.9), 0 0 120px rgba(245,166,35,.5), 0 6px 24px rgba(0,0,0,.5); }
}
.ca-discount-sub {
  font-family: 'Cairo',sans-serif;
  font-size: 12.5px; font-weight: 700;
  color: #F5A623; margin: 6px 0 0;
  position: relative; z-index: 1; opacity: .85;
}

.ca-live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,166,35,.1);
  border: 1.5px solid rgba(245,166,35,.35);
  color: #F5A623; border-radius: 50px;
  padding: 4px 13px;
  font-family: 'Cairo',sans-serif; font-size: 12px; font-weight: 700;
  margin-bottom: 10px;
}
.ca-live-dot {
  width: 7px; height: 7px;
  background: #F5A623; border-radius: 50%;
  animation: ca-pulse 1.4s ease-in-out infinite; flex-shrink: 0;
}
@keyframes ca-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.35; transform:scale(.72); }
}

.ca-title {
  font-family: 'Cairo','Tajawal',sans-serif;
  font-size: 20px; font-weight: 800; color: #fff;
  margin: 0 0 6px; line-height: 1.4;
}
.ca-desc {
  font-family: 'Cairo',sans-serif; font-size: 13px;
  color: rgba(255,255,255,.65); margin: 0 0 16px; line-height: 1.6;
}

.ca-points {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: flex; flex-direction: column; gap: 7px;
}
.ca-points li {
  font-family: 'Cairo',sans-serif; font-size: 13px;
  color: rgba(255,255,255,.82);
  padding: 7px 12px;
  background: rgba(255,255,255,.05);
  border-radius: 8px; border-right: 3px solid #F5A623; line-height: 1.5;
}
.ca-points li strong { color: #F5A623; }

.ca-countdown {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-bottom: 20px; direction: ltr;
}
.ca-cnt-box {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; min-width: 56px;
  background: rgba(24,63,225,.18); border: 1px solid rgba(24,63,225,.4);
  border-radius: 10px; padding: 7px 4px;
}
.ca-cnt-num {
  font-family: 'Cairo',sans-serif; font-size: 24px;
  font-weight: 800; color: #fff; line-height: 1;
}
.ca-cnt-label {
  font-family: 'Cairo',sans-serif; font-size: 9.5px;
  color: rgba(255,255,255,.45); font-weight: 600;
}
.ca-cnt-sep { font-size: 20px; font-weight: 800; color: #F5A623; margin-bottom: 14px; }

.ca-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ca-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 10px; border-radius: 10px;
  font-family: 'Cairo',sans-serif; font-size: 14px; font-weight: 800;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s;
  text-align: center; line-height: 1.2;
}
.ca-btn:hover { transform: translateY(-2px); }
.ca-btn-gold {
  background: linear-gradient(135deg,#F5A623 0%,#D48C1A 100%);
  color: #0A0F1E !important;
  box-shadow: 0 5px 18px rgba(245,166,35,.45);
}
.ca-btn-gold:hover { box-shadow: 0 10px 28px rgba(245,166,35,.6); }
.ca-btn-blue {
  background: linear-gradient(135deg,#183FE1 0%,#0F2BA8 100%);
  color: #fff !important;
  box-shadow: 0 5px 18px rgba(24,63,225,.4);
}
.ca-btn-blue:hover { box-shadow: 0 10px 28px rgba(24,63,225,.55); }

.ca-note {
  text-align: center; font-family: 'Cairo',sans-serif;
  font-size: 11px; color: rgba(255,255,255,.35); margin: 0;
}

@media (max-width: 560px) {
  .ca-body { padding: 16px 14px 20px; }
  .ca-discount-number { font-size: 72px; }
  .ca-title { font-size: 17px; }
  .ca-ctas { grid-template-columns: 1fr; }
  .ca-cnt-box { min-width: 44px; }
  .ca-cnt-num { font-size: 20px; }
}
@media (max-width: 360px) { .ca-discount-number { font-size: 58px; } }


/* ══════════════════════════════════════════════════════════════
   PREMIUM INLINE BADGE — A1 & A2 course pages
   9 animation layers: enter · glow-border · shimmer · header-march
                       disc-breathe · pct-pulse · live-dot
                       bar-fill · fire-bounce
   ══════════════════════════════════════════════════════════════ */

.ca-inline-badge {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #071340 0%, #0c1945 55%, #081535 100%);
  border-radius: 16px;
  margin: 20px 0;
  direction: rtl;
  box-shadow:
    0 0 0 1.5px rgba(245,166,35,.32),
    0 16px 48px rgba(5,12,50,.65),
    0 4px 20px rgba(245,166,35,.08),
    inset 0 1px 0 rgba(255,255,255,.07),
    inset 0 -1px 0 rgba(0,0,0,.3);

  /* ① Entrance  ② Border glow */
  animation:
    ca-badge-enter  .7s  cubic-bezier(.175,.885,.32,1.275) both,
    ca-badge-glow   3.8s ease-in-out 1.4s infinite;
}

/* ① Entrance — spring up from -18px */
@keyframes ca-badge-enter {
  from { opacity: 0; transform: translateY(-18px) scale(.94); }
  to   { opacity: 1; transform: translateY(0)     scale(1); }
}

/* ② Border glow — gold rim brightens periodically */
@keyframes ca-badge-glow {
  0%,100% {
    box-shadow:
      0 0 0 1.5px rgba(245,166,35,.32),
      0 16px 48px rgba(5,12,50,.65),
      0 4px 20px rgba(245,166,35,.08),
      inset 0 1px 0 rgba(255,255,255,.07),
      inset 0 -1px 0 rgba(0,0,0,.3);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(245,166,35,.75),
      0 16px 56px rgba(5,12,50,.7),
      0 0 32px rgba(245,166,35,.22),
      inset 0 1px 0 rgba(255,255,255,.07),
      inset 0 -1px 0 rgba(0,0,0,.3);
  }
}

/* ③ Shimmer — diagonal light sweep */
.ca-ib-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    transparent 22%,
    rgba(255,255,255,.055) 50%,
    transparent 78%
  );
  background-size: 280% 100%;
  animation: ca-ib-shimmer 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes ca-ib-shimmer {
  0%   { background-position: 280% 0; }
  100% { background-position: -280% 0; }
}

/* ④ Animated header strip */
.ca-ib-header {
  position: relative;
  z-index: 2;
  padding: 8px 18px;
  text-align: center;
  font-family: 'Cairo','Tajawal',sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #071340;
  letter-spacing: .05em;
  /* Moving gradient: dark gold → bright gold → dark gold */
  background: linear-gradient(90deg, #c97f0e, #F5A623, #ffd270, #F5A623, #c97f0e);
  background-size: 300% 100%;
  animation: ca-header-march 4s linear infinite;
}
/* ④ Header gradient marches left continuously */
@keyframes ca-header-march {
  0%   { background-position: 0%   50%; }
  100% { background-position: 300% 50%; }
}

/* ─── Main content row ─── */
.ca-ib-content {
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

/* ─── Discount column ─── */
.ca-ib-discount-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 20px;
  flex-shrink: 0;
  min-width: 90px;
}

/* ⑤ Radial glow behind the number — breathes */
.ca-ib-disc-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(245,166,35,.28) 0%, transparent 68%);
  pointer-events: none;
  animation: ca-disc-breathe 2.8s ease-in-out infinite;
}
@keyframes ca-disc-breathe {
  0%,100% { transform: translate(-50%,-50%) scale(1);   opacity: .7; }
  50%      { transform: translate(-50%,-50%) scale(1.25); opacity: 1; }
}

/* ⑥ Percentage text — glow pulses */
.ca-ib-pct {
  font-family: 'Cairo','Tajawal',sans-serif;
  font-size: 46px;
  font-weight: 900;
  color: #F5A623;
  line-height: 1;
  letter-spacing: -2px;
  position: relative;
  z-index: 1;
  animation: ca-pct-pulse 2.8s ease-in-out infinite;
}
@keyframes ca-pct-pulse {
  0%,100% { text-shadow: 0 0 16px rgba(245,166,35,.5),  0 0 32px rgba(245,166,35,.22); }
  50%      { text-shadow: 0 0 28px rgba(245,166,35,.95), 0 0 56px rgba(245,166,35,.48); }
}

.ca-ib-off {
  font-family: 'Cairo',sans-serif;
  font-size: 13px; font-weight: 800;
  color: rgba(245,166,35,.85);
  position: relative; z-index: 1;
  margin-top: 3px;
}
.ca-ib-excl {
  font-family: 'Cairo',sans-serif;
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,.38);
  letter-spacing: .06em;
  position: relative; z-index: 1;
  margin-top: 3px;
  text-transform: uppercase;
}

/* ─── Vertical divider ─── */
.ca-ib-vline {
  width: 1px;
  flex-shrink: 0;
  align-self: stretch;
  background: linear-gradient(180deg,
    transparent       0%,
    rgba(245,166,35,.45) 20%,
    rgba(245,166,35,.45) 80%,
    transparent      100%
  );
  position: relative; z-index: 2;
}

/* ─── Info column ─── */
.ca-ib-info {
  flex: 1;
  padding: 14px 18px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  position: relative; z-index: 2;
}

/* ⑦ Live dot — pulses to signal "live" */
.ca-ib-live-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ca-ib-live-dot {
  width: 8px; height: 8px;
  background: #F5A623; border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(245,166,35,.8);
  animation: ca-live-dot 1.3s ease-in-out infinite;
}
@keyframes ca-live-dot {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(.6); opacity: .45; }
}
.ca-ib-live-text {
  font-family: 'Cairo',sans-serif;
  font-size: 12px; font-weight: 700; color: #fff;
  line-height: 1.3;
}

/* Info rows */
.ca-ib-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: 'Cairo',sans-serif;
  font-size: 12.5px; font-weight: 500;
  color: rgba(255,255,255,.62);
  line-height: 1.45;
}
.ca-ib-row strong { color: rgba(255,255,255,.92); font-weight: 700; }

/* ⑧ Seats urgency bar — fills on entrance */
.ca-ib-seats { display: flex; flex-direction: column; gap: 4px; }
.ca-ib-seats-label {
  font-family: 'Cairo',sans-serif;
  font-size: 10.5px; font-weight: 600;
  color: rgba(245,166,35,.72);
}
.ca-ib-bar {
  background: rgba(255,255,255,.08);
  border-radius: 50px; height: 5px; overflow: hidden;
}
.ca-ib-bar-fill {
  height: 100%; border-radius: 50px;
  background: linear-gradient(90deg, #183FE1 0%, #4a6de8 45%, #F5A623 100%);
  width: 0%;
  animation: ca-bar-fill 1.1s cubic-bezier(.25,.46,.45,.94) .65s both;
}
@keyframes ca-bar-fill { to { width: 74%; } }

/* ─── Footer urgency strip ─── */
.ca-ib-footer {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  background: rgba(255,255,255,.035);
  border-top: 1px solid rgba(255,255,255,.07);
  font-family: 'Cairo',sans-serif;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.55);
  text-align: center;
}
.ca-ib-footer strong { color: #F5A623; font-weight: 800; }

/* ⑨ Fire emoji — gentle bounce */
.ca-ib-fire {
  font-size: 14px;
  display: inline-block;
  animation: ca-fire-bounce .65s ease-in-out infinite alternate;
}
@keyframes ca-fire-bounce {
  from { transform: translateY(0)    rotate(-4deg); }
  to   { transform: translateY(-3px) rotate(4deg); }
}

/* Gold right-edge accent (RTL leading edge) */
.ca-inline-badge::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #F5A623 0%, #D48C1A 100%);
  z-index: 5;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  .ca-ib-pct           { font-size: 36px; letter-spacing: -1px; }
  .ca-ib-discount-col  { min-width: 76px; padding: 16px 14px; }
  .ca-ib-info          { padding: 12px 14px 12px 10px; gap: 6px; }
  .ca-ib-live-text     { font-size: 11px; }
  .ca-ib-row           { font-size: 11.5px; }
  .ca-ib-header        { font-size: 11px; padding: 7px 12px; }
  .ca-ib-footer        { font-size: 11px; padding: 8px 12px; }
}
@media (max-width: 340px) {
  .ca-ib-pct { font-size: 30px; }
  .ca-ib-discount-col { min-width: 66px; padding: 14px 10px; }
}
