@import url('vendor/cairo-font/cairo.css');

:root {
  /* ── Brand colors (from logo.svg) ── */
  --brand-blue:        #0056b3;   /* primary blue   */
  --brand-blue-hover:  #004494;
  --brand-blue-light:  #e6f0ff;
  --brand-green:       #0fa27d;   /* accent green   */
  --brand-green-hover: #0c8568;
  --brand-green-light: #e6f7f3;
  --brand-navy:        #0e2752;   /* dark text/CTA  */

  /* Legacy aliases kept for backward compat */
  --primary-blue:       var(--brand-blue);
  --primary-blue-hover: var(--brand-blue-hover);
  --primary-blue-light: var(--brand-blue-light);
  --dark-navy:          var(--brand-navy);
  --teal-green:         var(--brand-green);
  --teal-green-hover:   var(--brand-green-hover);
  --teal-green-light:   var(--brand-green-light);
  --text-dark:          #1e293b;
  --text-muted:         #64748b;
  --bg-light:           #f8fafc;

  /* Easing curves */
  --ease-out:        cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo:   cubic-bezier(0.16, 1, 0.3,  1);
  --ease-out-quart:  cubic-bezier(0.25, 1, 0.5,  1);
  --ease-in-out:     cubic-bezier(0.77, 0, 0.175,1);

  --transition-base:    all 0.3s var(--ease-out);
  --card-shadow:        0 4px 24px rgba(14,39,82,0.04);
  --card-shadow-hover:  0 12px 32px rgba(14,39,82,0.08);
}

/* ── Bootstrap brand color overrides ────────────────────── */
.btn-primary {
  --bs-btn-bg:              #0056b3;
  --bs-btn-border-color:    #0056b3;
  --bs-btn-hover-bg:        #004494;
  --bs-btn-hover-border-color: #004494;
  --bs-btn-active-bg:       #003d84;
}
.btn-outline-primary {
  --bs-btn-color:           #0056b3;
  --bs-btn-border-color:    #0056b3;
  --bs-btn-hover-bg:        #0056b3;
  --bs-btn-hover-border-color: #0056b3;
  --bs-btn-active-bg:       #004494;
}
.btn-success {
  --bs-btn-bg:              #0fa27d;
  --bs-btn-border-color:    #0fa27d;
  --bs-btn-hover-bg:        #0c8568;
  --bs-btn-hover-border-color: #0c8568;
  --bs-btn-active-bg:       #096b53;
}
.btn-outline-success {
  --bs-btn-color:           #0fa27d;
  --bs-btn-border-color:    #0fa27d;
  --bs-btn-hover-bg:        #0fa27d;
}
.text-primary   { color: #0056b3 !important; }
.bg-primary     { background-color: #0056b3 !important; }
.border-primary { border-color: #0056b3 !important; }
.text-success   { color: #0fa27d !important; }
.bg-success     { background-color: #0fa27d !important; }
.badge.bg-success { background-color: #0fa27d !important; }
.bg-primary.bg-opacity-10 { background-color: rgba(0,86,179,.1) !important; }
.bg-success.bg-opacity-10 { background-color: rgba(15,162,125,.1) !important; }

html {
  overflow-x: hidden;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
  width: 100%;
  max-width: 100vw;
}

/* Typography adjustments */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--dark-navy);
}

/* Navbar Custom Styles */
.custom-navbar {
  background-color: transparent;
  padding: 1.25rem 0;
  transition: var(--transition-base);
}

.custom-navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 32px rgba(14, 39, 82, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-link {
  font-weight: 600;
  color: var(--dark-navy) !important;
  margin: 0 0.75rem;
  position: relative;
  font-size: 0.95rem;
  padding: 0.5rem 0 !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--primary-blue);
  border-radius: 4px;
  transition: var(--transition-base);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 25px;
}

.btn-login-outline {
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition-base);
}

.btn-login-outline:hover {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
}

.btn-signup-solid {
  background-color: var(--primary-blue);
  color: #white;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--primary-blue);
  transition: var(--transition-base);
}

.btn-signup-solid:hover {
  background-color: var(--primary-blue-hover);
  border-color: var(--primary-blue-hover);
  color: white;
}

/* ── Exams Page: minimal custom CSS (Bootstrap handles the rest) ── */

/* Card hover lift */
.exam-card-hover {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) and (pointer: fine) {
  .exam-card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10) !important;
  }
}

/* Stagger reveal animation */
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.exam-card-col {
  opacity: 0;
  animation: cardReveal 0.45s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: calc(var(--stagger, 0) * 50ms);
}
@media (prefers-reduced-motion: reduce) {
  .exam-card-col { opacity: 1; animation: none; }
}

/* Sidebar nav link active/hover state */
.exams-nav-link {
  color: #4b5563;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.exams-nav-link:hover {
  background: #f3f4f6;
  color: #111827;
}
.exams-nav-link.active {
  background: #f3f4f6;
  color: #111827;
  font-weight: 700;
}

/* Legacy compatibility */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

/* ===== Cart Icon (Navbar) ===== */
.btn-cart-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--dark-navy);
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  transition: var(--transition-base);
}
.btn-cart-icon:hover {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary-blue);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ===== User Dropdown ===== */
.btn-user-dropdown {
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-navy);
  transition: var(--transition-base);
  cursor: pointer;
}
.btn-user-dropdown:hover {
  background: var(--bg-light);
  border-color: var(--primary-blue);
}

/* ===== Add to Cart Button ===== */
.btn-add-cart {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  transition: var(--transition-base);
  width: 100%;
}
.btn-add-cart:hover {
  background: var(--primary-blue);
  color: white;
}
.btn-add-cart.in-cart {
  background: var(--teal-green-light);
  color: var(--teal-green);
  border-color: var(--teal-green);
}
.btn-add-cart.in-cart:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #dc2626;
}

/* ===== Auth Pages ===== */
.auth-wrapper {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 7rem;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(14, 39, 82, 0.06);
}

/* ===== Cart Page ===== */
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #f1f5f9;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Print Styles ===== */
.print-page .bottom-strip { display: none; }
@media print {
  .custom-navbar,
  .bottom-strip,
  .no-print,
  footer,
  .mobile-bottom-nav,
  .mobile-exam-cta,
  #mobile-bottom-nav,
  .btn {
    display: none !important;
  }
  body {
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
  }
  .print-receipt {
    box-shadow: none !important;
    border: none !important;
    padding: 1rem !important;
  }
  .print-receipt-wrapper {
    margin-top: 0 !important;
  }
  main {
    margin-top: 0 !important;
  }
}

/* ===== Order Status Badges ===== */
.status-pending    { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-completed  { background: #d1fae5; color: #065f46; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }

/* ===== Generic hover lift (used in my-orders, index) ===== */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) and (pointer: fine) {
  .hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(14, 39, 82, 0.09) !important;
  }
}

/* ===== Specialty card hover (index.php categories) ===== */
.specialty-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.2s;
  text-align: center;
}
@media (hover: hover) and (pointer: fine) {
  .specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 86, 179, 0.1) !important;
    border-color: var(--brand-blue) !important;
  }
}

/* ===== Mobile App Layout Overhauls ===== */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 64px; /* فقط ارتفاع شريط التنقل السفلي */
  }
  body.hide-bottom-nav-page {
    padding-bottom: 72px;
  }
  body.hide-bottom-nav-page #mobile-bottom-nav {
    display: none !important;
  }
  main {
    margin-top: 5rem !important;
  }
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  z-index: 1030;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  width: 20%;
  height: 100%;
  transition: color 0.15s ease;
}

.mobile-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-nav-item:active i {
  transform: scale(0.85);
}

.mobile-nav-item.active {
  color: var(--brand-blue);
}

.mobile-cart-badge {
  top: 4px;
  right: 25%;
  font-size: 0.6rem;
  padding: 0.25em 0.5em;
  line-height: 1;
}

/* Sticky Details Purchase Bar on Mobile */
.mobile-exam-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  padding: 0.8rem 1.2rem calc(0.8rem + env(safe-area-inset-bottom));
  z-index: 1040;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.05);
}

/* Scrollbar Hiding Utility */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Responsive Stat Borders */
@media (min-width: 992px) {
  .border-lg-end {
    border-left: 1px solid #e2e8f0 !important;
  }
}
@media (max-width: 991.98px) {
  .border-end-mobile {
    border-left: 1px solid #e2e8f0 !important;
  }
}

/* Responsive page wrapper spacings */
.page-main-container {
  margin-top: 7.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 991.98px) {
  .page-main-container {
    margin-top: 5rem !important;
    margin-bottom: 1rem !important;
  }
}

/* Auth Fullscreen on Mobile */
@media (max-width: 767.98px) {
  body.auth-page-body {
    background-color: #ffffff !important;
  }
  .auth-container-mobile {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .auth-container-mobile > .row {
    margin: 0 !important;
    min-height: 100dvh;
  }
  .auth-container-mobile .col-12 {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .auth-mobile-fullscreen {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff !important;
    padding: 2rem 1.5rem !important;
  }
  /* Adjust header spacing on auth pages */
  body.auth-page-body main.page-main-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* Premium Hero Section — Animated Gradient + Floating Blobs */
.hero-section {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 6rem;
  overflow: hidden;
  background: linear-gradient(-45deg, #f4f8ff, #ffffff, #e8f4ff, #f0f7ff);
  background-size: 400% 400%;
  animation: heroGradientShift 12s ease infinite;
}

@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating Blobs behind Hero */
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite alternate;
}

.hero-section::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 86, 179, 0.18) 0%, transparent 70%);
  top: -80px;
  right: -100px;
}

.hero-section::after {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(15, 162, 125, 0.15) 0%, transparent 70%);
  bottom: -60px;
  left: -80px;
  animation-delay: -4s;
}

@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.08); }
}

/* Ensure hero content stays above blobs */
.hero-section > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 5.5rem;
    padding-bottom: 3.5rem;
  }
  .hero-section img {
    max-width: 90%;
    height: auto;
  }
  .hero-section::before {
    width: 250px;
    height: 250px;
    top: -40px;
    right: -60px;
  }
  .hero-section::after {
    width: 200px;
    height: 200px;
    bottom: -30px;
    left: -40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section {
    animation: none;
    background: radial-gradient(circle at 10% 20%, #f4f8ff 0%, #fff 100%);
  }
  .hero-section::before,
  .hero-section::after {
    animation: none;
  }
}

/* Stepper glowing pulse ring */
.pulse-ring {
  box-shadow: 0 0 0 0 rgba(15, 162, 125, 0.4);
  animation: pulse-ring-anim 2s infinite;
}
@keyframes pulse-ring-anim {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 162, 125, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(15, 162, 125, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(15, 162, 125, 0);
  }
}

/* ── Mobile & Interaction Design Enhancements ── */

/* Floating Mobile Navbar Collapse Card */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(14, 39, 82, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 0.75rem;
    border: 1px solid #e2e8f0;
  }
  .navbar-nav {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .navbar-nav .nav-item {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }
  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }
  .navbar-nav .nav-link {
    padding: 0.8rem 0 !important;
    font-size: 1.05rem;
  }
  .navbar-nav .nav-link::after {
    display: none; /* Hide hover line indicator on mobile */
  }
  .navbar-collapse .d-flex {
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
  }
  /* Prevent any element from exceeding viewport width */
  .container,
  .row,
  section,
  header,
  main,
  footer {
    max-width: 100vw;
    overflow-x: hidden;
  }
  img {
    max-width: 100%;
    height: auto;
  }
}

/* 2x2 Stats Grid Borders on Mobile */
@media (max-width: 991.98px) {
  .stat-item-mobile-border-bottom {
    border-bottom: 1px solid #e2e8f0 !important;
  }
}

/* Emil Kowalski's Tactile Press States */
.btn,
.btn-login-outline,
.btn-signup-solid,
.btn-cart-icon,
.btn-user-dropdown,
.specialty-card,
.mobile-nav-item {
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), 
              box-shadow 160ms cubic-bezier(0.23, 1, 0.32, 1), 
              background-color 160ms ease, 
              border-color 160ms ease;
}

.btn:active,
.btn-login-outline:active,
.btn-signup-solid:active,
.btn-cart-icon:active,
.btn-user-dropdown:active,
.specialty-card:active {
  transform: scale(0.97) !important;
}

/* Value Highlights Card Custom Layouts */
.highlight-icon-box {
  width: 38px;
  height: 38px;
}
.highlight-title {
  font-size: 0.82rem;
}
.highlight-desc {
  font-size: 0.72rem;
}

@media (min-width: 768px) {
  .highlight-icon-box {
    width: 46px;
    height: 46px;
  }
  .highlight-title {
    font-size: 0.95rem;
  }
  .highlight-desc {
    font-size: 0.82rem;
  }
}

/* Hide caret arrow for user dropdown buttons to maintain modern minimal design */
.btn-user-dropdown::after {
  display: none !important;
}










/* ================================================================
   TOAST NOTIFICATIONS
================================================================ */
#toast-container {
  position: fixed;
  bottom: 88px; /* فوق شريط التنقل السفلي */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
@media (min-width: 992px) {
  #toast-container {
    bottom: 32px;
    left: auto;
    right: 24px;
    transform: none;
    align-items: flex-end;
  }
}
.exam3-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.23,1,0.32,1);
  max-width: 320px;
  white-space: nowrap;
}
.exam3-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.exam3-toast--success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.exam3-toast--danger  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.exam3-toast--warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.exam3-toast--info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.exam3-toast .bi { font-size: 1rem; flex-shrink: 0; }

/* ================================================================
   BACK-TO-TOP BUTTON
================================================================ */
#back-to-top {
  position: fixed;
  bottom: 88px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff !important;
  border: none;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(14,39,82,0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.23,1,0.32,1), visibility 0.25s;
  pointer-events: none;
  z-index: 9990;
  line-height: 1;
  text-decoration: none;
}
#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#back-to-top:hover {
  background: var(--brand-blue) !important;
  transform: translateY(-2px) scale(1.05);
  opacity: 1;
}
@media (min-width: 992px) {
  #back-to-top { bottom: 32px; left: 32px; }
  #toast-container { bottom: 32px; }
}

/* ================================================================
   SKELETON LOADING
================================================================ */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  height: 220px;
  border-radius: 16px;
}
.skeleton-title {
  height: 18px;
  width: 70%;
  margin-bottom: 10px;
}
.skeleton-text {
  height: 13px;
  width: 90%;
  margin-bottom: 8px;
}
.skeleton-text.short { width: 55%; }
.skeleton-btn {
  height: 36px;
  border-radius: 10px;
  width: 100%;
}

/* ================================================================
   FOOTER — يتلصق بأسفل الصفحة بدون مساحات فارغة
================================================================ */
footer { margin-top: auto !important; }
@media (max-width: 991.98px) {
  footer { margin-bottom: 0 !important; padding-bottom: 0 !important; }
}

/* ================================================================
   PASSWORD STRENGTH BAR
================================================================ */
.pw-strength-wrap .progress {
  height: 4px;
  border-radius: 4px;
  background: #e2e8f0;
  overflow: visible;
}
.pw-strength-wrap .progress-bar {
  border-radius: 4px;
  transition: width .3s ease, background .3s ease;
}
.pw-strength-label {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ================================================================
   PAGINATION (exams.php)
================================================================ */
#exams-pagination {
  margin-top: 2rem;
}
#exams-pagination .page-link {
  color: var(--brand-navy);
  background: #fff;
  border: 1px solid #e2e8f0 !important;
  font-family: 'Cairo', sans-serif;
  font-size: .85rem;
  min-width: 38px;
  text-align: center;
  transition: all .15s ease;
}
#exams-pagination .page-link:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border-color: var(--brand-blue) !important;
}
#exams-pagination .page-item.active .page-link {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue) !important;
}
#exams-pagination .page-item.disabled .page-link {
  opacity: .4;
  pointer-events: none;
}

/* ================================================================
   ORDER PROGRESS BAR
================================================================ */
.order-progress {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 1.5rem 0;
}
.order-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
.order-progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(-50% + 18px);
  right: calc(50% + 18px);
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}
.order-progress-step.done:not(:last-child)::after,
.order-progress-step.current:not(:last-child)::after {
  background: var(--brand-blue);
}
.order-progress-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  position: relative;
  z-index: 1;
  transition: all .3s ease;
}
.order-progress-step.done .order-progress-icon {
  background: var(--brand-green);
  color: #fff;
}
.order-progress-step.current .order-progress-icon {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0,86,179,.15);
}
.order-progress-label {
  font-size: .68rem;
  color: #9ca3af;
  margin-top: 6px;
  text-align: center;
  font-weight: 600;
}
.order-progress-step.done .order-progress-label,
.order-progress-step.current .order-progress-label {
  color: var(--brand-navy);
}

/* ================================================================
   PROFILE PAGE
================================================================ */
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

/* ================================================================
   FORM FIELD VALID/INVALID STYLES
================================================================ */
.form-control.is-valid {
  border-color: #0fa27d !important;
  background-image: none;
}
.form-control.is-invalid {
  border-color: #ef4444 !important;
  background-image: none;
}
.field-error {
  display: none;
}

/* ================================================================
   FORGOT PASSWORD LINK in login.php
================================================================ */
.forgot-pw-link {
  font-size: .8rem;
  color: var(--text-muted);
  text-decoration: none;
}
.forgot-pw-link:hover { color: var(--brand-blue); }

/* ================================================================
   ADMIN MOBILE CARDS (responsive orders/users)
================================================================ */
.admin-mobile-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
.admin-mobile-card .label {
  font-size: .68rem;
  color: #9ca3af;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.admin-mobile-card .value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--brand-navy);
}
