* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background: linear-gradient(180deg, #081224 0%, #0b1730 100%);
  position: relative;
  overflow-x: hidden;
}

/* الجلو الثابت في الخلفية لكل الموقع */
html::before,
html::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(95px);
  opacity: 0.18;
}

html::before {
  width: 420px;
  height: 420px;
  background: #2563eb;
  top: 12%;
  left: -80px;
}

html::after {
  width: 460px;
  height: 460px;
  background: #3b82f6;
  right: -110px;
  bottom: 10%;
}

body {
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-bottom: 70px;
  background: transparent;
  color: #f9fafb;
  direction: rtl;
  position: relative;
  overflow-x: hidden;
  z-index: 1;
}

/* ترانزيشن الصفحة */
.page-transition {
  position: fixed;
  inset: 0;
  background: #081224;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.page-transition.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-transition.show-now {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
  transition: none !important;
}

.transition-logo {
  width: 140px;
  max-width: 35vw;
  animation: logoPulse 0.9s ease-in-out infinite alternate;
}

@keyframes logoPulse {
  from {
    transform: scale(0.9);
    opacity: 0.85;
  }

  to {
    transform: scale(1.05);
    opacity: 1;
  }
}

header {
  background: rgba(30, 41, 59, 0.92);
  backdrop-filter: blur(10px);
  padding: 18px 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.30);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.35s ease, opacity 0.35s ease;
  will-change: transform;
}

.logo-box {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 62px;
  width: auto;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 700;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
  color: #93c5fd;
  text-shadow: 0 0 10px rgba(147, 197, 253, 0.18);
}

/* =========================================
   تحسين الهيدر للموبايل - 3 أزرار في الصف
   وكل الأزرار بنفس المقاس
========================================= */

@media (max-width: 900px) {
  header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
  }

  .logo-box {
    order: 1;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-img {
    width: 46px;
    height: auto;
    display: block;
  }

  nav {
    order: 2;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    justify-content: center;
    align-items: stretch;
  }

  nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    min-height: 60px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    padding: 4px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    white-space: normal;
    word-break: keep-all;
    overflow: hidden;
    text-decoration: none;
  }
}

@media (max-width: 520px) {
  header {
    padding: 8px 10px;
    gap: 6px;
  }

  .logo-img {
    width: 40px;
  }

  nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  nav a {
    height: 56px;
    min-height: 56px;
    font-size: 10px;
    line-height: 1.3;
    padding: 4px 5px;
    border-radius: 7px;
  }
}

/* الصفحة الرئيسية */
.home-container {
  width: 88%;
  max-width: 1240px;
  margin: auto;
}

.home-hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: visible;
  background: transparent;
}

/* إلغاء الجلو القديم داخل الهيرو لأن الجلو أصبح ثابتًا */
.hero-glow {
  display: none;
}

.hero-panel {
  position: relative;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(255, 255, 255, 0.02)),
    rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 46px 34px;
  text-align: center;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-panel h1 {
  margin: 0 0 16px;
  font-size: 52px;
  line-height: 1.35;
  color: #ffffff;
  font-weight: 800;
}

.hero-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 21px;
  line-height: 2;
  color: #d1d5db;
}

.hero-buttons {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.main-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 15px 24px;
  border-radius: 14px;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.main-btn {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
}

.main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.34);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
}

.hero-stats {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-box {
  min-width: 180px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 16px 18px;
  position: relative;
}

.stat-link {
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.stat-link:hover {
  transform: translateY(-3px);
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(147, 197, 253, 0.15);
}

.stat-number {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #cbd5e1;
}

.stat-hover-text {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #bfdbfe;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease;
}

.stat-link:hover .stat-hover-text {
  max-height: 80px;
  opacity: 1;
  margin-top: 8px;
}

/* أقسام الصفحة */
.feature-section {
  padding: 0;
  margin: 0;
  background: transparent;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.section-title-wrap h2 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
}

.section-title-wrap p {
  margin: 0;
  font-size: 18px;
  color: #cbd5e1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  display: block;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.05), rgba(255, 255, 255, 0.01)),
    #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  border-color: rgba(147, 197, 253, 0.16);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.14);
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.4;
  color: #ffffff;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: #d1d5db;
}

/* عن السنتر */
.about-screen-section {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 70px;
  margin: 0;
  scroll-margin-top: 80px;
  overflow: hidden;
  background: transparent;
}

.about-screen-overlay {
  display: none;
}

.about-screen-container {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-screen-box {
  width: min(100%, 980px);
  margin: 0 auto;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(30, 41, 59, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 30px;
  padding: 50px 38px;
  text-align: center;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.about-screen-box h2 {
  margin: 0 0 20px;
  font-size: 46px;
  line-height: 1.4;
  font-weight: 800;
  color: #ffffff;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.12),
    0 0 18px rgba(147, 197, 253, 0.10);
}

.about-screen-box p {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 2;
  color: #d1d5db;
}

.about-screen-box p:last-child {
  margin-bottom: 0;
}

/* عناصر الصفحات الأخرى */
.hero,
.page-header {
  padding: 55px 20px 25px;
}

.container {
  width: 80%;
  max-width: 900px;
  margin: auto;
  background: #1e293b;
  padding: 55px 35px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.35);
}

h1 {
  font-size: 52px;
  margin-bottom: 18px;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.4;
}

.container p {
  font-size: 22px;
  line-height: 1.9;
  color: #d1d5db;
  margin: 0;
}

.buttons {
  margin-top: 28px;
}

button {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 19px;
  font-weight: 700;
  font-family: inherit;
  margin: 8px;
  transition: 0.3s;
}

button:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.secondary {
  background-color: #374151;
}

#message {
  margin-top: 22px;
  font-weight: 700;
  color: #ffffff;
}

/* صفحة اختيار الكتالوج */
.catalog-choice-body {
  overflow: hidden;
}

.catalog-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-18px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.catalog-choice-body.show-catalog-header .catalog-topbar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.catalog-choice-page {
  min-height: 100vh;
  position: relative;
}

.catalog-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  min-height: 100vh;
}

.split-card:hover {
  transform: none;
}

.split-card::before {
  content: "";
  position: absolute;
  inset: 0;
  transition: transform 0.45s ease, filter 0.35s ease;
  z-index: 0;
  filter: grayscale(0%);
}

.split-card:hover::before {
  transform: scale(1.04);
}

.catalog-split:hover .split-card::before {
  filter: grayscale(100%);
}

.catalog-split:hover .split-card:hover::before {
  filter: grayscale(0%);
}

.split-right::before {
  background:
    linear-gradient(rgba(8, 18, 36, 0.72), rgba(8, 18, 36, 0.84)),
    url("catalog-secondary-bg.jpg"),
    linear-gradient(135deg, #1d4ed8, #0f172a);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.split-left::before {
  background:
    linear-gradient(rgba(8, 18, 36, 0.72), rgba(8, 18, 36, 0.84)),
    url("catalog-prep-bg.jpg"),
    linear-gradient(135deg, #0f172a, #2563eb);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.split-content {
  position: relative;
  z-index: 1;
  width: 80%;
  max-width: 520px;
  text-align: center;
  color: #ffffff;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.catalog-split:hover .split-card .split-content {
  opacity: 0.72;
}

.catalog-split:hover .split-card:hover .split-content {
  opacity: 1;
  transform: scale(1.02);
}

.split-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 15px;
  font-weight: 700;
}

.split-content h1 {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.4;
  color: #ffffff;
  text-shadow: none;
  transition: text-shadow 0.35s ease, transform 0.35s ease;
}

.split-card:hover .split-content h1 {
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.45),
    0 0 18px rgba(255, 255, 255, 0.28),
    0 0 30px rgba(255, 255, 255, 0.16);
  transform: scale(1.02);
}

.split-content p {
  margin: 0;
  font-size: 20px;
  line-height: 1.9;
  color: #e5e7eb;
}

/* نافذة القرار بعد 10 ثواني */
.catalog-action-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1100;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.catalog-action-wrap.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.catalog-action-box {
  width: min(92%, 560px);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
}

.catalog-action-box h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
}

.catalog-action-box p {
  margin: 0;
  font-size: 17px;
  line-height: 1.9;
  color: #d1d5db;
}

.catalog-action-buttons {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.back-home-btn,
.continue-catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 15px 22px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.back-home-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.back-home-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
}

.continue-catalog-btn {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.26);
}

.continue-catalog-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.30);
}

/* كتالوج المدرسين */
.teachers-grid {
  width: 88%;
  max-width: 1300px;
  margin: 35px auto 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 24px;
}

.teacher-card {
  position: relative;
  height: 430px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.28);
  transform: scale(1);
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
  background: #1e293b;
}

.teacher-card:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
}

.teacher-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.teacher-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(8, 18, 36, 0.96) 15%,
      rgba(8, 18, 36, 0.6) 45%,
      rgba(8, 18, 36, 0.15) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.subject-badge {
  display: inline-block;
  width: fit-content;
  background: rgba(37, 99, 235, 0.9);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.teacher-overlay h2 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.5;
  color: #ffffff;
  font-weight: 800;
  text-shadow: none;
  transition: text-shadow 0.35s ease, transform 0.35s ease;
}

.teacher-card:hover .teacher-overlay h2 {
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.45),
    0 0 18px rgba(255, 255, 255, 0.28),
    0 0 30px rgba(255, 255, 255, 0.16);
  transform: scale(1.02);
}

.teacher-bio {
  margin: 0;
  color: #e5e7eb;
  font-size: 16px;
  line-height: 1.9;
}

.hidden-teacher {
  display: none;
}

.visible {
  display: block;
}

.last-center-card {
  grid-column: 2 / 3;
}

.more-wrapper {
  text-align: center;
  margin: 10px 0 70px;
}

.more-btn {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  padding: 14px 34px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: 0.3s;
}

.more-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* الفوتر الثابت */
.site-footer {
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 1400;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 18px;
  text-align: center;
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.18);
}

.site-footer p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #d1d5db;
}

.bassem-link {
  color: #93c5fd;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.bassem-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(147, 197, 253, 0.35);
}

/* ترانزيشن باسم لاشين */
.bassem-transition {
  position: fixed;
  inset: 0;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.bassem-transition.show {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.bassem-transition-logo {
  width: min(440px, 78vw);
  max-width: 90vw;
  height: auto;
  object-fit: contain;
  animation: bassemPulse 0.7s ease-in-out infinite alternate;
}

@keyframes bassemPulse {
  from {
    transform: scale(0.98);
    opacity: 0.92;
  }

  to {
    transform: scale(1.02);
    opacity: 1;
  }
}

/* الموبايل */
@media (max-width: 1200px) {
  html::before {
    width: 320px;
    height: 320px;
    left: -90px;
  }

  html::after {
    width: 340px;
    height: 340px;
    right: -100px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 1100px) {
  .teachers-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

  .split-content h1 {
    font-size: 34px;
  }

  .last-center-card {
    grid-column: auto;
  }

  .hero-panel h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 19px;
  }

  .about-screen-box h2 {
    font-size: 38px;
  }

  .about-screen-box p {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  html::before {
    width: 240px;
    height: 240px;
    left: -70px;
    top: 18%;
  }

  html::after {
    width: 260px;
    height: 260px;
    right: -80px;
    bottom: 14%;
  }

  header {
    padding: 16px 20px;
    gap: 15px;
  }

  nav {
    gap: 16px;
  }

  nav a {
    font-size: 16px;
  }

  .logo-img {
    height: 50px;
  }

  .hero-panel {
    padding: 34px 22px;
  }

  .hero-panel h1 {
    font-size: 32px;
  }

  .hero-text {
    font-size: 17px;
  }

  .main-btn,
  .ghost-btn {
    width: 100%;
    max-width: 320px;
    min-width: unset;
  }

  .hero-stats {
    gap: 12px;
  }

  .stat-box {
    width: 100%;
    max-width: 320px;
    min-width: unset;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card h3 {
    font-size: 24px;
  }

  .about-screen-section {
    min-height: calc(100vh - 70px);
    padding: 0 0 70px;
  }

  .about-screen-container {
    min-height: calc(100vh - 70px);
  }

  .about-screen-box {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .about-screen-box h2 {
    font-size: 30px;
  }

  .about-screen-box p {
    font-size: 16px;
  }

  h1 {
    font-size: 36px;
  }

  .container p {
    font-size: 18px;
  }

  .teachers-grid {
    grid-template-columns: 1fr;
  }

  .teacher-card {
    height: 420px;
  }

  .catalog-split {
    grid-template-columns: 1fr;
  }

  .split-card {
    min-height: 50vh;
  }

  .catalog-choice-page {
    min-height: auto;
  }

  .catalog-choice-body {
    overflow: auto;
  }

  .catalog-topbar {
    position: sticky;
  }

  .split-content h1 {
    font-size: 30px;
  }

  .split-content p {
    font-size: 17px;
  }

  .back-home-btn,
  .continue-catalog-btn {
    width: 100%;
    min-width: unset;
  }

  .last-center-card {
    grid-column: auto;
  }

  .site-footer p {
    font-size: 13px;
  }

  .bassem-transition-logo {
    width: min(320px, 82vw);
  }
}

/* =========================================
   الهيدر النهائي:
   - ثابت فعليًا على الديسكتوب
   - متحرك على الموبايل
========================================= */

/* ديسكتوب */
@media (min-width: 901px) {
  header {
    position: fixed !important;
    top: 0 !important;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    transform: translateY(0) !important;
    opacity: 1 !important;
    transition: none !important;
  }

  header.mobile-header-hidden {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }

  body {
    padding-top: 120px;
  }
}

/* موبايل */
@media (max-width: 900px) {
  body {
    padding-top: 0;
  }

  header {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999;
    transition: transform 0.35s ease, opacity 0.35s ease !important;
    will-change: transform;
  }

  header.mobile-header-hidden {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
  }
}

/* =========================================
   إصلاح صفحة اختيار الكتالوج
   - الصور تملأ الصفحة
   - الهيدر يظهر فوقها
   - بدون فراغ أعلى الصفحة على الديسكتوب والموبايل
========================================= */

.catalog-choice-body {
  margin: 0;
  padding-top: 0 !important;
  overflow-x: hidden;
}

/* أي هيدر داخل صفحة الكتالوج لا يحجز مساحة */
.catalog-choice-body header,
.catalog-choice-body .catalog-topbar {
  position: fixed !important;
  top: 0 !important;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-18px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

/* عند إظهار الهيدر */
.catalog-choice-body.show-catalog-header header,
.catalog-choice-body.show-catalog-header .catalog-topbar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* الصفحة تبدأ من أول الشاشة */
.catalog-choice-body .catalog-choice-page {
  min-height: 100vh;
  padding-top: 0 !important;
  margin-top: 0 !important;
  position: relative;
}

/* تقسيم الديسكتوب */
.catalog-choice-body .catalog-split {
  min-height: 100vh;
  height: 100vh;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.catalog-choice-body .split-card {
  min-height: 100vh;
  height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* موبايل */
@media (max-width: 900px) {
  .catalog-choice-body {
    padding-top: 0 !important;
    overflow-y: auto;
  }

  /* مهم جدًا: يظل Fixed وليس Sticky */
  .catalog-choice-body header,
  .catalog-choice-body .catalog-topbar {
    position: fixed !important;
    top: 0 !important;
  }

  .catalog-choice-body .catalog-choice-page {
    min-height: auto;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .catalog-choice-body .catalog-split {
    min-height: auto;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
  }

  .catalog-choice-body .split-card {
    min-height: 50vh;
    height: 50vh;
    margin: 0;
  }
}

@media (max-width: 520px) {
  .catalog-choice-body .split-card {
    min-height: 50vh;
    height: 50vh;
  }
}

/* تواصل معنا */
.contact-section {
  padding: 0 0 70px;
  margin: 0;
  scroll-margin-top: 80px;
  background: transparent;
}

.contact-box {
  width: min(100%, 980px);
  margin: 0 auto;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(30, 41, 59, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 30px;
  padding: 50px 38px;
  text-align: center;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.contact-box h2 {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.4;
  font-weight: 800;
  color: #ffffff;
}

.contact-intro {
  margin: 0 0 28px;
  font-size: 19px;
  line-height: 1.9;
  color: #d1d5db;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.contact-card {
  display: block;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 22px;
  padding: 24px 18px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(147, 197, 253, 0.16);
}

.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.14);
  font-size: 28px;
}

.contact-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.contact-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #d1d5db;
}

.center-info-box {
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 26px 22px;
}

.center-info-box h3 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}

.center-info-box p {
  margin: 0;
  font-size: 18px;
  line-height: 2;
  color: #dbeafe;
}

.contact-map-btn {
  margin: 18px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.26);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-map-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.30);
}

@media (max-width: 900px) {
  .contact-box {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .contact-box h2 {
    font-size: 30px;
  }

  .contact-intro {
    font-size: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card h3 {
    font-size: 22px;
  }

  .contact-card p,
  .center-info-box p {
    font-size: 16px;
  }

  .center-info-box h3 {
    font-size: 24px;
  }

  .contact-map-btn {
    width: 100%;
  }
}


/* =========================================
   توحيد مقاس الهيدر على كل صفحات الديسكتوب
   - نفس الارتفاع تقريبًا في كل الصفحات
   - منع تمدد الهيدر بسبب اختلاف عدد الروابط
========================================= */
@media (min-width: 901px) {

  header,
  .catalog-topbar {
    padding: 12px 20px;
  }

  .logo-img {
    height: 52px;
  }

  nav {
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
    padding: 8px 10px;
  }

  body {
    padding-top: 104px;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {

  header,
  .catalog-topbar {
    padding: 10px 14px;
  }

  .logo-img {
    height: 48px;
  }

  nav {
    gap: 8px;
  }

  nav a {
    font-size: 13px;
    padding: 7px 9px;
  }

  body {
    padding-top: 98px;
  }
}

/* ==============================
   صفحات الحجز والاستعلام (منقول من الصفحات)
============================== */

/* booking.html */
.booking-choice-page {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 80px;
}

.booking-choice-wrap {
  width: min(100%, 1000px);
  margin: auto;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 36px 28px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  text-align: center;
}

.booking-choice-wrap h1 {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.4;
  font-weight: 800;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.08),
    0 0 20px rgba(147, 197, 253, 0.08);
}

.booking-choice-wrap p {
  margin: 0 auto 30px;
  max-width: 760px;
  font-size: 19px;
  line-height: 1.9;
  color: #d1d5db;
}

.booking-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.booking-option-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.booking-option-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.booking-option-card h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 800;
  color: #ffffff;
}

.booking-option-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.9;
  color: #cbd5e1;
}

.booking-option-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 0 24px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.booking-option-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: rgba(59, 130, 246, 0.45);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.center-address-box {
  display: none;
  margin-top: 24px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.20),
    0 0 24px rgba(59, 130, 246, 0.08);
  animation: fadeInUp 0.35s ease;

  text-align: center;
}

.center-address-box.show {
  display: block;
}

.center-address-box h3 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
}

.center-address-box p {
  margin: 0 auto;
  max-width: 900px;
  font-size: 20px;
  line-height: 2;
  font-weight: 700;
  color: #dbeafe;
  text-align: center;
}

.map-link-btn {
  margin: 18px auto 0;
  display: table;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  color: #facc15;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.map-link-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .booking-choice-page {
    min-height: calc(100vh - 80px);
    padding: 24px 0 70px;
  }

  .booking-choice-wrap {
    padding: 24px 16px;
    border-radius: 22px;
  }

  .booking-choice-wrap h1 {
    font-size: 32px;
  }

  .booking-choice-wrap p {
    font-size: 17px;
  }

  .booking-options {
    grid-template-columns: 1fr;
  }

  .booking-option-card {
    min-height: auto;
    padding: 24px 18px;
  }

  .booking-option-card h2 {
    font-size: 24px;
  }

  .booking-option-card p {
    font-size: 16px;
  }

  .center-address-box h3 {
    font-size: 22px;
  }

  .center-address-box p {
    font-size: 17px;
    line-height: 1.9;
  }
}

/* online-booking.html */
.booking-hero {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 30px;
}

.booking-hero-content {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.booking-hero-content h1 {
  margin: 0 0 22px;
  font-size: 64px;
  line-height: 1.3;
  font-weight: 800;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.10),
    0 0 24px rgba(147, 197, 253, 0.10);
  text-align: center;
}

.booking-hero-content p {
  margin: 0 auto;
  max-width: 1100px;
  font-size: 21px;
  line-height: 1.9;
  color: #d1d5db;
  white-space: nowrap;
  text-align: center;
}

.scroll-arrow-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #93c5fd;
  text-decoration: none;
  line-height: 1;
  animation: arrowFloat 1.1s ease-in-out infinite alternate;
  text-shadow: 0 0 14px rgba(147, 197, 253, 0.22);
  cursor: pointer;
  user-select: none;
}

@keyframes arrowFloat {
  from {
    transform: translateY(0);
    opacity: 0.8;
  }

  to {
    transform: translateY(10px);
    opacity: 1;
  }
}

.booking-form-section {
  padding: 30px 0 80px;
  scroll-margin-top: 100px;
}

.booking-form-wrap {
  width: min(100%, 980px);
  margin: auto;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 34px 30px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.booking-form-wrap h2 {
  margin: 0 0 24px;
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field-group.full-width {
  grid-column: 1 / -1;
}

.field-group label {
  font-size: 17px;
  font-weight: 700;
  color: #e5e7eb;
}

.field-group input,
.field-group select {
  width: 100%;
  height: 56px;
  border: none;
  outline: none;
  border-radius: 14px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px;
  background: #f8fafc;
  color: #111827;
}

.field-group input::placeholder {
  color: #6b7280;
}

.branch-wrap,
.subject-builder-wrap,
.subjects-list-wrap {
  display: none;
}

.branch-wrap.show,
.subject-builder-wrap.show,
.subjects-list-wrap.show {
  display: flex;
}

.subject-actions {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  width: 100%;
  flex-wrap: wrap;
}

.subject-actions .field-group {
  flex: 1;
  min-width: 240px;
}

.add-subject-btn,
.confirm-subject-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-height: 56px;
  border: none;
  border-radius: 14px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.add-subject-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.confirm-subject-btn {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.20);
}

.add-subject-btn:hover,
.confirm-subject-btn:hover {
  transform: translateY(-2px);
}

.chosen-subjects-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chosen-subject-item {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px 16px;
  color: #e5e7eb;
  font-size: 16px;
  line-height: 1.8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chosen-subject-item strong {
  color: #ffffff;
}

.chosen-subject-text {
  flex: 1;
  min-width: 0;
}

.delete-subject-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: none;
  border-radius: 10px;
  background: #dc2626;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease;
}

.delete-subject-btn:hover {
  background: #b91c1c;
  transform: scale(1.06);
}

.submit-wrap {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.submit-btn {
  width: 100%;
  height: 58px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.34);
}

.success-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
}

.success-popup-overlay.show {
  display: flex;
}

.success-popup-box {
  width: min(100%, 680px);
  background:
    linear-gradient(135deg, rgba(22, 101, 52, 0.18), rgba(255, 255, 255, 0.03)),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 42px 28px;
  text-align: center;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(34, 197, 94, 0.16);
  animation: popupFadeIn 0.45s ease;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-check {
  width: 120px;
  height: 120px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.28), rgba(34, 197, 94, 0.12));
  border: 2px solid rgba(34, 197, 94, 0.45);
  color: #22c55e;
  font-size: 64px;
  font-weight: 800;
  box-shadow:
    0 0 18px rgba(34, 197, 94, 0.55),
    0 0 40px rgba(34, 197, 94, 0.28),
    inset 0 0 18px rgba(34, 197, 94, 0.18);
  animation: checkGlow 1.2s ease-in-out infinite alternate;
}

@keyframes checkGlow {
  from {
    transform: scale(1);
    box-shadow:
      0 0 18px rgba(34, 197, 94, 0.55),
      0 0 40px rgba(34, 197, 94, 0.28),
      inset 0 0 18px rgba(34, 197, 94, 0.18);
  }

  to {
    transform: scale(1.04);
    box-shadow:
      0 0 26px rgba(34, 197, 94, 0.75),
      0 0 60px rgba(34, 197, 94, 0.4),
      inset 0 0 24px rgba(34, 197, 94, 0.24);
  }
}

.success-title {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.8;
  font-weight: 800;
  color: #ffffff;
}

.success-warning {
  margin: 0;
  font-size: 24px;
  line-height: 1.8;
  font-weight: 800;
  color: #ef4444;
}

.success-booking-id {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 800;
  color: #60a5fa;
}

.success-countdown {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 700;
  color: #d1d5db;
}

@media (max-width: 900px) {
  .booking-hero {
    min-height: calc(100vh - 80px);
    padding: 30px 0 20px;
  }

  .booking-hero-content h1 {
    font-size: 40px;
  }

  .booking-hero-content p {
    font-size: 18px;
    line-height: 1.9;
    white-space: normal;
    max-width: 100%;
  }

  .scroll-arrow {
    font-size: 34px;
  }

  .booking-form-wrap {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .booking-form-wrap h2 {
    font-size: 26px;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }

  .field-group input,
  .field-group select {
    height: 52px;
  }

  .add-subject-btn,
  .confirm-subject-btn {
    height: 52px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .submit-btn {
    height: 54px;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 19px;
  }

  .subject-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .chosen-subject-item {
    align-items: flex-start;
  }

  .delete-subject-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 18px;
  }

  .success-popup-box {
    padding: 30px 18px;
    border-radius: 22px;
  }

  .success-check {
    width: 96px;
    height: 96px;
    font-size: 52px;
  }

  .success-title {
    font-size: 23px;
  }

  .success-warning {
    font-size: 18px;
  }

  .success-booking-id {
    font-size: 18px;
  }

  .success-countdown {
    font-size: 15px;
  }
}

/* lookup-booking.html */
.lookup-page {
  min-height: calc(100vh - 90px);
  padding: 42px 16px 90px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.lookup-wrap {
  width: min(100%, 980px);
  margin: 0 auto;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(30, 41, 59, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 30px;
  padding: 34px 28px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.lookup-header {
  text-align: center;
  margin-bottom: 26px;
}

.lookup-header h1 {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.4;
  font-weight: 800;
  color: #ffffff;
}

.lookup-header p {
  margin: 0 auto;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.9;
  color: #d1d5db;
}

.lookup-box {
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
}

.lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.lookup-input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  border-radius: 16px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lookup-input:focus {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.lookup-submit-btn {
  min-width: 170px;
  min-height: 58px;
  border: none;
  border-radius: 16px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.lookup-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.lookup-submit-btn:disabled {
  opacity: 0.8;
  cursor: wait;
  transform: none;
}

.lookup-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.quick-edit-btn {
  min-width: 190px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.quick-edit-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.lookup-message {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

.lookup-message.show {
  display: block;
}

.lookup-message.error {
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.18);
  color: #fecaca;
}

.lookup-message.success {
  background: rgba(6, 78, 59, 0.35);
  border: 1px solid rgba(52, 211, 153, 0.15);
  color: #bbf7d0;
}

.lookup-result {
  display: none;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 24px;
}

.lookup-result.show {
  display: block;
}

.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.result-top h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(147, 197, 253, 0.18);
}

.status-badge[data-status="new"] {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(147, 197, 253, 0.18);
}

.status-badge[data-status="pending_review"] {
  background: rgba(217, 119, 6, 0.22);
  border-color: rgba(253, 186, 116, 0.18);
}

.status-badge[data-status="contacted"] {
  background: rgba(8, 145, 178, 0.22);
  border-color: rgba(103, 232, 249, 0.18);
}

.status-badge[data-status="confirmed"] {
  background: rgba(6, 78, 59, 0.28);
  border-color: rgba(52, 211, 153, 0.18);
}

.status-badge[data-status="updated"] {
  background: rgba(109, 40, 217, 0.22);
  border-color: rgba(196, 181, 253, 0.18);
}

.status-badge[data-status="completed"] {
  background: rgba(22, 101, 52, 0.28);
  border-color: rgba(134, 239, 172, 0.18);
}

.status-badge[data-status="closed"],
.status-badge[data-status="cancelled"] {
  background: rgba(127, 29, 29, 0.35);
  border-color: rgba(248, 113, 113, 0.18);
}

.booking-code-row {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #dbeafe;
  font-size: 17px;
  font-weight: 800;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.detail-card {
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 16px;
}

.detail-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #93c5fd;
}

.detail-value {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 700;
  color: #f8fafc;
  word-break: break-word;
}

.result-note {
  margin-top: 4px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 700;
}

.result-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.result-actions .secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  height: 58px;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.result-actions .secondary-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #14532d, #166534);
  border-color: rgba(74, 222, 128, 0.22);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(20, 83, 45, 0.28);
}

.result-actions .secondary-btn:disabled,
.result-actions .secondary-btn[disabled] {
  opacity: 0.85;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


.edit-box {
  display: none;
  margin-top: 18px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.edit-box.show {
  display: block;
}

.edit-box h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.edit-box p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.9;
  color: #cbd5e1;
  font-weight: 700;
}

.edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.edit-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edit-field.full {
  grid-column: 1 / -1;
}

.edit-label {
  font-size: 14px;
  font-weight: 800;
  color: #93c5fd;
}

.edit-input,
.edit-select {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.95);
  color: #ffffff;
  border-radius: 14px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

.edit-input::placeholder {
  color: #94a3b8;
}

.edit-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.save-edit-btn {
  min-width: 180px;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.cancel-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.edit-static-box,
.edit-inline-note {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.95);
  color: #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 700;
}

.edit-inline-note {
  background: rgba(127, 29, 29, 0.22);
  border-color: rgba(248, 113, 113, 0.18);
  color: #fecaca;
}

.edit-subject-builder {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edit-subject-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.edit-subject-add-btn {
  min-width: 150px;
  min-height: 54px;
  border: none;
  border-radius: 14px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.edit-subject-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.edit-selected-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edit-selected-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edit-selected-item {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 700;
}

@media (max-width: 900px) {
  .lookup-page {
    padding: 24px 12px 86px;
  }

  .lookup-wrap {
    padding: 24px 16px;
    border-radius: 24px;
  }

  .lookup-header h1 {
    font-size: 30px;
  }

  .lookup-header p {
    font-size: 16px;
  }

  .lookup-form {
    grid-template-columns: 1fr;
  }

  .lookup-form-actions {
    width: 100%;
    flex-direction: column;
  }

  .lookup-submit-btn,
  .quick-edit-btn {
    width: 100%;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .result-actions .secondary-btn {
    width: 100%;
    min-width: 100%;
  }

  .details-grid,
  .edit-grid {
    grid-template-columns: 1fr;
  }

  .edit-subject-row {
    grid-template-columns: 1fr;
  }

  .edit-subject-add-btn {
    width: 100%;
  }

  .result-top h2 {
    font-size: 23px;
  }

  .detail-value,
  .booking-code-row {
    font-size: 15px;
  }
}

/* ==============================
   staff-dashboard.html (منقول من الصفحة)
============================== */

/* --- قسم تنسيقات الطباعة المخفية --- */
#printableReceipt {
  display: none;
}

@media print {
  body * {
    display: none !important;
  }

  #printableReceipt {
    display: block !important;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    padding: 20px;
    background: #fff;
  }

  #printableReceipt * {
    display: block !important;
  }

  .print-header {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
  }

  .print-logo {
    width: 100px;
    filter: grayscale(100%) brightness(0);
  }

  /* جعل اللوجو أسود */
  .print-title {
    font-size: 28px;
    font-weight: 800;
  }

  .print-contacts {
    text-align: center;
    margin: 10px 0 20px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }

  .print-row {
    display: flex !important;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
    font-size: 18px;
  }

  .print-label {
    font-weight: 800;
    width: 150px;
    color: #333;
  }

  .print-value {
    font-weight: 400;
    flex: 1;
  }

  @page {
    size: A4;
    margin: 20mm;
  }
}

/* --- باقي تنسيقات الصفحة كما هي --- */
.status-strip {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px;
}

.status-box {
  display: flex;
  align-items: center;
  padding: 5px 7px;
  border-radius: 50px;
  min-width: 90px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  box-shadow: 0px 0px 15px -8px rgb(9, 63, 134);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.status-box:hover {
  transform: scale(1.05);
}

.status-text {
  padding: 0px 10px;
}

.status-circle {
  width: 10px;
  aspect-ratio: 1/1;
  border-radius: 50%;
}

.staff-dashboard-page {
  min-height: calc(100vh - 180px);
  padding: 36px 0 70px;
}

.staff-dashboard-wrap {
  display: grid;
}

.staff-hero-card,
.staff-card {
  background: rgba(12, 18, 36, 0.82);
  border: 1px solid rgba(120, 180, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 0 35px rgba(0, 140, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
}

.staff-hero-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.staff-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 153, 255, 0.12);
  border: 1px solid rgba(0, 153, 255, 0.2);
  color: #9ed1ff;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
}

.staff-hero-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 30px;
  line-height: 1.45;
}

.staff-hero-text,
.staff-card p,
.staff-subtext {
  margin: 0;
  color: #d9e8ff;
  font-size: 15px;
  line-height: 1.9;
}

.staff-user-box,
.staff-note-box {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-note-box {
  margin-top: 14px;
  background: rgba(255, 190, 60, 0.08);
  border-color: rgba(255, 190, 60, 0.15);
  color: #ffe8a3;
  font-size: 14px;
}

.staff-user-row,
.detail-row,
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-user-row:last-child,
.detail-row:last-child,
.account-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.staff-user-label,
.detail-label,
.account-label {
  color: #9fb8d8;
  font-size: 14px;
  font-weight: 700;
}

.staff-user-value,
.detail-value,
.account-value {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.staff-actions,
.search-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.staff-btn,
.staff-btn-secondary,
.staff-btn-danger,
.staff-btn-small,
.staff-btn-success {
  appearance: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  width: 200px;
}

.staff-btn {
  background: linear-gradient(135deg, #0c7dff, #16b1ff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 132, 255, 0.22);
}

.staff-btn-secondary,
.staff-btn-small {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.staff-btn-success {
  background: linear-gradient(135deg, #0f9d58, #22c55e);
  color: #fff;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.2);
}

.staff-btn.no-print {
  background: linear-gradient(135deg, #098b4e, #3feb72);
  color: rgb(255, 255, 255);
}

.staff-btn-danger {
  background: rgba(255, 80, 80, 0.12);
  color: #ffd7d7;
  border: 1px solid rgba(255, 90, 90, 0.2);
}

.staff-btn-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 10px;
}

.staff-btn:hover,
.staff-btn-secondary:hover,
.staff-btn-danger:hover,
.staff-btn-small:hover,
.staff-btn-success:hover {
  transform: translateY(-2px);
}

.two-col-grid,
.three-col-grid {
  display: grid;
  gap: 18px;
}

.two-col-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.three-col-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
}

.field-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 27px;
  margin-top: 16px;
}

.staff-dashboard-page .staff-field,
.staff-dashboard-page .staff-select,
.staff-dashboard-page .staff-input {
  width: 274px;
  min-height: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  padding: 7px 16px;
  outline: none;
  box-sizing: border-box;
}

.staff-select option {
  color: #111;
}

.status-message {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.status-message.show {
  display: block;
}

.status-message.success {
  background: rgba(24, 138, 88, 0.12);
  border: 1px solid rgba(35, 168, 108, 0.2);
  color: #bcf3d6;
}

.status-message.error {
  background: rgba(185, 45, 45, 0.12);
  border: 1px solid rgba(220, 70, 70, 0.2);
  color: #ffd5d5;
}

.search-results-list,
.recent-list,
.accounts-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.result-item,
.recent-item,
.account-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.recent-item {
  padding: 12px 14px;
}

.result-item.active {
  border-color: rgba(0, 153, 255, 0.3);
  box-shadow: 0 0 0 1px rgba(0, 153, 255, 0.12) inset;
}

.result-head,
.recent-head,
.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.result-title,
.recent-title,
.account-title {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #9ed1ff;
  font-size: 12px;
  font-weight: 800;
}

.muted-line {
  color: #bfd2ea;
  font-size: 14px;
  line-height: 1.8;
}

.recent-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recent-meta {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.recent-actions {
  flex-shrink: 0;
}


.audit-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.audit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 20, 0.72);
  backdrop-filter: blur(4px);
}

.audit-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: rgba(12, 18, 36, 0.96);
  border: 1px solid rgba(120, 180, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 0 35px rgba(0, 140, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
}

.audit-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.audit-modal-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 24px;
}

.audit-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.audit-close-btn {
  width: auto;
}

.audit-modal-list {
  margin-top: 16px;
}

.owner-toggle-wrap {
  margin-top: 16px;
}

.booking-detail-card {
  display: none;
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.booking-detail-card.show {
  display: block;
}

.detail-grid {
  display: grid;
  gap: 12px;
}

.owner-only-note {
  display: none;
  margin-top: 14px;
  color: #9fb8d8;
  font-size: 14px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1024px) {

  .staff-hero-card,
  .two-col-grid,
  .three-col-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .staff-dashboard-page {
    padding: 24px 0 55px;
  }

  .staff-hero-title {
    font-size: 24px;
  }

  .audit-modal {
    padding: 14px;
  }

  .audit-modal-dialog {
    padding: 18px;
    max-height: 85vh;
  }

  .audit-modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .staff-btn,
  .staff-btn-secondary,
  .staff-btn-danger,
  .staff-btn-small,
  .staff-btn-success {
    width: 100%;
  }

  .search-actions,
  .inline-actions,
  .staff-actions {
    flex-direction: column;
  }

  .recent-body {
    flex-direction: column;
    align-items: stretch;
  }

  .recent-actions .staff-btn-small {
    width: 100%;
  }
}

/* ===== staff-login page styles ===== */
.staff-login-page {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 16px 90px;
  position: relative;
  z-index: 1;
}

.staff-login-wrap {
  width: min(100%, 560px);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 34px 28px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.staff-login-head {
  text-align: center;
  margin-bottom: 24px;
}

.staff-login-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(147, 197, 253, 0.16);
  color: #bfdbfe;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

.staff-login-head h1 {
  margin: 0 0 10px;
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
}

.staff-login-head p {
  margin: 0;
  font-size: 17px;
  line-height: 1.9;
  color: #d1d5db;
}

.staff-login-form {
  display: grid;
  gap: 18px;
}

.staff-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.staff-field label {
  font-size: 16px;
  font-weight: 700;
  color: #e5e7eb;
}

.staff-field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.72);
  color: #f9fafb;
  border-radius: 16px;
  padding: 15px 16px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.staff-field input:focus {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.staff-login-btn {
  border: none;
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.staff-login-btn:hover {
  transform: translateY(-2px);
  opacity: 0.98;
}

.staff-login-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.staff-login-message {
  display: none;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.staff-login-message.show {
  display: block;
}

.staff-login-message.error {
  background: rgba(127, 29, 29, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.18);
  color: #fecaca;
}

.staff-login-message.success {
  background: rgba(20, 83, 45, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.18);
  color: #bbf7d0;
}

.staff-login-note {
  margin-top: 18px;
  text-align: center;
  color: #93c5fd;
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .staff-login-page {
    min-height: calc(100vh - 120px);
    padding: 26px 12px 88px;
  }

  .staff-login-wrap {
    padding: 24px 16px;
    border-radius: 24px;
  }

  .staff-login-head h1 {
    font-size: 28px;
  }

  .staff-login-head p {
    font-size: 15px;
  }

  .staff-field input,
  .staff-login-btn {
    font-size: 15px;
  }
}

/* teachers pages search bar */
.teachers-grid-page .search-container {
  margin-top: 25px;
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
  position: relative;
}

.teachers-grid-page #teacherSearchInput {
  width: 100%;
  padding: 16px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-family: 'Cairo', sans-serif;
  font-size: 17px;
  font-weight: 500;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.teachers-grid-page #teacherSearchInput:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 12px 24px rgba(0, 0, 0, 0.3);
  background: rgba(15, 23, 42, 0.95);
}

.teachers-grid-page #teacherSearchInput::placeholder {
  color: #94a3b8;
}

@media (max-width: 900px) {
  .teachers-grid-page #teacherSearchInput {
    font-size: 15px;
    padding: 14px 18px;
  }
}

/* ===== audit log action badges ===== */
.audit-action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  border: 1px solid transparent;
}

.audit-action-booking {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(147, 197, 253, 0.18);
  color: #bfdbfe;
}

.audit-action-owner {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.2);
  color: #fde68a;
}

.audit-action-generic {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

.audit-booking-item {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.18));
  border-color: rgba(16, 185, 129, 0.38);
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.16);
}

.audit-booking-item .recent-title,
.audit-booking-item .muted-line,
.audit-booking-item .mini-tag {
  color: #ecfdf5;
}

.audit-booking-item .mini-tag {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
}


/* ==============================
   schedule.html - restored styles
============================== */
.schedule-page {
  padding: 26px 0 80px;
}

.schedule-hero-box {
  width: min(100%, 1050px);
  margin: 0 auto 28px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 34px 28px;
  text-align: center;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.schedule-hero-box h1 {
  margin: 0 0 14px;
  font-size: 52px;
  line-height: 1.35;
  color: #ffffff;
  font-weight: 800;
}

.schedule-hero-box p {
  margin: 0 auto;
  max-width: 900px;
  font-size: 19px;
  line-height: 1.95;
  color: #d1d5db;
}

.schedule-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.schedule-card {
  width: min(100%, 1050px);
  margin: 0 auto;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 26px;
  padding: 28px 24px;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.schedule-card h2 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 34px;
  line-height: 1.45;
  font-weight: 800;
  color: #ffffff;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 20px;
}

.table-wrap::-webkit-scrollbar {
  height: 8px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.schedule-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.schedule-table thead th {
  padding: 14px 16px;
  background: rgba(37, 99, 235, 0.12);
  color: #dbeafe;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  border-top: 1px solid rgba(59, 130, 246, 0.22);
  border-bottom: 1px solid rgba(59, 130, 246, 0.18);
}

.schedule-table thead th:first-child {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.schedule-table thead th:last-child {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.schedule-table tbody tr {
  background: rgba(15, 23, 42, 0.62);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.schedule-table tbody tr:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.88);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.schedule-table tbody td {
  padding: 16px 18px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.schedule-table tbody td:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.schedule-table tbody td:last-child {
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.schedule-subject span,
.schedule-teacher span,
.schedule-time span,
.schedule-table tbody td>span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 12px;
}

.schedule-subject span {
  background: rgba(37, 99, 235, 0.14);
  color: #dbeafe;
}

.schedule-teacher span {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.schedule-time span {
  background: rgba(250, 204, 21, 0.10);
  color: #fde68a;
}

.schedule-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.9;
  color: #bfdbfe;
}

@media (max-width: 900px) {
  .schedule-page {
    padding: 18px 0 74px;
  }

  .schedule-hero-box {
    padding: 24px 16px;
    border-radius: 22px;
    margin-bottom: 18px;
  }

  .schedule-hero-box h1 {
    font-size: 34px;
  }

  .schedule-hero-box p {
    font-size: 16px;
    line-height: 1.85;
  }

  .schedule-card {
    padding: 20px 14px;
    border-radius: 22px;
  }

  .schedule-card h2 {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .table-wrap {
    overflow: visible;
  }

  .schedule-table,
  .schedule-table thead,
  .schedule-table tbody,
  .schedule-table th,
  .schedule-table td,
  .schedule-table tr {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .schedule-table {
    border-spacing: 0;
  }

  .schedule-table thead {
    display: none;
  }

  .schedule-table tbody tr {
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  }

  .schedule-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
    padding: 10px 12px;
    border: none !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.025);
    margin-bottom: 8px;
    font-size: 15px;
  }

  .schedule-table tbody td:last-child {
    margin-bottom: 0;
  }

  .schedule-table tbody td::before {
    content: attr(data-label);
    font-size: 13px;
    font-weight: 800;
    color: #93c5fd;
    flex: 0 0 auto;
  }

  .schedule-subject span,
  .schedule-teacher span,
  .schedule-time span,
  .schedule-table tbody td>span {
    min-height: auto;
    padding: 0;
    background: transparent;
    color: inherit;
    border-radius: 0;
    justify-content: flex-end;
    text-align: left;
  }

  .schedule-note {
    font-size: 14px;
  }
}

/* ==============================
   تنبيه Google Calendar - صفحة المواعيد
============================== */
.calendar-alert-overlay {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(8, 15, 30, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.calendar-alert-overlay.show {
  opacity: 1;
  visibility: visible;
}

.calendar-alert-overlay__content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  color: #f8fafc;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}


/* ==============================
   staff dashboard targeted fixes
   - without changing old parts
============================== */

/* أزرار حفظ الحالة + طباعة الاستمارة */
.staff-dashboard-page .booking-detail-card>.field-grid {
  gap: 14px;
  flex-wrap: wrap;
}

.staff-dashboard-page .booking-action-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex: 1 1 100%;
  width: 100%;
}

.staff-dashboard-page .booking-action-row .staff-btn,
.staff-dashboard-page .booking-action-row .staff-btn.no-print {
  width: auto !important;
  min-width: 0;
  flex: 1 1 0;
  white-space: nowrap;
}

/* صف أزرار الأونر */
.owner-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.owner-toggle-wrap .staff-btn-secondary,
.owner-toggle-wrap .owner-add-staff-btn {
  width: 200px;
  min-width: 200px;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.2;
}

.owner-add-staff-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  background: linear-gradient(135deg, #0b7a45, #159a55);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 154, 85, 0.18);
}

.owner-add-staff-btn:hover {
  transform: translateY(-2px);
}

/* نافذة إضافة مشرف جديد */
.owner-create-modal {
  position: fixed;
  inset: 0;
  z-index: 20010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.owner-create-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 20, 0.72);
  backdrop-filter: blur(4px);
}

.owner-create-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: rgba(12, 18, 36, 0.97);
  border: 1px solid rgba(120, 180, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 0 35px rgba(0, 140, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
}

.owner-create-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.owner-create-modal-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 24px;
}

.owner-create-modal-subtitle {
  margin: 0;
  color: #c7d7ea;
  font-size: 14px;
  line-height: 1.9;
}

.owner-create-close-btn,
.owner-create-submit-btn,
.owner-create-cancel-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.owner-create-close-btn,
.owner-create-submit-btn {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.owner-create-cancel-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.owner-create-close-btn:hover,
.owner-create-submit-btn:hover,
.owner-create-cancel-btn:hover {
  transform: translateY(-2px);
}

.owner-create-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.owner-create-form .staff-field {
  width: 100% !important;
  min-height: auto !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: grid;
  gap: 8px;
}

.owner-create-form .staff-field label {
  color: #dbeafe;
  font-size: 14px;
  font-weight: 700;
}

.owner-create-form .staff-field input,
.owner-create-form .staff-field select {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  padding: 0 16px;
  outline: none;
  box-sizing: border-box;
}

.owner-create-form .staff-field input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.owner-create-form .staff-field select.owner-create-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #9ed1ff 50%),
    linear-gradient(135deg, #9ed1ff 50%, transparent 50%),
    rgba(255, 255, 255, 0.045);
  background-position:
    calc(18px) calc(50% - 3px),
    calc(10px) calc(50% - 3px),
    0 0;
  background-size:
    8px 8px,
    8px 8px,
    100% 100%;
  background-repeat: no-repeat;
  padding-left: 34px;
}

.owner-create-form .staff-field select option {
  color: #111;
}

.owner-create-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* الموبايل */
@media (max-width: 768px) {
  .staff-dashboard-page .booking-action-row {
    flex-direction: row;
  }

  .staff-dashboard-page .booking-action-row .staff-btn,
  .staff-dashboard-page .booking-action-row .staff-btn.no-print {
    width: auto !important;
  }

  .owner-toggle-wrap .staff-btn-secondary,
  .owner-toggle-wrap .owner-add-staff-btn {
    width: calc(50% - 6px);
    min-width: calc(50% - 6px);
    font-size: 13px;
  }

  .owner-create-modal {
    padding: 14px;
  }

  .owner-create-modal-dialog {
    padding: 18px;
    max-height: 88vh;
  }

  .owner-create-modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .owner-create-close-btn {
    width: 100%;
  }

  .owner-create-actions {
    flex-direction: column;
  }

  .owner-create-submit-btn,
  .owner-create-cancel-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .owner-toggle-wrap {
    flex-wrap: nowrap;
  }

  .owner-toggle-wrap .staff-btn-secondary,
  .owner-toggle-wrap .owner-add-staff-btn {
    width: calc(50% - 6px);
    min-width: calc(50% - 6px);
    font-size: 12px;
    padding: 0 10px;
  }
}

/* =========================
   LOOKUP OTP POPUP
========================= */

body.otp-popup-open {
  overflow: hidden;
}

.otp-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
}

.otp-popup-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.otp-popup-box {
  width: 100%;
  max-width: 460px;
  position: relative;
  background: linear-gradient(180deg, rgba(20, 26, 46, 0.97), rgba(10, 14, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 26px 22px 22px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(75, 132, 255, 0.14);
}

.otp-popup-close {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 38px;
  height: 38px;
  padding: unset !important;
  margin: unset !important;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 23px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.otp-popup-close:hover {
  transform: scale(1.06);
  background: rgba(200, 40, 40, 0.7);
}

.otp-popup-title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  text-align: center;
}

.otp-popup-text {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.8;
  text-align: center;
}

.otp-popup-input {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  text-align: center;
  letter-spacing: 3px;
  outline: none;
  padding: 0 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.otp-popup-input:focus {
  border-color: rgba(93, 157, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(93, 157, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.otp-popup-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: normal;
}

.otp-popup-message {
  display: none;
  margin-top: 12px;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: center;
}

.otp-popup-message.show {
  display: block;
}

.otp-popup-message.success {
  background: rgba(40, 167, 69, 0.12);
  color: #8ff0a4;
  border: 1px solid rgba(40, 167, 69, 0.22);
}

.otp-popup-message.error {
  background: rgba(220, 53, 69, 0.12);
  color: #ffb3bc;
  border: 1px solid rgba(220, 53, 69, 0.22);
}

.otp-popup-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.otp-popup-primary-btn,
.otp-popup-secondary-btn {
  flex: 1;
  min-height: 52px;
  border-radius: 16px;
  border: none;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.otp-popup-primary-btn {
  background: linear-gradient(135deg, #1d7cff, #4a9dff);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(29, 124, 255, 0.22);
}

.otp-popup-secondary-btn {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.otp-popup-primary-btn:hover,
.otp-popup-secondary-btn:hover {
  transform: translateY(-1px);
}

.otp-popup-primary-btn:disabled,
.otp-popup-secondary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 640px) {
  .otp-popup-box {
    max-width: 100%;
    padding: 24px 16px 18px;
    border-radius: 18px;
  }

  .otp-popup-title {
    font-size: 1.2rem;
  }

  .otp-popup-text {
    font-size: 0.92rem;
  }

  .otp-popup-actions {
    flex-direction: column;
  }

  .otp-popup-primary-btn,
  .otp-popup-secondary-btn {
    width: 100%;
  }
}

/* =========================
   OWNER LOYALTY CONTROLS
========================= */
.loyalty-owner-tools {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(251, 191, 36, 0.16);
}

.loyalty-owner-title {
  margin: 0 0 8px;
  color: #fff7d6;
  font-size: 20px;
  font-weight: 800;
}

.loyalty-owner-subtext {
  margin-bottom: 14px;
}

.loyalty-owner-grid {
  MARGIN-TOP: 13PX;
  display: grid;
  gap: 14px;
}

.loyalty-points-field {
  width: unset !important;
  padding: 13px 16px !important;
}

.loyalty-points-field input {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  padding: 0 16px;
  outline: none;
  box-sizing: border-box;
}

.loyalty-points-field input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.loyalty-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.loyalty-owner-actions .staff-btn-success,
.loyalty-owner-actions .staff-btn-secondary,
.loyalty-owner-actions .staff-btn-danger {
  flex: 1 1 220px;
  min-width: 220px;
}

@media (max-width: 768px) {
  .loyalty-owner-actions {
    flex-direction: column;
  }

  .loyalty-owner-actions .staff-btn-success,
  .loyalty-owner-actions .staff-btn-secondary,
  .loyalty-owner-actions .staff-btn-danger {
    width: 100%;
    min-width: 100%;
  }
}


/* =========================================
   (online-booking) Success Popup - Copy Booking ID
   Scoped styles to avoid affecting dashboard
========================================= */
.success-popup-overlay .success-popup-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.success-popup-overlay .success-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.success-popup-overlay .success-copy-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(147, 197, 253, 0.22);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.success-popup-overlay .success-copy-btn.disabled,
.success-popup-overlay .success-copy-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.success-popup-overlay .success-copy-status {
  font-size: 13px;
  font-weight: 800;
  color: #cbd5e1;
}

.success-popup-overlay .success-copy-status.is-ok {
  color: #86efac;
}

.success-popup-overlay .success-copy-status.is-error {
  color: #fca5a5;
}

.success-popup-overlay .success-copy-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: #cbd5e1;
}

/* ===============================
   PERFECT CENTER - ANNOUNCEMENTS (NEW BLOCK)
   مضاف جديد بالكامل ومعزول، ولا يغيّر أي شيء قديم.
=============================== */
.pc-ann-top-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  color: #dbeafe;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.pc-ann-top-trigger:hover {
  transform: translateY(-1px);
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.48);
}

.pc-ann-card.hidden {
  display: none;
}

.pc-ann-title {
  margin: 0 0 10px;
  color: #dbeafe;
  font-size: 28px;
  font-weight: 800;
}

.pc-ann-subtext {
  margin-bottom: 18px;
}

.pc-ann-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pc-ann-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-ann-label {
  color: #e5e7eb;
  font-size: 15px;
  font-weight: 700;
}

.pc-ann-file,
.pc-ann-input,
.pc-ann-textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
  color: #f8fafc;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.pc-ann-textarea {
  resize: vertical;
  min-height: 110px;
}

.pc-ann-hint {
  color: #93c5fd;
  font-size: 13px;
  line-height: 1.8;
}

.pc-ann-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pc-ann-btn {
  min-width: 160px;
}

.pc-ann-meta {
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pc-ann-meta-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.pc-ann-meta-row:last-child {
  margin-bottom: 0;
}

.pc-ann-meta-label {
  color: #93c5fd;
  font-weight: 700;
}

.pc-ann-meta-value {
  color: #f8fafc;
  font-weight: 600;
}

@media (max-width: 900px) {
  .pc-ann-grid {
    grid-template-columns: 1fr;
  }

  .pc-ann-top-trigger {
    width: 100%;
  }

  .pc-ann-btn {
    width: 100%;
    min-width: unset;
  }
}



/* ===============================
   PERFECT CENTER - PUBLIC ANNOUNCEMENT OVERLAY (NEW BLOCK)
   ملاحظة: هذا البلوك مُضاف جديد بالكامل ولا يغيّر أي شيء قديم.
=============================== */
.pc-pubann-overlay{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(2,6,23,0.70);
  backdrop-filter: blur(10px);
}

.pc-pubann-lock{
  overflow:hidden;
}

.pc-pubann-modal{
  width:min(96%, 740px);
  position:relative;
  border-radius:26px;
  padding:18px;
  background:
    linear-gradient(135deg, rgba(37,99,235,0.10), rgba(255,255,255,0.02)),
    rgba(15,23,42,0.92);
  border:1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.pc-pubann-close{
  position:absolute;
  top:14px;
  left:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color:#ffffff;
  font-family: inherit;
  font-weight:800;
  cursor:pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.pc-pubann-close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(147,197,253,0.22);
}

.pc-pubann-card{
  display:block;
  cursor:pointer;
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.08);
  background: rgba(15,23,42,0.55);
  outline:none;
}

.pc-pubann-card:focus{
  box-shadow: 0 0 0 3px rgba(59,130,246,0.35);
}

.pc-pubann-image-wrap{
  width:100%;
  background: rgba(0,0,0,0.2);
}

.pc-pubann-image{
  width:100%;
  height: 360px;
  object-fit: cover;
  display:block;
}

.pc-pubann-content{
  padding:18px 18px 16px;
  text-align:center;
}

.pc-pubann-title{
  margin:0 0 10px;
  font-size: 26px;
  font-weight: 900;
  color:#ffffff;
}

.pc-pubann-summary{
  margin:0;
  font-size: 16px;
  line-height: 1.9;
  color:#dbeafe;
}

.pc-pubann-hint{
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color:#93c5fd;
  opacity: 0.95;
}

.pc-pubann-timer{
  margin-top: 12px;
  text-align:center;
  font-size: 13px;
  font-weight: 800;
  color:#cbd5e1;
}

@media (max-width: 520px){
  .pc-pubann-modal{
    padding:14px;
    border-radius:22px;
  }
  .pc-pubann-image{
    height: 280px;
  }
  .pc-pubann-title{
    font-size: 22px;
  }
  .pc-pubann-close{
    top:12px;
    left:12px;
    padding:9px 14px;
  }
}



/* ===============================
   PERFECT CENTER - ANNOUNCEMENT DETAILS PAGE (NEW BLOCK)
   ملاحظة: هذا البلوك مُضاف جديد بالكامل ولا يغيّر أي شيء قديم.
=============================== */
.pc-annpage-wrap{
  padding: 50px 20px 90px;
}
.pc-annpage-container{
  width: 88%;
  max-width: 980px;
  margin: 0 auto;
}
.pc-annpage-card{
  background:
    linear-gradient(135deg, rgba(37,99,235,0.08), rgba(255,255,255,0.02)),
    rgba(30,41,59,0.94);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,0.30);
  text-align: center;
}
.pc-annpage-image-wrap{
  background: rgba(15,23,42,0.55);
}
.pc-annpage-image{
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.pc-annpage-title{
  margin: 22px 18px 10px;
  font-size: 40px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.4;
}
.pc-annpage-details{
  margin: 0 22px 18px;
  font-size: 18px;
  line-height: 2.0;
  color: #d1d5db;
  white-space: pre-wrap;
  text-align: right;
}
.pc-annpage-actions{
  padding: 0 22px 26px;
}
.pc-annpage-back{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 10px 26px rgba(37,99,235,0.26);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pc-annpage-back:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37,99,235,0.30);
}
.pc-annpage-note{
  padding: 0 22px 26px;
  font-size: 13px;
  font-weight: 800;
  color: #93c5fd;
  opacity: 0.9;
}
@media (max-width: 900px){
  .pc-annpage-title{ font-size: 30px; }
  .pc-annpage-details{ font-size: 16px; }
  .pc-annpage-image{ height: 300px; }
}

/* ===============================
   PERFECT CENTER - ANNOUNCEMENT PAGE REDESIGN (NEW BLOCK ONLY)
   ملاحظة: هذا البلوك مضاف جديد بالكامل ولا يغيّر أي ستايل قديم.
=============================== */
.pc-anny-page {
  padding: 46px 18px 96px;
}

.pc-anny-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.pc-anny-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.pc-anny-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(147, 197, 253, 0.14);
  color: #dbeafe;
  font-size: 14px;
  font-weight: 800;
}

.pc-anny-toplink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.pc-anny-hero {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(255, 255, 255, 0.02)),
    rgba(30, 41, 59, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 30px;
  padding: 34px 28px;
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.pc-anny-eyebrow {
  margin: 0 0 12px;
  color: #93c5fd;
  font-size: 15px;
  font-weight: 800;
}

.pc-anny-heading {
  margin: 0;
  font-size: 46px;
  line-height: 1.45;
  font-weight: 900;
  color: #ffffff;
}

.pc-anny-summary {
  margin: 14px 0 0;
  max-width: 880px;
  font-size: 20px;
  line-height: 1.95;
  color: #d1d5db;
}

.pc-anny-media-card {
  margin-top: 24px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  padding: 18px;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.24);
}

.pc-anny-media-frame {
  background: rgba(2, 6, 23, 0.42);
  border-radius: 22px;
  overflow: hidden;
}

.pc-anny-image {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  display: block;
}

.pc-anny-details-card {
  margin-top: 24px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  padding: 28px 26px 30px;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.24);
}

.pc-anny-details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.pc-anny-details-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.4;
  font-weight: 900;
  color: #ffffff;
}

.pc-anny-details-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 800;
}

.pc-anny-details-body {
  font-size: 19px;
  line-height: 2.05;
  color: #d1d5db;
  white-space: normal;
}

.pc-anny-bottom-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.pc-anny-main-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.26);
}

.pc-anny-empty-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 700;
  color: #93c5fd;
}

@media (max-width: 900px) {
  .pc-anny-page {
    padding: 28px 14px 90px;
  }

  .pc-anny-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pc-anny-toplink {
    width: 100%;
  }

  .pc-anny-hero,
  .pc-anny-details-card {
    border-radius: 24px;
    padding: 22px 18px;
  }

  .pc-anny-heading {
    font-size: 30px;
  }

  .pc-anny-summary,
  .pc-anny-details-body {
    font-size: 16px;
  }

  .pc-anny-details-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pc-anny-details-title {
    font-size: 24px;
  }

  .pc-anny-media-card {
    border-radius: 24px;
    padding: 12px;
  }

  .pc-anny-media-frame {
    border-radius: 18px;
  }
}


/* ===============================
   PERFECT CENTER - ANNOUNCEMENTS (DELETE BUTTON)
   مضاف جديد بالكامل ومعزول، ولا يغيّر أي شيء قديم.
=============================== */
.pc-ann-delete-btn{
  background: linear-gradient(135deg, #b80000, #ff1a1a) !important; /* Marlboro red */
  box-shadow: 0 10px 24px rgba(255, 26, 26, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.pc-ann-delete-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 26, 26, 0.22);
  opacity: 0.98;
}
