/* ==========================================================================
   Ria Academy - Subscriptions & Special Offers Modern Stylesheet (offers.css)
   ========================================================================== */

:root {
  --bg-dark: #090b0f;
  --bg-card: rgba(20, 23, 29, 0.92);
  --bg-card-hover: rgba(25, 29, 36, 0.96);
  --bg-glass: rgba(20, 23, 29, 0.76);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 229, 255, 0.3);
  
  --color-cyan: #35d7c1;
  --color-cyan-glow: rgba(53, 215, 193, 0.24);
  --color-purple: #a78bfa;
  --color-purple-glow: rgba(167, 139, 250, 0.24);
  --color-pink: #ff2a5f;
  --color-amber: #f59e0b;
  --color-amber-glow: rgba(245, 158, 11, 0.35);
  --color-emerald: #10b981;
  --color-blue: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-ar: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body.offers-page {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-ar);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(53, 215, 193, 0.055), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(245, 158, 11, 0.07), transparent 32%);
  background-attachment: fixed;
  line-height: 1.6;
}

/* Background Grid Overlay */
.offers-bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

/* Main Container */
.offers-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 7.75rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}

/* Top Promo Ticker Bar */
.top-promo-bar {
  background: rgba(20, 23, 29, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.promo-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.promo-icon {
  color: var(--color-cyan);
  font-size: 0.85rem;
  opacity: 0.9;
}

.promo-tag {
  background: #d33f65;
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

.promo-code-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed var(--color-cyan);
  color: var(--color-cyan);
  padding: 5px 14px;
  border-radius: 8px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.promo-code-btn:hover {
  background: rgba(0, 229, 255, 0.2);
  transform: translateY(-1px);
}

/* Header Navigation Bar */
.offers-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
}

.brand-badge {
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(181,52,255,0.15));
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.energy-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--color-amber);
  padding: 7px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.energy-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.25);
}

.energy-chip i {
  font-size: 1rem;
  animation: boltPulse 2s infinite ease-in-out;
}

@keyframes boltPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px var(--color-amber)); }
  50% { transform: scale(1.2); filter: drop-shadow(0 0 8px var(--color-amber)); }
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-cyan);
  transform: translateX(-3px);
}

/* Hero Section */
.offers-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 2.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 23, 29, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-cyan);
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-pill i {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(53, 215, 193, 0.12);
  border: 1px solid rgba(53, 215, 193, 0.25);
  color: var(--color-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Social Proof Bar */
.hero-stats-proof {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  padding: 6px 4px;
}

.proof-item i {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.proof-item strong {
  color: #fff;
  font-size: 0.98rem;
}

/* Billing Cycle Switcher */
.billing-switch-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.billing-opt {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 20px;
  border-radius: 7px;
  transition: all 0.25s ease;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.billing-opt.active {
  color: #fff;
  background: #227d72;
  box-shadow: none;
}

.discount-tag {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid var(--color-emerald);
  color: var(--color-emerald);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

/* Plan Card Base */
.plan-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2.25rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Plan Specific Highlights */
.plan-card.starter {
  border-top: 4px solid var(--color-cyan);
}

.plan-card.pro {
  border: 2px solid var(--color-purple);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  transform: translateY(-8px);
  z-index: 2;
  background: linear-gradient(180deg, rgba(32, 27, 43, 0.96) 0%, rgba(20, 23, 29, 0.98) 48%);
}

.plan-card.pro:hover {
  transform: translateY(-12px);
  box-shadow: 0 0 50px rgba(181, 52, 255, 0.45);
}

.plan-card.elite {
  border-top: 4px solid var(--color-amber);
}

/* Ribbon Badge for Popular Plan */
.popular-ribbon {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
  color: #fff;
  padding: 5px 20px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(181, 52, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Plan Header */
.plan-header {
  margin-bottom: 1.5rem;
}

.plan-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.plan-card:hover .plan-icon {
  transform: scale(1.06);
}

.starter .plan-icon {
  background: linear-gradient(135deg, rgba(53, 215, 193, 0.18), rgba(53, 215, 193, 0.05));
  border-color: rgba(53, 215, 193, 0.3);
  color: var(--color-cyan);
}

.pro .plan-icon {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.22), rgba(167, 139, 250, 0.06));
  border-color: rgba(167, 139, 250, 0.38);
  color: #c4b5fd;
}

.elite .plan-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.06));
  border-color: rgba(245, 158, 11, 0.38);
  color: #fcd34d;
}

.plan-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.plan-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 2.6em;
  line-height: 1.5;
}

/* Plan Pricing */
.plan-price-wrap {
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-currency {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.plan-price {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  font-family: var(--font-en);
}

.plan-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-billed-yearly {
  font-size: 0.82rem;
  color: var(--color-emerald);
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  min-height: 1.2rem;
}

/* Features List */
.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.45;
}

.plan-features li i {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.starter .plan-features li i {
  background: rgba(53, 215, 193, 0.12);
  border: 1px solid rgba(53, 215, 193, 0.25);
  color: var(--color-cyan);
}

.pro .plan-features li i {
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.28);
  color: #c4b5fd;
}

.elite .plan-features li i {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fcd34d;
}

.plan-features li.highlight {
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.plan-features li.feat-pro-infinity {
  background: rgba(167, 139, 250, 0.12) !important;
  border-color: rgba(167, 139, 250, 0.3) !important;
}

.plan-features li.feat-elite-plus {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

/* CTA Buttons */
.plan-cta {
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.starter .plan-cta {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
}

.starter .plan-cta:hover {
  background: var(--color-cyan);
  color: #000;
  box-shadow: 0 0 20px var(--color-cyan-glow);
}

.pro .plan-cta {
  background: #8b6fd8;
  color: #fff;
  box-shadow: none;
}

.pro .plan-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(181, 52, 255, 0.6);
  background: #9b82df;
}

.elite .plan-cta {
  background: var(--color-amber);
  color: #000;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.purchase-assurance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 4rem;
  background: rgba(20, 23, 29, 0.72);
}

.purchase-assurance div {
  min-height: 74px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.purchase-assurance div + div {
  border-inline-start: 1px solid var(--border-color);
}

.purchase-assurance div i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--color-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.elite .plan-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fbbf24, var(--color-amber));
}

/* Feature Comparison Matrix Table */
.matrix-section {
  margin-bottom: 4rem;
}

.matrix-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

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

.matrix-table-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

[dir="ltr"] .matrix-table {
  text-align: left;
}

.matrix-table th, .matrix-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.matrix-table th {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: rgba(15, 23, 42, 0.9);
}

.matrix-table th.col-plan {
  text-align: center;
  width: 22%;
}

.matrix-table tr.matrix-group-header td {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  color: var(--color-cyan);
  font-size: 0.95rem;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.matrix-table td.col-val {
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.check-yes {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
}

.check-no {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

/* Testimonials / Social Proof Section */
.testimonials-section {
  margin-bottom: 4rem;
}

.testimonials-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.testimonials-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  gap: 3px;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
}

.user-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.user-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ Accordion Section */
.faq-section {
  max-width: 860px;
  margin: 0 auto 4rem;
}

.faq-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.faq-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: inherit;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--color-cyan);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 24px 20px;
}

/* Guarantee & Security Banner */
.guarantee-banner {
  text-align: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(0, 229, 255, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  max-width: 860px;
  margin: 0 auto 3rem;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.guarantee-banner i.g-icon {
  font-size: 2.8rem;
  color: var(--color-emerald);
  margin-bottom: 1rem;
}

.guarantee-banner h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.guarantee-banner p {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 650px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.security-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
}

.sec-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sec-badge i {
  color: var(--color-emerald);
}

/* Checkout Modal Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.checkout-modal {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  padding: 2.2rem 2rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.modal-overlay.active .checkout-modal {
  transform: scale(1);
}

.close-modal-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

[dir="ltr"] .close-modal-btn {
  left: auto;
  right: 18px;
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.summary-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.summary-row.total {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  margin-bottom: 0;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-cyan);
}

/* Coupon Input in Modal */
.coupon-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.coupon-input {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.9rem;
  outline: none;
}

.coupon-input:focus {
  border-color: var(--color-cyan);
}

.apply-coupon-btn {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.88rem;
}

.apply-coupon-btn:hover {
  background: var(--color-cyan);
  color: #000;
}

/* Payment Methods Grid */
.payment-methods-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1.25rem;
}

.pay-opt {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pay-opt i {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.pay-opt.active i, .pay-opt:hover i {
  background: rgba(53, 215, 193, 0.15);
  border-color: rgba(53, 215, 193, 0.35);
  color: var(--color-cyan);
}

.pay-opt.active, .pay-opt:hover {
  border-color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.12);
  color: #fff;
}

/* Payment Detail Dynamic Info Box */
.pay-details-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.baridi-rip-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 8px;
  font-family: monospace;
  color: var(--color-amber);
  font-weight: 700;
}

.copy-rip-btn {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--color-amber);
  color: var(--color-amber);
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: var(--font-ar);
}

.confirm-pay-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--color-cyan), #2563eb);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.confirm-pay-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

/* Toast Notification */
.toast-notif {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notif.show {
  transform: translateX(-50%) translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .plan-card.pro {
    transform: none;
  }
  .purchase-assurance {
    grid-template-columns: repeat(2, 1fr);
  }
  .purchase-assurance div:nth-child(3) {
    border-inline-start: 0;
    border-top: 1px solid var(--border-color);
  }
  .purchase-assurance div:nth-child(4) {
    border-top: 1px solid var(--border-color);
  }
  .plan-card.pro:hover {
    transform: translateY(-8px);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.15rem;
    line-height: 1.15;
  }
  .offers-nav {
    flex-direction: column;
    gap: 1rem;
  }
  .top-promo-bar {
    flex-direction: column;
    text-align: center;
    padding: 14px;
  }
  .promo-text {
    flex-direction: column;
  }
  .promo-tag {
    white-space: nowrap;
  }
  .promo-code-btn {
    width: 100%;
    justify-content: center;
  }
  .payment-methods {
    grid-template-columns: 1fr;
  }
  .hero-stats-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
    width: 100%;
    margin-bottom: 1.75rem;
  }
  .proof-item {
    justify-content: flex-start;
    text-align: start;
    font-size: 0.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .offers-container {
    padding: 6.75rem 1rem 3rem;
  }
  .billing-switch-wrapper {
    width: 100%;
  }
  .billing-opt {
    flex: 1;
    justify-content: center;
    padding: 9px 8px;
  }
  .billing-opt i {
    display: none;
  }
  .purchase-assurance {
    grid-template-columns: 1fr;
  }
  .purchase-assurance div + div,
  .purchase-assurance div:nth-child(3) {
    border-inline-start: 0;
    border-top: 1px solid var(--border-color);
  }
  .plan-card {
    padding: 2rem 1.35rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Language Dropdown in Header Navigation */
.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-dropdown .dropdown-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: 30px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.language-dropdown .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-cyan);
}

.language-dropdown .dropdown-toggle img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}

.language-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 6px;
  list-style: none;
  min-width: 140px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
}

[dir="ltr"] .language-dropdown .dropdown-menu {
  right: auto;
  left: 0;
}

.language-dropdown.open .dropdown-menu {
  display: flex;
}

.language-dropdown .lang-option {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  text-align: inherit;
}

.language-dropdown .lang-option:hover,
.language-dropdown .lang-option.active {
  background: rgba(0, 229, 255, 0.15);
  color: var(--color-cyan);
}

.language-dropdown .lang-option img {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
}

/* LTR Direction Adjustments */
html[dir="ltr"] body.offers-page {
  font-family: var(--font-en);
}

html[dir="ltr"] .back-btn #backIcon {
  transform: scaleX(-1);
}

.arrow-icon {
  display: inline-block;
  transition: transform 0.25s ease;
}

html[dir="rtl"] .arrow-icon {
  transform: scaleX(1);
}

html[dir="ltr"] .arrow-icon {
  transform: scaleX(-1);
}

