@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* ========== متغيرات الموقع ========== */
:root {
  --primary: #647FBC;
  --primary-dark: #647FBC;
  --primary-light: #91ADC8;
  --primary-extra-light: #dbeafe;
  --secondary: #91ADC8;
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --bg-nav: #91ADC8;
  --text: #647FBC;
  --text-muted: #64748b;
  --text-light: white;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --accent: #91ADC8;
  --accent-light: #91ADC8;
  --shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
  --shadow-hover: 0 8px 20px rgba(59, 130, 246, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --accent-orange: #91ADC8;
  --accent-sprinkle-rgb: 221,174,211;
  --accent-pink: #91ADC8;
  --profile-card-pink: #FFF0F7;
  --sprinkle-blue-rgb: 59,130,246;
}

* {
  box-sizing: border-box;
  font-family: "Cairo", "Segoe UI", "Tahoma", sans-serif;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  background: #fff;
  /* richer sprinkle: multiple soft spots and a subtle repeating dust pattern */
  background-image:
    radial-gradient(circle at 8% 16%, rgba(var(--accent-sprinkle-rgb),0.14) 0 6px, transparent 12px),
    radial-gradient(circle at 22% 40%, rgba(var(--accent-sprinkle-rgb),0.10) 0 8px, transparent 14px),
    radial-gradient(circle at 55% 22%, rgba(var(--accent-sprinkle-rgb),0.12) 0 5px, transparent 11px),
    radial-gradient(circle at 78% 76%, rgba(var(--accent-sprinkle-rgb),0.08) 0 10px, transparent 18px),
    radial-gradient(circle at 65% 52%, rgba(var(--accent-sprinkle-rgb),0.06) 0 4px, transparent 8px),
    repeating-radial-gradient(circle at 50% 50%, rgba(var(--accent-sprinkle-rgb),0.02) 0 2px, transparent 6px);
  background-repeat: no-repeat;
  background-size: 240px 240px, 180px 180px, 200px 200px, 320px 320px, 140px 140px, 1200px 1200px;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ========== الشريط الجانبي (Sidebar) - إخفاء/إظهار ========== */
.site-sidebar {
  position: fixed;
  top: 56px;
  right: 0;
  width: 240px;
  max-width: 85vw;
  height: calc(100vh - 56px);
  /* make sidebar colors closer to hero/site palette */
  background: #647FBC;
  color: white;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow-y: auto;
}

.site-sidebar.sidebar-hidden {
  transform: translateX(100%);
  box-shadow: none;
}

.sidebar-inner {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 10px 8px;
  text-decoration: none;
  color: white;
  border-radius: var(--radius);
  margin-bottom: 6px;
}

.sidebar-logo span { font-size: 1.6rem; }

.sidebar-logo:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-links a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition);
  display: block;
}

.sidebar-links a:hover,
.sidebar-links a.active {
  background: rgba(255,255,255,0.2);
  color: white;
  padding-right: 20px;
}

.sidebar-links .nav-cta {
  background: rgba(255,255,255,0.25);
  font-weight: 600;
  margin-top: 8px;
}

.sidebar-links .nav-cta:hover {
  background: white;
  color: #91ADC8;
}

.sidebar-auth {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0 0;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.sidebar-auth .auth-btn {
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  border-color: rgba(255,255,255,0.8);
  color: white;
}

.sidebar-auth .auth-btn.login {
  background: transparent;
  color: white;
}

.sidebar-auth .auth-btn.register {
  background: rgba(255,255,255,0.95);
  color: #FAFDD6;
}

.sidebar-auth .auth-btn:hover {
  transform: translateY(-1px);
}

.sidebar-auth .auth-btn.login:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

.sidebar-auth .auth-btn.register:hover {
  background: white;
  color: #FAFDD6;
}

/* زر إخفاء/إظهار الشريط الجانبي */
.sidebar-toggle {
  position: fixed;
  right: 240px;
  top: 66px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: #647FBC;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: -2px 0 8px #647FBC;
  z-index: 102;
}

.sidebar-toggle:hover {
  background: #91ADC8;
  right: 236px;
}

.site-sidebar.sidebar-hidden .sidebar-toggle {
  right: 0px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* زر عائم لإظهار الشريط عند إخفائه */
.fab-show-nav {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #647FBC;
  color: white;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: #91ADC8;
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.fab-show-nav.visible {
  opacity: 1;
  visibility: visible;
}

.fab-show-nav:hover {
  background: #91ADC8;
  transform: scale(1.08);
}

/* محتوى الصفحة يتحرك عند وجود السايدبار */
body.has-sidebar .layout {
  margin-right: 240px;
  transition: margin var(--transition);
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
}

body.sidebar-hidden .layout {
  margin-right: 0;
}

/* أزرار تسجيل (داخل السايدبار أو كـ top-auth للصفحات بدون سايدبار) */
.top-auth {
  position: fixed;
  top: 16px;
  left: 20px;
  z-index: 99;
  display: flex;
  gap: 10px;
}

.auth-btn {
  padding: 10px 20px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid #647FBC;
}

.auth-btn.login {
  background: transparent;
  color: #FAFDD6;
}

.auth-btn.register {
  background: var(--primary);
  color: white;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.auth-btn.login:hover { background: white; color: #FAFDD6; }
.auth-btn.register:hover { background: #647FBC; color: white; }

/* ========== المحتوى الرئيسي ========== */
.layout {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.main {
  flex: 1;
  padding: 32px 24px 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

/* ========== صفحات المصادقة: تسجيل الدخول / إنشاء حساب بدون شريط جانبي ========== */
body.auth-page .layout {
  margin-right: 0;
  padding-top: 20px;
}

#emailInput,
.form-card {
  max-width: 520px;
  margin: 20px auto;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

#emailInput h2 { text-align: center; margin-top: 0; color:#647FBC ;}

#emailInput input,
.form-card input {
  width: 100%;
  padding: 12px 14px;
  margin: 10px 0;
  border: 1px solid #91ADC8;
  border-radius: 10px;
  font-size: 1rem;
}

#emailInput button,
.form-card button {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

#emailInput .switch { text-align: center; margin-top: 12px; color: #647FBC; }

/* Registrant count style */
.registrant-count {
  text-align: center;
  margin-top: 14px;
  color: #647FBC;
  font-size: 1.05rem;
}

/* admin manage floating button (small) - removed; kept for compatibility */
/* removed floating admin manage button styles */


/* ========== Hero - بالعرض ========== */
.hero {
  background: linear-gradient(135deg, var(--primary-extra-light), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease;
  min-height: 280px;
  border: 1px solid var(--border-light);
}

.hero-text {
  flex: 1 1 300px;
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #647FBC;
  line-height: 1.3;
  margin: 0 0 16px;
  font-weight: 700;
}

.hero-text p {
  margin: 0 0 24px;
  color: #647FBC;
  font-size: 1rem;
  line-height: 1.5;
}

.main-btn {
  display: inline-block;
  background: #647FBC;
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px #647FBC;
}

.main-btn:hover {
  background: #91ADC8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.hero-img {
  flex: 1 1 250px;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.15));
}

/* ========== البطاقات - بالعرض (شبكة أفقية) ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
  margin-bottom: 32px;
  width: 100%;
}

.card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: var(--transition);
  animation: fadeInUp 0.5s ease backwards;
  border: 1px solid var(--border);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  border-color: #647FBC;
}

.card h3 {
  margin: 0 0 8px;
  color: #647FBC;
  font-size: 1.1rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: #647FBC;
  font-size: 0.9rem;
  line-height: 1.4;
}

.card-link {
  text-decoration: none;
  color: inherit;
  position: relative;
  padding-left: 40px;
}

.card-link .card-arrow {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #647FBC;
  opacity: 0;
  transition: var(--transition);
}

.card-link:hover .card-arrow {
  opacity: 1;
  left: 12px;
}

.section-box a {
  color: #647FBC;
  font-weight: 600;
  text-decoration: none;
}

.section-box a:hover {
  text-decoration: underline;
}

.section-box {
  flex: 1 1 240px;
  min-width: 0;
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(11, 39, 116, 0.863);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.section-box:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: #647FBC;
}

.section-box h3 {
  margin: 0 0 8px;
  color: #647FBC;
  font-size: 1.1rem;
  font-weight: 600;
}

.section-box p,
.section-box ul {
  margin: 0;
  color: #647FBC;
  font-size: 0.9rem;
  line-height: 1.5;
}

.section-box ul {
  padding-right: 20px;
}

/* ========== الفوتر ========== */
.site-footer {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  margin-top: auto;
  padding: 40px 24px 24px;
  width: 100%;
  overflow-x: hidden;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ========== صفحة تسجيل الدخول / إنشاء حساب ========== */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
}

.auth-page .site-header {
  position: relative;
}

.auth-page .main.auth-main,
.auth-page .main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-banner {
  margin: 24px 0 16px;
  background: linear-gradient(135deg, #e8f2ff 0%, #d4e5ff 50%, #c4dcff 100%);
  padding: 20px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
  animation: fadeInUp 0.5s ease;
}

.auth-banner h1 {
  color: #647FBC;
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 700;
}

.auth-banner p {
  margin: 0;
  color: #647FBC;
  font-size: 0.95rem;
}

.auth-page .header-banner {
  margin: 24px 0 16px;
  background: linear-gradient(135deg, #e8f2ff, #d4e5ff);
  padding: 14px 32px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-page .header-banner h1 {
  color: #647FBC;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

/* طبقة overlay عند فتح السايدبار على الجوال */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.sidebar-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.create-account{
  background: var(--bg-card);
  width: 100%;
  max-width: 380px;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(10,63,168,0.12), 0 0 0 1px var(--border);
  text-align: center;
  animation: authCardIn 0.6s ease;
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.create-account h2 {
  margin: 0 0 24px;
  color: #647FBC;
  font-size: 1.4rem;
}

.create-account input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  font-size: 1rem;
  transition: var(--transition);
  direction: rtl;
}

.create-account input:focus {
  outline: none;
  border-color: #647FBC;
  box-shadow: 0 0 0 4px #647FBC;
}

.create-account button {
  width: 100%;
  padding: 14px;
  background: #AED6CF;
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  margin-top: 8px;
}

.create-account button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #647FBC;
}

.create-account .switch {
  margin-top: 20px;
  font-size: 0.95rem;
  color: #647FBC;
}

.create-account .switch a {
  color: #647FBC;
  font-weight: 600;
  text-decoration: none;
}

.create-account .switch a:hover {
  text-decoration: underline;
}

/* ========== صفحة التقديم للجائزة (register.html) ========== */
.form-card {
  background: #91ADC8;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 0 auto;
}

.form-card input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  border: 2px solid white;
  font-size: 1rem;
  direction: rtl;
  transition: var(--transition);
}

/* Improve registration form layout - consistent spacing and responsive grid */
.form-card fieldset {
  margin: 0 0 18px;
  border: 1px solid white;
  padding: 12px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: center;
}

.form-card legend {
  color: white;
  font-weight: 700;
  padding: 0 6px;
}

.form-card label { display: block; margin-bottom: 4px; color: white; }

.form-card select, .form-card input[type="date"], .form-card input[type="tel"], .form-card input[type="email"], .form-card input[type="number"] {
  width: 100%;
  padding: 12px 10px;
  border-radius: 8px;
  border: 1px solid white;
}

.form-card .main-btn { max-width: 320px; margin: 8px auto 0; }

/* Radios and checkboxes alignment */
.form-card [type="radio"], .form-card [type="checkbox"] { transform: translateY(2px); margin-left: 6px; }

.form-card input:focus {
  outline: none;
  border-color: white;
}

.form-card .main-btn {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
}

/* ========== أنيميشنز ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== تخطيط الصفحات الداخلية (بدون هيرو) ========== */
.main-standalone {
  flex: 1;
  padding: 32px 24px 48px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}


/* ========== شريط علوي لاسم الموقع ========== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  /* animated white/blue background */
  background:#647FBC;
  background-size: 300% 100%;
  animation: topbarShift 10s linear infinite;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 101;
  box-shadow: 0 1px 8px #647FBC;
}

.top-bar a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.top-bar a:hover {
  opacity: 0.95;
}

@keyframes topbarShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.7);
  box-shadow: 0 6px 16px rgba(16,24,40,0.08);
  background: linear-gradient(135deg, var(--primary-extra-light), #fff);
}

@media (max-width: 480px) {
  .avatar-preview { width: 96px; height: 96px; }
}

/* Profile avatar control styling: white label text and subtle tint */
.profile-avatar { display:flex;flex-direction:column;align-items:center;gap:8px;margin:18px 0 12px; }
.profile-avatar .main-btn,
.profile-avatar #removeAvatarBtn,
.profile-form .main-btn,
.profile-form #logoutFromProfile {
  color: #fff !important;
  background: #647FBC !important;
  border: 1px solid #91ADC8 !important;
  padding: 6px 10px !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  box-shadow: 0 4px 10px #647FBC !important;
  border-radius: 7px !important;
}
.profile-avatar .main-btn:hover,
.profile-avatar #removeAvatarBtn:hover { background: #91ADC8; }

/* Top-bar profile badge (avatar + name) */
 .auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.98);
  color: #647FBC;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.96rem;
}.top-bar

.top-bar .auth-badge .auth-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 14px #647FBC;
  border: 2px solid rgba(255,255,255,0.9);
}

/* prominent profile link in the top bar */
.nav-profile-link {
  display: inline-block;
  padding: 6px 10px;
  margin-left: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: #647FBC;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #647FBC;
  line-height: 1;
  transition: background .18s ease, transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 1px 0 #647FBC;
  padding-top:5px; padding-bottom:5px;
}
.nav-profile-link:hover {
  background: #91ADC8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px #647FBC;
}

/* New profile bubble (avatar circle with label under) */
.nav-profile-bubble {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  margin-left: 8px;
}
.nav-profile-bubble .nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display:flex;align-items:center;justify-content:center;
  background: #91ADC8;
  border: 1px solid #647FBC;
}
.nav-profile-bubble .nav-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.nav-profile-bubble .nav-initials { font-weight:700; color:#647FBC; }
.nav-profile-bubble { position: relative; }
.nav-profile-bubble .nav-label { display: none; }

/* tooltip on hover to indicate profile */
.nav-profile-bubble::after {
  content: '';
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #ffffff;
  color: #AED6CF;
  font-size: 0.75rem;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(var(--accent-sprinkle-rgb),0.95);
  box-shadow: 0 6px 16px #647FBC;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .16s ease, transform .16s ease;
}
.nav-profile-bubble:hover::after { content: 'بروفايل'; opacity: 1; transform: translateX(-50%) translateY(0); }

/* small nav-profile icon (compact) */
.nav-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: 8px;
  text-decoration: none;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.04);
}
.nav-profile .nav-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav-profile-placeholder {
  width: 100%;
  height: 100%;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;color:#647FBC;
}

/* three-dot quick button */
.profile-dot {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #647FBC;
  margin-left: 6px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.profile-dot:hover { background: rgba(221,174,211,0.08); color: #647FBC; }

/* subtle orange accents for profile page buttons */
.profile-form .main-btn { background: #91ADC8; }
.profile-return-btn { background: rgba(221,174,211,0.07); color: #647FBC; border: 1px solid #647FBC; }
.profile-return-btn:hover { background: rgba(221,174,211,0.12); }

/* smaller greeting text in the top bar */
.auth-greet-small {
  color: #647FBC;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

/* Profile form polish */
.profile-form {
  max-width: 560px;
  padding: 28px 26px;
  border-radius: 16px;
}
.profile-page .profile-form { box-shadow: none; border: 1px solid rgba(0,0,0,0.04); background: linear-gradient(180deg,#fff,#fbfcff); }

/* Use the user's pink accent inside the profile page (override site blues) */
.profile-page{
  --primary: var(--accent-orange);
  --primary-dark: #647FBC;
  --primary-light: #91ADC8;
}
.profile-form label { display:block; text-align:right; margin-top:8px; color:var(--text-muted); font-weight:600; }
.profile-form input { margin:6px 0 10px; padding:12px; border-radius:10px; border:1px solid #647FBC; }
.profile-form .main-btn { max-width: 280px; }



.top-bar-auth {
  display: flex;
  gap: 8px;
  align-items: center;
}

.top-bar-auth .auth-btn {
  padding: 6px 12px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid white;
}

.top-bar-auth .auth-btn.login {
  background: transparent;
  color: white;
}

.top-bar-auth .auth-btn.register {
  background: rgba(255,255,255,0.9);
  color: #647FBC;
}

.top-bar-auth .auth-btn:hover {
  transform: translateY(-1px);
}

.top-bar-auth .auth-btn.login:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

.top-bar-auth .auth-btn.register:hover {
  background: white;
  color:#647FBC;
}

body.has-topbar .layout {
  padding-top: 40px;
}

/* ========== responsive: الشريط الجانبي والمحتوى ========== */
@media (max-width: 992px) {
  body.has-sidebar .layout {
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }

  .site-sidebar {
    width: 240px;
    max-width: 90vw;
  }

  .site-sidebar.sidebar-hidden {
    transform: translateX(100%);
  }

  .sidebar-toggle {
    left: -40px;
  }

  .main,
  .main-standalone {
    padding: 24px 20px 40px;
  }

  .section-box {
    min-width: 100%;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-sidebar {
    width: min(300px, 100%);
    max-width: 100%;
    box-shadow: -8px 0 32px #647FBC;
  }

  .site-sidebar.sidebar-hidden {
    transform: translateX(100%);
  }

  .sidebar-toggle {
    left: -44px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
  }

  .hero-text {
    width: 100%;
  }

  .hero-img {
    flex: 1 1 auto;
    min-width: 100%;
  }

  .hero-img img {
    max-width: 100%;
  }

  .section-box {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .form-card {
    margin: 0 16px;
    padding: 28px 24px;
    width: calc(100% - 32px);
  }
}

@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
  }

  .main,
  .main-standalone {
    padding: 20px 16px 32px;
    max-width: 100%;
  }

  .hero {
    padding: 28px 20px;
  }

  .hero-img img {
    width: 100%;
    max-width: 100%;
  }

  .fab-show-nav {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .create-account{
    padding: 28px 20px;
    margin: 0 8px;
    max-width: calc(100% - 16px);
  }

  .auth-banner {
    padding: 16px 20px;
  }

  .auth-banner h1 {
    font-size: 1.2rem;
  }

  .card {
    padding: 20px 18px;
  }

  .top-bar {
    height: 48px;
  }

  .top-bar a {
    font-size: 0.9rem;
  }

  body.has-topbar .layout {
    padding-top: 48px;
  }

  .site-sidebar {
    top: 48px;
    height: calc(100vh - 48px);
  }

  .top-bar .auth-badge .auth-avatar { width:36px; height:36px; }
}

/* شاشات كبيرة جداً */
@media (min-width: 1400px) {
  .main {
    max-width: 1280px;
    padding: 40px 32px 56px;
  }

  .main-standalone {
    max-width: 1000px;
  }
}
.trophy-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #ffffff;
  overflow: hidden;      /* 🔥 هاي أهم سطر */
  display: flex;
  align-items: center;
  justify-content: center;
}

.trophy-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* يقص الصورة صح */
}
.prize-image-wrapper {
  text-align: center;
  margin: 32px 0;
}

.prize-image {
  width: 80%;
  max-width: 320px;
  height: auto;
  border-radius: 16px;

  /* ألوان مناسبة للموقع */
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15),
    rgba(37, 99, 235, 0.25)
  );

  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);

  /* الحركة */
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;

  /* حركة الدخول */
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

/* Hover */
.prize-image:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.35);
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* استيراد خط عربي جميل */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

.award-section {
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
    padding: 40px 20px;
    background-color: #f0f7ff; /* خلفية سماوية فاتحة جداً مريحة للعين */
    text-align: center;
}

.main-title {
    color: #647FBC;
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
    /* تفعيل الحركات */
    display: inline-block;
    width: 100%;
    animation: floatingLoop 3s ease-in-out infinite; /* حركة فوق وتحت مستمرة */
}

.award-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 850px;
    margin: 0 auto;
}

/* ستايل البطاقات */
.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease; /* حركة النعومة */
    position: relative;
}

/* حركة عند وضع الماوس على البطاقة */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px #647FBC;
    border-color: #647FBC;
}

.card-icon {
    font-size: 30px;
    margin-bottom: 15px;
}

/* ستايل الفئات المستهدفة (Tags) */
.target-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.tag {
    background: #e1f0ff;
    color: #647FBC;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
}

.small-text {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}
/* تنسيق القسم كاملاً */
.tracks-section {
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
    padding: 40px 20px;
    background-color: #fcfdfe; /* خلفية هادئة جداً */
    text-align: center;
}

.tracks-intro {
    max-width: 800px;
    margin: 0 auto 40px;
}

.tracks-intro h2 {
    color: #647FBC; /* أزرق الموقع */
    font-size: 2rem;
    margin-bottom: 15px;
}

.tracks-intro p {
    color: #666;
    line-height: 1.6;
}

/* حاوية البوكسات */
.tracks-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* تصميم البوكس البسيط */
.track-box {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 15px;
    padding: 30px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15); /* ظل خفيف جداً */
    transition: transform 0.3s ease;
}

.track-box:hover {
    transform: translateY(-5px);
    border-color: #647FBC; /* يظهر اللون عند المرور فقط */
}

.track-box h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.track-box p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify; /* جعل النص متساوي الأطراف */
    text-align-last: center;
}
.tracks-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    color: #647FBC; 
    
    /* تفعيل الحركات */
    display: inline-block;
    width: 100%;
    animation: floatingLoop 3s ease-in-out infinite; /* حركة فوق وتحت مستمرة */
}

/* تعريف حركة اللوب (فوق وتحت بنعومة) */
@keyframes floatingLoop {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px); /* يرتفع للأعلى */
    }
    100% {
        transform: translateY(0px); /* يعود لمكانه */
    }
}

/* إذا بدك الحركة تكون (يمين وشمال) استبدل اللي فوق بهذا: */
@keyframes sideToSide {
    0% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(-10px); }
}
.track-box img {
    width: 100%;       /* تجعل الصورة تأخذ كامل عرض البوكس */
    height: 220px;     /* يمكنك زيادة هذا الرقم لتكبير الارتفاع أكثر */
    object-fit: cover; /* أهم خاصية: تخلي الصورة تتكبر بدون ما تمط أو تخرب */
    border-radius: 15px 15px 0 0; /* انحناء فقط من الأعلى ليتماشى مع البوكس */
    margin-bottom: 20px;
    display: block;
    transition: transform 0.5s ease; /* حركة النعومة عند التكبير */
}
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

.simple-guide {
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
    padding: 80px 20px;
    background: #fff;
    text-align: center;
}

.guide-header h1 {
    color: #647FBC;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* خط بسيط تحت العنوان بدل حركة اللوب */
.header-line {
    width: 60px;
    height: 3px;
    background: #647FBC;
    margin: 0 auto 60px;
    border-radius: 10px;
}

.simple-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.s-step {
    background: #ffffff;
    padding: 40px 25px;
    flex: 1;
    min-width: 280px;
    border-radius: 12px;
    
    /* إضاءة "Glow" هادية وراقية موجودة دايماً */
    border: 1px solid #f0f4f8;
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.06); 
    
    transition: all 0.3s ease;
}

/* حركة بسيطة جداً وغير مزعجة عند اللمس */
.s-step:hover {
    box-shadow: 0 15px 50px rgba(0, 123, 255, 0.12);
    transform: translateY(-5px);
}

.s-num {
    display: block;
    color: #647FBC;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    opacity: 0.3; /* خليت الرقم شفاف شوي ليعطي لمسة عصرية */
}

.s-step h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.s-step p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}
.premium-faq {
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
    padding: 80px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

.faq-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.faq-main-title {
    color: #647FBC;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
}

.faq-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* تصميم السؤال الفخم */
.premium-faq-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #647FBC;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px #647FBC;
}

.premium-faq-item:hover {
    box-shadow: 0 10px 30px #647FBC;
    border-color: #647FBC;
}

/* زر السؤال */
.faq-trigger {
    width: 100%;
    padding: 25px 30px;
    background: none;
    border: none;
    text-align: right;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-trigger::after {
    content: '↓';
    color: #647FBC;
    font-size: 1.4rem;
    transition: transform 0.4s;
}

/* محتوى الإجابة */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 30px;
}

.faq-content p, .faq-content li {
    color: #555;
    line-height: 1.8;
    padding-bottom: 20px;
    font-size: 1.05rem;
}

/* الحالة النشطة */
.premium-faq-item.active {
    background: #ffffff;
    box-shadow: 0 15px 40px #647FBC;
}

.premium-faq-item.active .faq-content {
    max-height: 400px;
}

.premium-faq-item.active .faq-trigger::after {
    transform: rotate(180deg);
}
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

.visual-hub {
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
    padding: 80px 20px;
    background: radial-gradient(circle at center, #ffffff 0%, #f7faff 100%);
    text-align: center;
}

.hub-main-title {
    color: #647FBC;
    font-size: 2rem; /* صغرت العنوان */
    font-weight: 700;
    margin-bottom: 70px;
}

.bubbles-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* تقريب الدوائر من بعضها */
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.bubble-item {
    text-decoration: none;
    transition: all 0.4s ease;
    width: 160px; /* عرض أقل ليتناسب مع 4 دوائر */
}

/* تنسيق الدائرة */
.bubble-glass {
    width: 140px; /* حجم الدائرة أصغر وأرشق */
    height: 140px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid #647FBC;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 15px 35px #647FBC;
    animation: float 5s ease-in-out infinite;
}

/* تمييز الدائرة المركزية بشكل بسيط */
.bubble-item.center .bubble-glass {
    width: 160px;
    height: 160px;
    border-color: #647FBC;
    background: rgba(240, 247, 255, 0.8);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* تنسيق الصور بدلاً من الإيموجي */
.img-icon {
    width: 120px; /* حجم الصور داخل الدائرة */
    height: auto;
    opacity: 0.9;
}

/* تصغير الخطوط */
.bubble-item h3 {
    color: #333;
    font-size: 1.1rem; /* خط أصغر وأرتب */
    font-weight: 700;
    margin-bottom: 5px;
}

.bubble-item p {
    color: #777;
    font-size: 0.85rem; /* خط الوصف أصغر */
    line-height: 1.4;
}

/* تفاعل الماوس */
.bubble-item:hover .bubble-glass {
    transform: scale(1.08);
    background: #ffffff;
    box-shadow: 0 20px 45px #647FBC;
    border-color: #647FBC;
}

.bubble-item:hover h3 {
    color: #647FBC;
}
.hero-section {
    padding: 100px 20px;
    background: #f8fbff; /* خلفية سماوية فاتحة جداً لراحة العين */
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap; /* لجعلها متوافقة مع الجوال */
}

/* التنسيق العام (للكمبيوتر والتليفون) */
.hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    position: relative;
    display: flex;
    justify-content: center; /* سنترة أفقية للأب */
    align-items: center;     /* سنترة عمودية للأب */
    width: 100%;             /* ضمان أخذ كامل العرض المتاح */
    overflow: hidden;        /* منع أي بروز للصورة للخارج */
}

.hero-img {
    width: 100%; 
    max-width: 400px;
    border-radius: 20px; 
    box-shadow: 0 25px 50px rgba(0, 123, 255, 0.1); 
    display: block;
    margin: 0 auto;          /* سنترة إجبارية للصورة نفسها */
    height: auto; 
}

/* تنسيق خاص للتليفون (شاشات أقل من 768px) */
@media (max-width: 768px) {
    .hero-image-wrapper {
        min-width: 100%;     /* تأكيد أخذ كامل عرض شاشة الموبايل */
        padding: 20px 0;     /* إضافة مساحة بسيطة فوق وتحت الصورة */
    }
    
    .hero-img {
        width: 85%;          /* تصغير العرض قليلاً لترك مسافة أنيقة على الجوانب */
        max-width: 320px;    /* تحديد حجم مناسب ليد اليد الواحدة */
        margin: 0 auto !important; /* التأكيد على السنترة باستخدام !important */
    }
}

/* قسم النص */
.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: 2.8rem;
    color: #333;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-title span {
    color: #647FBC; /* تمييز السنة بلون الموقع */
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* أزرار الحركة */
.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-primary-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 15px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 20px linear-gradient(135deg, var(--primary), var(--primary-light));
    transition: 0.3s;
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    background: #91ADC8;
}

.btn-secondary-link {
    color: #91ADC8;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

/* تأثير متجاوب للجوال */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse; /* الصورة تحت النص في الجوال */
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
}

/* تنسيق القسم الرئيسي ليكون في المنتصف */
.hero-section {
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fbff;
    direction: rtl;
    padding: 60px 0;
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px; /* مسافة كافية بين النص والدائرة */
}

.hero-content {
    flex: 1;
    text-align: right;
    max-width: 500px;
}


/* أنيميشن دوران الحلقة الخلفية */
@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* تنسيق العناوين والأزرار */
.hero-title { font-size: 2.8rem; font-weight: 800; color: #333; margin-bottom: 20px; }
.hero-title span { color: #647FBC; }
.hero-description { font-size: 1.2rem; color: #666; margin-bottom: 40px; line-height: 1.8; }

.btn-primary-hero {
    background: #647FBC;
    color: white;
    padding: 15px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 10px 20px #647FBC;
}

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

.attachment-guide {
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
    padding: 80px 20px;
    background: radial-gradient(circle at top, #f0f7ff 0%, #ffffff 100%);
}

.guide-header {
    text-align: center;
    margin-bottom: 60px;
}

.main-title {
    color: #647FBC;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.sub-title {
    color: #666;
    font-size: 1.1rem;
}

/* تصميم التايم لاين */
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-right: 2px dashed rgba(11, 39, 116, 0.863); /* الخط الجانبي */
    padding-right: 40px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

/* النقطة الملونة */
.timeline-dot {
    position: absolute;
    right: -67px;
    top: 0;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #647FBC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px #647FBC;
    z-index: 2;
}

/* الكرت الزجاجي */
.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 10px 30px #647FBC;
    transition: 0.3s;
}

.card-glass:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 40px #647FBC;
}

.card-glass h2 {
    color: #647FBC;
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f7ff;
    padding-bottom: 10px;
}

/* تفاصيل القوائم */
.card-glass ul {
    list-style: none;
    padding: 0;
}

.card-glass li {
    margin-bottom: 12px;
    color: #555;
    position: relative;
    padding-right: 20px;
}

.card-glass li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #647FBC;
    font-weight: bold;
}

.deadline-text {
    color: #d9534f !important; /* لون أحمر للتنبيه بموعد الإغلاق */
    font-weight: 700;
}

/* توزيع الخطوات */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mini-step {
    background: #f8fbff;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}

.mini-step span {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #647FBC;
    color: white;
    border-radius: 50%;
    line-height: 30px;
    font-weight: bold;
    margin-bottom: 10px;
}

.mini-step p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* قسم الضوابط */
.warnings {
    border-right: 5px solid #647FBC;
}

.check-item {
    background: #fff;
    margin-bottom: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    color: #28a745;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px #647FBC;
}

.feature-tag {
    display: inline-block;
    background: #e1f0ff;
    color: #647FBC;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 5px;
}

/* للجوال */
@media (max-width: 768px) {
    .timeline-container { border-right: none; padding-right: 0; }
    .timeline-dot { display: none; }
}
.hidden-access-area {
    text-align: center;
    padding: 60px 20px;
    background: #fdfdfd;
    border-top: 1px solid #f0f4f8;
    margin-top: 40px;
}

.hidden-access-area p {
    color: #777;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.access-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #647FBC;
    color: #ffffff;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(11, 39, 116, 0.863);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.access-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px #647FBC;
    background: #91ADC8;
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.access-btn:hover .btn-icon {
    transform: rotate(-15deg) scale(1.2);
}
.submission-hub {
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
    padding: 40px 20px;
    background: #f4f8fb;
    min-height: 100vh;
}

.hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(94, 136, 228, 0.863);
    margin-bottom: 40px;
}

.score-badge {
    background: linear-gradient(135deg, #647FBC, #647FBC);
    color: #fff;
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
}

.score-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

/* شبكة الكروت */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.criteria-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.criteria-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.05); }

.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }

.points-tag {
    background: #e1f0ff;
    color: #647FBC;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* منطقة الرفع */
.upload-zone {
    border: 2px dashed #d1d9e0;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    margin: 20px 0;
    cursor: pointer;
    background: #fafbfc;
    transition: 0.3s;
    color: #7a869a;
}

.upload-zone:hover { border-color: #647FBC; background: #f0f7ff; color: #647FBC; }

/* المؤشرات */
.status-indicator { font-size: 0.85rem; font-weight: 700; }
.uploaded { color: #28a745; }
.missing { color: #dc3545; }
.pending { color: #ffc107; }

.edit-btn {
    background: none;
    border: 1px solid #647FBC;
    color: #647FBC;
    padding: 5px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.save-all-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    padding: 18px;
    background: #647FBC;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px #647FBC;
    cursor: pointer;
}
.criteria-main-icon {
    font-size: 2.2rem;
    color: #647FBC;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 4px 8px #647FBC);
}

.criteria-card:hover .criteria-main-icon {
    transform: scale(1.1) rotate(5deg);
    transition: 0.3s ease;
}


.progress-percent {
    background: #647FBC;
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
}

.progress-fill {
    height: 100%;
    width: 0%; /* سيتغير برمجياً */
    background: linear-gradient(90deg, #647FBC, #647FBC);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px #647FBC;
}

/* تحسين شكل الحقول في صفحة البروفايل */
.profile-page input[type="text"],
.profile-page input[type="tel"],
.profile-page input[type="email"] {
    width: 100%;                  /* جعل الحقل يأخذ كامل العرض المتاح */
    max-width: 500px;             /* تحديد طول أقصى مناسب */
    padding: 12px 15px;           /* مساحة داخلية مريحة للكتابة */
    margin-top: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;           /* حواف ناعمة */
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.profile-page input:focus {
    border-color: #647FBC;        /* تغيير اللون عند الضغط */
    outline: none;
    box-shadow: 0 0 5px #647FBC;
}

.profile-page label {
    display: block;
    font-weight: bold;
    color: #444;
    margin-bottom: 5px;
}
/* تنسيق حقول صفحة البروفايل */
#profileForm {
    max-width: 600px; /* تحديد عرض النموذج */
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
}

#profileForm fieldset {
    border: none;
    margin-bottom: 25px;
    padding: 0;
}

#profileForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #4a4a4a;
    font-size: 0.95rem;
}

#profileForm input[type="text"],
#profileForm input[type="tel"],
#profileForm input[type="email"] {
    width: 100%;             /* جعل الحقل يأخذ العرض كاملاً */
    padding: 14px 18px;      /* زيادة المساحة الداخلية للكتابة */
    font-size: 1rem;
    border: 2px solid #eef2f6;
    border-radius: 10px;     /* حواف ناعمة */
    background-color: #fcfdfe;
    transition: all 0.3s ease;
    box-sizing: border-box;  /* لضمان عدم خروج الحقل عن الإطار */
}

#profileForm input:focus {
    border-color: #647FBC;
    background-color: #fff;
    outline: none;
    box-shadow: 0 4px 12px #647FBC;
}

/* تنسيق زر حفظ التغييرات */
.save-profile-btn {
    width: 100%;
    padding: 15px;
    background-color: #647FBC;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.save-profile-btn:hover {
    background-color: #647FBC;
}
.nursing-footer {
    background-color: #647FBC; /* اللون الأزرق الملكي */
    background-image: linear-gradient(#647FBC, #647FBC);
    color: white;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    padding-top: 20px; /* تقليل الفراغ العلوي ليناسب اللوقو الكبير */
}

.footer-main-content {
    display: flex;
    justify-content: space-around;
    align-items: center; /* سنترت العناصر عمودياً لتقليل الارتفاع */
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    gap: 30px;
}

.f-column {
    flex: 1;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.f-column:last-child {
    border-left: none;
}

/* تنسيق اللوقو 200px */
.f-logo {
    width: 200px; 
    height: auto;
    margin-bottom: -5px; 
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
}

.brand-wrap h3 {
    font-size: 1rem;
    margin-top: 0;
}

.f-column p {
    max-width: 250px;
    margin: 5px auto;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* تنسيق العناوين والخطوط الأفقية */
.column-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.column-title .line {
    height: 1px;
    background: white;
    width: 30px;
    opacity: 0.5;
}

.column-title h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
}

.f-links {
    list-style: none;
    padding: 0;
}

.f-links li a, .email-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: 0.3s;
}

.f-links li a:hover, .email-link:hover {
    opacity: 1;
    color: #91ADC8;
}

.f-bottom-bar {
    border-top: 1px solid #91ADC8;
    padding: 15px 0;
    text-align: center;
    font-size: 0.8rem;
    background: #647FBC;
    margin-top: 20px;
}

.dev-tag a {
    color: #FAFDD6;
    text-decoration: none;
    font-weight: bold;
}

/* الموبايل */
@media (max-width: 768px) {
    .footer-main-content { flex-direction: column; }
    .f-column { border-left: none; border-bottom: 1px solid #91ADC8; padding-bottom: 15px; }
    .f-logo { width: 150px; } /* تصغير بسيط للموبايل */
}
.admin-dashboard {
    background-color: #f4f7f6; /* خلفية هادئة للوحة التحكم */
    padding: 20px;
    direction: rtl;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px #647FBC;
    text-align: center;
    border-bottom: 4px solid #ddd;
}

.stat-card i { font-size: 2rem; margin-bottom: 10px; }
.stat-card.blue { border-color: #00bcd4; color: #00bcd4; }
.stat-card.green { border-color: #4caf50; color: #4caf50; }
.stat-card.orange { border-color: #ff9800; color: #ff9800; }

.stat-card p {
    font-size: 2.2rem;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.input-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.input-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.section-desc {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

@media (max-width: 900px) {
    .dashboard-content { grid-template-columns: 1fr; }
}

/* 1. تنسيق الصفحة العام - مناسب لجميع الأجهزة */
.main-standalone {
    width: 95% !important; /* لضمان وجود مسافة صغيرة على الجوانب في الموبايل */
    max-width: 600px !important; /* تصغير العرض الكلي قليلاً للتناسق */
    margin: 20px auto !important;
    direction: rtl !important;
    background: #ffffff !important;
    font-family: sans-serif;
    box-sizing: border-box !important;
}

/* 2. صندوق الملاحظة */
.register-link-note {
    background-color: #f0f4f8 !important; 
    border: 3px solid #647FBC !important;
    border-radius: 8px;
    padding: 15px !important; /* تقليل الحشوة للتصغير */
    margin-bottom: 25px;
    text-align: center;
}

.register-link-note p, .register-link-note a {
    color: #647FBC !important;
    font-weight: bold !important;
    font-size: 1rem !important; /* تصغير الخط قليلاً */
}

/* 3. تنسيق النموذج (الفورم) */
.form-card {
    border: 3px solid #647FBC !important;
    padding: 20px !important; /* تقليل الحشوة */
    background: #ffffff !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important; /* لترتيب العناصر عمودياً */
}

/* 4. حدود الأقسام الداخلية */
fieldset {
    border: 2px solid #91ADC8 !important;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 15px !important;
}

legend {
    color: #647FBC !important;
    font-weight: 900 !important;
    font-size: 1.1rem !important;
    padding: 0 10px;
    background: #fff;
}

/* 5. الحقول النصية والقوائم */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="tel"], 
input[type="date"], 
input[type="number"], 
select {
    width: 100% !important;
    background-color: #ffffff !important; 
    color: #333 !important;
    border: 2px solid #91ADC8 !important;
    padding: 12px !important; /* تصغير الـ padding */
    margin: 8px 0 !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    border-radius: 0;
    box-sizing: border-box !important;
}

/* 6. تنسيق النصوص التوضيحية (Labels) */
label {
    color: #647FBC !important;
    font-weight: bold !important;
    display: block;
    margin-top: 10px;
}

/* 7. استقامة الدوائر (الراديو والمربعات) */
fieldset div, fieldset label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important; 
    gap: 10px !important; 
    margin: 8px 0 !important;
    cursor: pointer;
}

input[type="radio"], 
input[type="checkbox"] {
    width: 20px !important; /* تصغير بسيط */
    height: 20px !important;
    margin: 0 !important;
    flex-shrink: 0;
    border: 2px solid #647FBC !important;
}

/* 8. زر الإرسال - حل مشكلة "العوج" والتصغير */
.main-btn {
    width: 100% !important; /* العرض الكامل يضمن التوسط */
    max-width: 300px !important; /* تحديد أقصى عرض للزر عشان ما يكون ضخم */
    align-self: center !important; /* هذا السطر هو اللي بوسط الكبسة بالضبط */
    background-color: #647FBC !important;
    color: #ffffff !important;
    padding: 12px 20px !important; /* تصغير الحجم */
    border: none !important;
    font-size: 1.1rem !important; /* تصغير الخط */
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    margin: 20px auto 0 !important; /* auto تضمن التوسط الأفقي */
    display: block !important;
    border-radius: 5px !important;
}
.site-sidebar {
    transition: transform 0.3s ease-in-out, right 0.3s ease-in-out !important;
}
/* الألوان المطلوبة */
:root {
    --primary: #647FBC;
    --light: #91ADC8;
    --dark: #2c3e50;
    --bg: #fdfdfd;
    --white: #ffffff;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg);
    margin: 0;
    color: var(--dark);
    line-height: 1.8;
}

/* الهيدر الفخم */
.hero-section1 {
    background: linear-gradient(135deg, var(--primary), var(--light));
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.header-content1 h1 { font-size: 2.5rem; margin: 0; }
.header-content1 h2 { font-size: 1.5rem; opacity: 0.9; margin: 5px 0; }

/* حاوية التايم لاين */
.timeline-container {
    max-width: 900px;
    margin: -50px auto 50px;
    padding: 20px;
    position: relative;
}

/* الخط الواصل بين الدوائر */
.timeline-container::before {
    content: '';
    position: absolute;
    right: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--light);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-right: 80px;
}

/* الدائرة المرقمة */
.timeline-dot {
    position: absolute;
    right: 30px;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 0 8px rgba(100, 127, 188, 0.1);
    z-index: 2;
}

/* محتوى كل خطوة */
.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(145, 173, 200, 0.15);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.4rem;
    border-bottom: 2px solid var(--light);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* قوائم النقاط */
.custom-list {
    list-style: none;
    padding: 0;
}
.custom-list li::before {
    content: '✦';
    color: var(--light);
    margin-left: 10px;
}

/* صناديق الفئات */
.categories-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.cat-box {
    background: var(--bg);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px dashed var(--light);
}

/* الجدول */
.table-container {
    overflow-x: auto;
    margin-top: 15px;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
th {
    background: var(--primary);
    color: white;
    padding: 10px;
    text-align: right;
}
td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* وسام الجائزة */
.award-badge {
    background: #fff9e6;
    color: #d4a017;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 10px;
    border: 1px solid #ffeeba;
}

/* للموبايل */
@media (max-width: 600px) {
    .timeline-container::before { right: 20px; }
    .timeline-dot { right: 0; }
    .timeline-item { padding-right: 50px; }
    .header-content1 h1 { font-size: 1.8rem; }
}
/* حركة الدوران الدائرية للعنوان */
@keyframes circularMovement {
    0% {
        transform: rotate(0deg) translate(15px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translate(15px) rotate(-360deg);
    }
}

.header-content1 h1 {
    display: inline-block; /* ضروري لتفعيل الحركة */
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 10px 20px rgba(0,0,0,0.2);
    
    /* تفعيل الحركة الدائرية */
    animation: circularMovement 8s linear infinite;
}

/* العنوان الفرعي بضل ثابت عشان التوازن البصري */
.header-content1 h2 {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-top: 10px;
    color: #ffffff;
}
.fixed-mini-logo {
    position: absolute;
    top: 80px;
    right: 50px;
    z-index: 10;
}

.fixed-mini-logo img {
    width: 180px; /* حجم الكمبيوتر */
    height: auto;
    transition: 0.3s;
}

.fixed-mini-logo img:hover {
    opacity: 1;
    transform: scale(1.05); 
}

/* تعديل التليفون ليكون واضح ومناسب */
@media (max-width: 768px) {
    .fixed-mini-logo {
        right: 10px; /* قربناه من الحافة شوي عشان نكسب مساحة */
        top: 60px;
    }
    .fixed-mini-logo img {
        width: 110px; /* كبرناه من 50 لـ 110 عشان يصير "واضح" مش "نتفة" */
        opacity: 1;
    }
}
#otherInputContainer {
    width: 100%;
    clear: both; 
    display: none; /* هذا هو السطر المطلوب لإخفاء الحقل عند بداية تشغيل الصفحة */
    transition: all 0.3s ease; /* اختيار اختياري لجعل الظهور يبدو ناعماً */
}

#otherInputContainer input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
/* الحاوية الرئيسية للمسارات */
.tracks-container {
    display: grid;
    /* إنشاء عمودين متساويين */
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; /* المسافة بين الكروت */
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* تنسيق الكرت الواحد */
.track-box {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.track-box:hover {
    transform: translateY(-10px);
}

.track-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* --- السر هنا: جعل الكرت الثالث يتوسط الأعمدة --- */
.track-box:nth-child(3) {
    grid-column: 1 / span 2; /* يمتد على العمودين */
    justify-self: center;    /* يتوسط العرض */
    width: 50%;             /* يكون بنفس عرض الكروت التي فوقه */
}

/* تنسيق الشاشات الصغيرة (الجوال) */
@media (max-width: 768px) {
    .tracks-container {
        grid-template-columns: 1fr; /* عمود واحد فقط */
    }
    
    .track-box:nth-child(3) {
        grid-column: span 1;
        width: 100%;
    }
}
.phone-number-fix {
    display: inline-block;
    direction: ltr !important;
    unicode-bidi: isolate;
    
    /* الإضافات الجديدة لضبط الحجم */
    font-size: inherit;      /* يجعل الحجم نفس حجم النص المحيط به تماماً */
    font-weight: inherit;    /* يجعل ثخن الخط متناسقاً مع ما قبله */
    line-height: normal;     /* لضمان عدم وجود مسافات غريبة من الأعلى أو الأسفل */
    color: inherit;          /* ليأخذ نفس اللون الأزرق الفاتح الجميل في الـ Footer */
}
.stat-card.green:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #28a745;
}


/* الحاوية الرئيسية (نظام الاستعلام) */
.container {
    background: var(--white);
    width: 90%;
    max-width: 500px; /* تصغير العرض قليلاً ليكون أركز */
    margin: 60px auto; /* توسيط الحاوية مع مسافة علوية وسفلية */
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(100, 127, 188, 0.15);
    border-top: 8px solid var(--primary);
    animation: fadeIn 0.8s ease-in-out;
}

h2 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

/* تنسيق المدخلات */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input[type="text"], input[type="file"] {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--secondary);
    border-radius: 12px;
    font-size: 15px;
    box-sizing: border-box; /* لضمان عدم خروج الإدخال عن الحدود */
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(100, 127, 188, 0.2);
}

/* الأزرار */
button {
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-search {
    background-color: var(--primary);
    color: white;
    margin-top: 10px;
}

.btn-search:hover {
    background-color: #4e659e;
    transform: translateY(-2px);
}

.btn-admin {
    background-color: var(--secondary);
    color: white;
    margin-top: 15px;
}

.btn-admin:hover {
    filter: brightness(0.9);
}

/* تنسيق كرت النتيجة - مخفي افتراضياً */
.result-card {
    margin-top: 30px;
    padding: 20px;
    background: #f9fbff;
    border: 1px solid var(--secondary);
    border-radius: 15px;
    text-align: center;
    display: none; /* يضمن عدم ظهور القسم عند تحميل الصفحة */
    animation: slideDown 0.5s ease-out; /* تأثير حركي عند الظهور */
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.score-display {
    font-size: 40px;
    color: var(--primary);
    font-weight: 800;
    margin: 10px 0;
}

/* تأثير دخول للصفحة */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* تعديلات الموبايل */
@media (max-width: 600px) {
    .container {
        padding: 25px;
        margin: 30px auto;
    }
    h2 { font-size: 1.3rem; }
    .score-display { font-size: 32px; }
}