* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --primary: #00D084;
  --primary-dark: #00A86B;
  --bg-dark: #0a0f1a;
  --bg-card: rgba(20, 25, 40, 0.75);
  --text-white: #ffffff;
  --text-gray: #a0aec0;
  --text-muted: #64748b;
  --border: rgba(0, 208, 132, 0.18);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 208, 132, 0.06);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 208, 132, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: linear-gradient(135deg, #0a0f1a 0%, #0d1f17 30%, #0a1520 60%, #0a0f1a 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-white);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Background glows */
.ambient-glow {
  position: fixed; border-radius: 50%; filter: blur(120px);
  pointer-events: none; z-index: 0; opacity: 0.35;
}
.glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,208,132,0.12) 0%, transparent 70%);
  top: -10%; right: -5%;
  animation: floatGlow 8s ease-in-out infinite;
}
.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,168,107,0.08) 0%, transparent 70%);
  bottom: 10%; left: -10%;
  animation: floatGlow 10s ease-in-out infinite reverse;
}
.glow-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,208,132,0.06) 0%, transparent 70%);
  top: 40%; left: 30%;
  animation: floatGlow 12s ease-in-out infinite;
}

.grid-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.03;
  background-image:
    linear-gradient(rgba(0,208,132,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,208,132,0.5) 1px, transparent 1px);
  background-size: 80px 80px;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes shine {
  0% { left: -100%; } 100% { left: 200%; }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,208,132,0.6); }
  50% { box-shadow: 0 0 0 12px rgba(0,208,132,0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes borderPulse {
  0%, 100% { border-color: rgba(0,208,132,0.25); box-shadow: 0 0 15px rgba(0,208,132,0.1); }
  50% { border-color: rgba(0,208,132,0.6); box-shadow: 0 0 25px rgba(0,208,132,0.2); }
}
@keyframes rotateSlow {
  0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); }
}
@keyframes rotateReverse {
  0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); }
}

.fade-in {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.fade-in-d1 { animation-delay: 0.1s; }
.fade-in-d2 { animation-delay: 0.25s; }
.fade-in-d3 { animation-delay: 0.4s; }
.fade-in-d4 { animation-delay: 0.55s; }
.fade-in-d5 { animation-delay: 0.7s; }
.fade-in-d6 { animation-delay: 0.85s; }

/* ===== HEADER ===== */
.sticky-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 15, 26, 0.9);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.logo-box {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px;
  box-shadow: 0 4px 15px rgba(0,208,132,0.3);
  flex-shrink: 0;
}
.header-text { line-height: 1.3; }
.header-title { font-size: 14px; font-weight: 800; color: #fff; }
.header-sub { font-size: 10px; color: var(--primary); font-weight: 600; }

.btn-shine {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border: none; border-radius: 50px;
  padding: 10px 20px; color: #020508;
  font-weight: 900; font-size: 12px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,208,132,0.3);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-shine:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,208,132,0.5); }
.btn-shine .shine-effect {
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shine 2.5s infinite;
}

/* ===== MAIN ===== */
.main-content {
  position: relative; z-index: 10;
  max-width: 1140px; margin: 0 auto;
  padding: 40px 16px 30px;
}

.hero-section {
  display: flex; flex-wrap: wrap;
  align-items: flex-start; gap: 32px;
}

/* ===== LEFT COLUMN ===== */
.hero-left {
  flex: 1;
  min-width: 0;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,208,132,0.1); border: 1px solid rgba(0,208,132,0.3);
  border-radius: 50px; padding: 6px 14px; font-size: 12px;
  color: var(--primary); margin-bottom: 16px; font-weight: 700;
  box-shadow: 0 0 15px rgba(0,208,132,0.06);
}

.hero-title {
  font-size: 28px; font-weight: 900; line-height: 1.25;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 10%, var(--primary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 15px; color: var(--text-gray);
  line-height: 1.85; margin-bottom: 24px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow); transition: all 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-hover); border-color: rgba(0,208,132,0.3); }

/* Countdown */
.countdown-card {
  padding: 20px 16px; margin-bottom: 24px; text-align: center;
}
.countdown-label {
  font-size: 13px; color: var(--primary); margin-bottom: 14px;
  font-weight: 800; letter-spacing: 0.5px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.countdown-inner {
  display: flex; justify-content: center; gap: 12px; direction: ltr;
}
.countdown-item {
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.countdown-digit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #020508; font-size: 26px; font-weight: 900;
  width: 60px; height: 60px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,208,132,0.25); margin-bottom: 6px;
}
.countdown-label-small {
  font-size: 11px; color: var(--text-muted); font-weight: 600;
}
.countdown-sep {
  font-size: 26px; font-weight: 900; color: var(--primary);
  padding-top: 10px; opacity: 0.8;
}

/* Form */
.form-card { padding: 24px 20px; }
.form-title {
  font-size: 17px; font-weight: 900; margin-bottom: 20px;
  color: var(--primary); text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.form-input {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(0,208,132,0.2);
  border-radius: 12px; padding: 14px 16px; color: #fff;
  font-size: 15px; outline: none; transition: all 0.3s ease;
  width: 100%; font-family: inherit; min-height: 48px;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--primary); background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(0,208,132,0.12), 0 0 15px rgba(0,208,132,0.08);
}
.form-row { display: flex; gap: 8px; }
.form-select {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(0,208,132,0.2);
  border-radius: 12px; padding: 14px 10px; color: #fff;
  font-size: 14px; outline: none; cursor: pointer;
  min-width: 80px; transition: all 0.3s ease;
  font-family: inherit; min-height: 48px;
}
.form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,208,132,0.12);
}
.form-select option { background: #0a0f1a; color: #fff; }
.form-btn {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border: none; border-radius: 12px; padding: 16px;
  color: #020508; font-weight: 900; font-size: 16px;
  cursor: pointer; margin-top: 4px; transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,208,132,0.3);
  width: 100%; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px;
}
.form-btn:hover {
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,208,132,0.5);
}
.form-btn:active { transform: translateY(0); }
.form-note {
  font-size: 11px; color: var(--text-muted); text-align: center;
  margin-top: 12px; display: flex; align-items: center;
  justify-content: center; gap: 5px;
}

/* ===== TRAINER SECTION ===== */
.trainer-section {
  flex: 0 0 100%;
  display: flex; flex-direction: column; align-items: center;
}
.trainer-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 20px; width: 100%;
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.trainer-card:hover { box-shadow: var(--shadow-hover); }

/* Mobile: stacked vertically */
.trainer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}

.trainer-img-side {
  display: flex; justify-content: center; align-items: center;
  position: relative; flex-shrink: 0;
}

.ring-outer {
  position: absolute;
  width: 220px; height: 360px;
  border: 2px solid rgba(0,208,132,0.1);
  border-radius: 20px;
  animation: rotateSlow 30s linear infinite;
}
.ring-inner {
  position: absolute;
  width: 200px; height: 340px;
  border: 2px dashed rgba(0,208,132,0.15);
  border-radius: 18px;
  animation: rotateReverse 25s linear infinite;
}
.trainer-img-box {
  position: relative;
  width: 180px; height: 300px;
  border-radius: 18px; overflow: hidden;
  border: 2px solid rgba(0,208,132,0.35);
  animation: float 6s ease-in-out infinite, borderPulse 4s ease-in-out infinite;
  flex-shrink: 0;
}
.trainer-img-box img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
.status-dot {
  position: absolute;
  bottom: 16px; right: 16px;
  width: 14px; height: 14px;
  background: var(--primary); border-radius: 50%;
  border: 2px solid #0a0f1a;
  animation: pulse-dot 2.5s infinite;
}
.status-badge {
  position: absolute;
  top: 10px; left: -4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #020508; padding: 4px 10px;
  border-radius: 50px; font-size: 10px;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0,208,132,0.3);
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
}

.trainer-bio-side {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  justify-content: center; text-align: center;
  width: 100%;
}
.bio-name {
  font-size: 18px; font-weight: 900;
  color: var(--primary); margin-bottom: 4px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.bio-title {
  font-size: 13px; font-weight: 700;
  color: var(--text-white); margin-bottom: 12px;
  line-height: 1.5; padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,208,132,0.15);
}
.bio-text {
  font-size: 13px; color: var(--text-gray);
  line-height: 1.85;
}
.bio-stats {
  display: flex; gap: 20px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid rgba(0,208,132,0.1);
  justify-content: center;
}
.bio-stat { text-align: center; }
.bio-stat-value {
  font-size: 20px; font-weight: 900; color: var(--primary);
}
.bio-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.bio-divider {
  display: none;
  width: 1px; align-self: stretch;
  background: linear-gradient(180deg, transparent, rgba(0,208,132,0.2), transparent);
  margin: 0 4px;
}

/* Trust badges */
.trust-badges {
  display: flex; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid rgba(0,208,132,0.08);
}
.trust-badge {
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,208,132,0.06); border: 1px solid rgba(0,208,132,0.12);
  border-radius: 50px; padding: 7px 14px;
  font-size: 12px; color: var(--text-gray);
}

/* ===== TICKER ===== */
.ticker-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(10, 15, 26, 0.95);
  border-top: 1px solid var(--border);
  padding: 12px 0; z-index: 99; overflow: hidden;
  box-shadow: 0 -4px 25px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ticker-track {
  display: flex; white-space: nowrap;
  animation: ticker 35s linear infinite;
}
.ticker-item {
  padding: 0 32px; font-size: 12px;
  display: flex; align-items: center; gap: 6px;
}
.ticker-item.active { color: var(--primary); font-weight: 700; }
.ticker-item.normal { color: var(--text-muted); }

/* ===== PRIVACY ===== */
.privacy-section {
  position: relative; z-index: 10;
  max-width: 1140px; margin: 0 auto; padding: 0 16px;
}
.privacy-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 24px 20px; margin-bottom: 16px;
  text-align: center; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.privacy-title {
  font-size: 15px; font-weight: 800; color: var(--primary);
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.privacy-text {
  font-size: 12.5px; color: var(--text-gray); line-height: 1.8;
  max-width: 700px; margin: 0 auto 14px;
}
.privacy-links {
  display: flex; justify-content: center; gap: 20px;
  flex-wrap: wrap; font-size: 12px; color: var(--text-muted);
}
.privacy-links a { color: var(--primary); text-decoration: none; }
.privacy-links a:hover { opacity: 0.8; text-decoration: underline; }

/* ===== FOOTER ===== */
.footer {
  position: relative; z-index: 10; text-align: center;
  padding: 24px 16px 90px; color: var(--text-muted);
  font-size: 12px; border-top: 1px solid rgba(0,208,132,0.06);
  margin-top: 8px;
}
.footer-brand { margin-bottom: 6px; font-weight: 700; color: var(--text-gray); font-size: 13px; }
.footer-note { font-size: 11px; color: var(--text-muted); line-height: 1.8; }

/* ============================================ */
/* ===== TABLET (min-width: 768px) ===== */
/* ============================================ */
@media (min-width: 768px) {
  .sticky-header { padding: 14px 24px; }
  .logo-box { width: 44px; height: 44px; font-size: 20px; }
  .header-title { font-size: 15px; }
  .header-sub { font-size: 11px; }
  .btn-shine { padding: 11px 28px; font-size: 14px; }

  .main-content { padding: 50px 24px 40px; }
  .hero-section { gap: 40px; }

  .hero-title { font-size: 36px; margin-bottom: 18px; }
  .hero-desc { font-size: 16px; margin-bottom: 28px; }
  .badge { padding: 7px 18px; font-size: 13px; margin-bottom: 18px; }

  .countdown-card { padding: 22px 20px; }
  .countdown-digit { width: 68px; height: 68px; font-size: 30px; }
  .countdown-sep { font-size: 30px; padding-top: 12px; }
  .countdown-label { font-size: 14px; }

  .form-card { padding: 28px 24px; }
  .form-title { font-size: 18px; }
  .form-btn { font-size: 17px; padding: 18px; }

  .trainer-section { flex: 0 0 420px; min-width: 380px; }
  .trainer-card { padding: 24px; border-radius: 22px; }

  .trainer-inner {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .trainer-bio-side { text-align: right; }
  .bio-name { justify-content: flex-start; }
  .bio-stats { justify-content: flex-start; }
  .bio-divider { display: block; }

  .ring-outer { width: 240px; height: 400px; }
  .ring-inner { width: 220px; height: 380px; }
  .trainer-img-box { width: 200px; height: 340px; }

  .privacy-card { padding: 28px 24px; }
  .privacy-title { font-size: 16px; }
  .privacy-text { font-size: 13px; }

  .footer { padding: 28px 24px 100px; font-size: 13px; }
}

/* ============================================ */
/* ===== DESKTOP (min-width: 1024px) ===== */
/* ============================================ */
@media (min-width: 1024px) {
  .hero-title { font-size: 40px; }
  .hero-desc { font-size: 17px; }

  .countdown-digit { width: 72px; height: 72px; font-size: 32px; }
  .countdown-sep { font-size: 32px; padding-top: 14px; }

  .trainer-section { flex: 0 0 440px; min-width: 400px; }
  .trainer-card { padding: 28px; }

  .ring-outer { width: 260px; height: 420px; }
  .ring-inner { width: 240px; height: 400px; }
  .trainer-img-box { width: 210px; height: 350px; }
}

/* ============================================ */
/* ===== SMALL MOBILE (max-width: 380px) ===== */
/* ============================================ */
@media (max-width: 380px) {
  .hero-title { font-size: 24px; }
  .countdown-digit { width: 52px; height: 52px; font-size: 22px; }
  .countdown-sep { font-size: 22px; padding-top: 8px; }
  .countdown-inner { gap: 8px; }
  .form-btn { font-size: 14px; }
  .trainer-img-box { width: 160px; height: 260px; }
  .ring-outer { width: 200px; height: 320px; }
  .ring-inner { width: 180px; height: 300px; }
  .bio-stat-value { font-size: 16px; }
  .trust-badge { padding: 6px 12px; font-size: 11px; }
}

/* ═══════════════════════════════════════════════════
   إضافات وظيفية — بنفس لغة التصميم المعتمد
   ═══════════════════════════════════════════════════ */

/* قائمة أكواد الدول */
.cc-wrap { position: relative; flex-shrink: 0; }

.cc-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 92px; white-space: nowrap;
}
.cc-btn:focus, .cc-btn.open {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,208,132,0.15);
}
.cc-btn.err {
  border-color: #ff5c5c;
  box-shadow: 0 0 0 3px rgba(255,92,92,0.15);
}
.cc-dial { direction: ltr; font-size: 13px; font-weight: 600; }

.cc-panel {
  display: none; position: absolute; z-index: 60;
  top: calc(100% + 8px); left: 0;
  width: 280px; max-width: calc(100vw - 48px);
  background: #0d1420;
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 16px 44px rgba(0,0,0,0.6);
}
.cc-panel.open { display: block; }

.cc-search-wrap { padding: 10px; border-bottom: 1px solid var(--border); }
.cc-search {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,208,132,0.2);
  color: #fff; font-size: 14px; font-family: inherit; outline: none;
}
.cc-search:focus { border-color: var(--primary); }

.cc-list { max-height: 250px; overflow-y: auto; overscroll-behavior: contain; }
.cc-list::-webkit-scrollbar { width: 6px; }
.cc-list::-webkit-scrollbar-thumb { background: rgba(0,208,132,0.35); border-radius: 3px; }

.cc-grp {
  position: sticky; top: 0; padding: 8px 14px 5px;
  font-size: 11px; font-weight: 700; color: var(--primary);
  background: rgba(0,208,132,0.07);
}
.cc-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 14px; border: none; background: none; cursor: pointer;
  color: #fff; font-family: inherit; font-size: 14px; text-align: right;
  transition: background 0.15s ease;
}
.cc-item:hover, .cc-item.hi { background: rgba(0,208,132,0.12); }
.cc-item.sel { background: rgba(0,208,132,0.2); }
.cc-item .f { font-size: 17px; flex-shrink: 0; }
.cc-item .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-item .d { direction: ltr; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.cc-empty { display: none; padding: 22px 14px; text-align: center; font-size: 13px; color: var(--text-muted); }
.cc-empty.show { display: block; }

/* دولة الإقامة */
select.form-input {
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
  padding-left: 38px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2300D084' stroke-width='1.8'%3e%3cpath d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: left 12px center; background-size: 16px;
}
select.form-input option { background: #0d1420; color: #fff; }
select.form-input optgroup { background: #0a0f1a; color: var(--primary); font-weight: 700; }

/* رسالة النجاح */
.done-box { display: none; text-align: center; padding: 12px 0 4px; }
.done-tick {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; color: #020508;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 6px 24px rgba(0,208,132,0.35);
}
.done-title { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.done-text { font-size: 14px; color: var(--text-gray); margin-bottom: 18px; line-height: 1.7; }

@media (max-width: 380px) {
  .cc-btn { min-width: 78px; }
  .cc-panel { width: calc(100vw - 40px); }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1 !important; transform: none !important; }
}

/* ═══════════ الصفحات الداخلية ═══════════ */
.page-wrap { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 40px 20px 70px; }
.page-head { margin-bottom: 32px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: 26px; font-weight: 900; margin-bottom: 8px; line-height: 1.4; }
.page-head .upd { font-size: 13px; color: var(--text-muted); }
.page-wrap h2 {
  font-size: 19px; font-weight: 800; margin: 30px 0 12px;
  padding-right: 12px; border-right: 3px solid var(--primary); color: #fff;
}
.page-wrap h3 { font-size: 16px; font-weight: 800; margin: 20px 0 8px; color: var(--primary); }
.page-wrap p  { font-size: 15px; color: var(--text-gray); margin-bottom: 13px; line-height: 1.9; }
.page-wrap ul { list-style: none; margin: 0 0 16px; display: grid; gap: 8px; }
.page-wrap li { display: flex; gap: 10px; font-size: 15px; color: var(--text-gray); line-height: 1.8; }
.page-wrap li::before { content: '—'; color: var(--primary); font-weight: 900; flex-shrink: 0; }
.page-wrap a  { color: var(--primary); text-decoration: none; border-bottom: 1px solid rgba(0,208,132,0.35); }
.page-wrap table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 14px; }
.page-wrap th, .page-wrap td { padding: 10px 13px; text-align: right; border: 1px solid var(--border); }
.page-wrap th { background: rgba(0,208,132,0.08); color: #fff; font-weight: 800; }
.page-wrap td { color: var(--text-gray); }
.callout { padding: 18px 20px; border-radius: 14px; margin: 20px 0; background: rgba(0,208,132,0.07); border: 1px solid var(--border); }
.callout p { margin: 0; color: #fff; font-size: 15px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 30px;
  padding: 13px 26px; border-radius: 12px; text-decoration: none; border: none;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #020508; font-weight: 900; font-size: 15px; font-family: inherit;
  box-shadow: 0 4px 20px rgba(0,208,132,0.3);
}
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16/9; margin-bottom: 28px;
  border-radius: 18px; overflow: hidden; background: #000;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; flex-direction: column; gap: 8px;
  background: linear-gradient(160deg, rgba(0,208,132,0.1), rgba(10,15,26,0.9));
}
.video-ph b { font-size: 18px; font-weight: 900; color: #fff; }
.video-ph span { font-size: 14px; color: var(--text-gray); line-height: 1.75; }
.video-ph code {
  margin-top: 8px; padding: 7px 12px; border-radius: 8px; font-size: 13px; direction: ltr;
  background: rgba(0,0,0,0.5); border: 1px solid var(--border); color: var(--primary);
}

/* تحسينات الجاهزية والإتاحة */
:focus-visible { outline: 3px solid rgba(0,208,132,0.75); outline-offset: 3px; }
.btn-shine:active, .back-btn:active { transform: translateY(0); }
.back-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,208,132,0.38); }
.form-btn:disabled { cursor: wait; opacity: 0.68; transform: none; box-shadow: none; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error, .form-success { min-height: 22px; margin: 2px 0 0; font-size: 12px; text-align: center; }
.form-error { color: #ff9a9a; }
.form-success { color: var(--primary); }

.course-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.course-points > div { min-width: 0; padding: 14px 10px; border: 1px solid rgba(0,208,132,0.12); border-radius: 12px; background: rgba(0,208,132,0.045); text-align: center; }
.course-points strong { display: block; color: var(--primary); font-size: 18px; letter-spacing: 0.08em; }
.course-points span { display: block; margin-top: 4px; color: var(--text-gray); font-size: 11px; }
.ui-mark { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border: 1px solid rgba(0,208,132,0.35); border-radius: 7px; color: var(--primary); font-size: 10px; font-weight: 900; }

.course-intro { margin-bottom: 24px; padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg, rgba(0,208,132,0.1), rgba(20,25,40,0.72)); box-shadow: var(--shadow); }
.course-intro .eyebrow { margin-bottom: 4px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; }
.course-intro h2 { margin-top: 0; }
.course-intro p:last-child { margin-bottom: 0; }
.lesson-grid { display: grid; gap: 16px; }
.lesson-card { position: relative; padding: 24px; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-card); box-shadow: var(--shadow); }
.lesson-number { position: absolute; top: 12px; left: 18px; color: rgba(0,208,132,0.18); font-size: 46px; font-weight: 900; line-height: 1; }
.lesson-card h2 { position: relative; margin-top: 0; padding-left: 55px; }
.formula-box { margin-top: 18px; padding: 14px; border-radius: 12px; background: rgba(0,208,132,0.08); color: #fff; text-align: center; font-weight: 800; }

.legal-form { display: grid; gap: 14px; margin-top: 18px; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-card); box-shadow: var(--shadow); }
.legal-form label { display: grid; gap: 7px; color: #fff; font-size: 13px; font-weight: 700; }
.legal-form textarea { resize: vertical; min-height: 130px; }
.error-page { min-height: calc(100vh - 120px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.error-page p { max-width: 480px; margin-inline: auto; }
.error-code { margin-bottom: 12px; color: var(--primary); font-size: clamp(72px, 18vw, 140px); font-weight: 900; line-height: 0.9; letter-spacing: -0.06em; }
.compact-footer { padding-bottom: 28px; }

@media (max-width: 380px) {
  .sticky-header { padding-inline: 12px; }
  .header-sub { display: none; }
  .btn-shine { padding-inline: 13px; font-size: 11px; }
  .course-points { grid-template-columns: 1fr; }
  .course-points > div { display: flex; align-items: center; gap: 10px; text-align: right; }
  .course-points span { margin-top: 0; }
}

@media (min-width: 700px) {
  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-form label:last-of-type, .legal-form .form-btn, .legal-form .form-error, .legal-form .form-success { grid-column: 1 / -1; }
}

.skip-link {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #04110c;
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }
.brand-link { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; border: 0; }
.company-signature { font-size: 14px !important; }

.faq-section {
  position: relative;
  z-index: 10;
  max-width: 940px;
  margin: 0 auto;
  padding: 56px 20px 22px;
}
.section-heading { max-width: 620px; margin: 0 auto 22px; text-align: center; }
.section-kicker { display: block; margin-bottom: 7px; color: var(--primary); font-size: 12px; font-weight: 900; letter-spacing: 0.08em; }
.section-heading h2, .progress-panel h2 { font-size: clamp(22px, 4vw, 32px); line-height: 1.45; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--border); border-radius: 15px; background: rgba(20,25,40,0.78); box-shadow: var(--shadow); }
.faq-list summary { position: relative; padding: 18px 20px 18px 56px; cursor: pointer; color: #fff; font-size: 15px; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; left: 20px; top: 50%; color: var(--primary); font-size: 24px; transform: translateY(-50%); transition: transform 0.2s ease; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list p { padding: 0 20px 18px; color: var(--text-gray); font-size: 14px; line-height: 1.9; }

.action-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(0,208,132,0.3);
  border-radius: 16px;
  background: rgba(10,15,26,0.94);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(18px);
}
.action-dock span { color: var(--text-gray); font-size: 13px; font-weight: 700; }
.action-dock button, .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid rgba(0,208,132,0.45);
  border-radius: 11px;
  background: rgba(0,208,132,0.1);
  color: var(--primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.action-dock button { border: 0; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); color: #04110c; }
.secondary-btn:hover { background: rgba(0,208,132,0.17); }
.text-btn { padding: 8px; border: 0; background: transparent; color: var(--text-gray); font-family: inherit; font-weight: 700; cursor: pointer; }
.text-btn:hover { color: #fff; }

.progress-panel {
  display: grid;
  gap: 16px;
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(20,25,40,0.74);
  box-shadow: var(--shadow);
}
.progress-panel h2 { margin: 0; padding: 0; border: 0; font-size: 21px; }
.progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--text-gray); font-size: 13px; }
.progress-meta strong { color: var(--primary); font-size: 18px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,0.08); }
.progress-track span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-dark), var(--primary)); transform: scaleX(0); transform-origin: right; transition: transform 0.35s ease; }
.progress-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lesson-card { display: flex; flex-direction: column; }
.lesson-card.is-complete { border-color: rgba(0,208,132,0.48); background: linear-gradient(145deg, rgba(0,208,132,0.1), rgba(20,25,40,0.82)); }
.lesson-check { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 18px; color: var(--text-gray); font-size: 13px; font-weight: 700; cursor: pointer; }
.lesson-check input { width: 19px; height: 19px; accent-color: var(--primary); }
.lesson-card.is-complete .lesson-check { color: var(--primary); }
.error-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.error-actions .back-btn, .error-actions .secondary-btn { margin-top: 22px; }

.footer-nav { display: flex; justify-content: center; gap: 10px 18px; flex-wrap: wrap; margin: 8px 0; }
.footer-nav a { color: var(--text-gray); text-decoration: none; font-size: 12px; }
.footer-nav a:hover { color: var(--primary); }

@media (max-width: 560px) {
  .faq-section { padding-top: 40px; }
  .faq-list summary { padding-right: 16px; font-size: 14px; }
  .action-dock span { display: none; }
  .action-dock button { width: 100%; }
  .progress-actions { align-items: stretch; flex-direction: column; }
  .progress-actions button { width: 100%; }
  .error-actions { width: 100%; }
  .error-actions a { width: 100%; }
}

@media print {
  body { background: #fff; color: #111; }
  .ambient-glow, .grid-overlay, .sticky-header, .footer, .back-btn, .progress-actions, .lesson-check { display: none !important; }
  .page-wrap { max-width: none; padding: 0; }
  .page-wrap p, .page-wrap li { color: #333; }
  .page-wrap h1, .page-wrap h2, .page-wrap h3 { color: #111; }
  .course-intro, .progress-panel, .lesson-card, .callout { break-inside: avoid; border-color: #ccc; background: #fff; box-shadow: none; }
  .lesson-grid { grid-template-columns: 1fr 1fr; }
}
