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

  body {
    min-height: 100vh;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: var(--navy-mid);
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

:root {
	--gold: #C9A84C;
	--gold-light: #E8C97A;
	--navy: #0A1628;
	--navy-mid: #132040;
	--white: #ffffff;
	--pattern: url("../img/pattern.png");
}
  
  

.content {
    background: white;
    padding: 60px 20px;
    text-align: center;
}




   

  /* ==================== MEDIA ==================== */
  @media (max-width: 1024px) {

  }

  @media (max-width: 768px) {

 
  }
/* ==================== END MEDIA ==================== */
/* Petites corrections projet découpé */






.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-time-ticker {
  width: 100%;
  background: #0b1f3a;
  color: #f4c542;
  overflow: hidden;
  white-space: nowrap;
  height: 42px;
  display: flex;
  align-items: center;
  direction: rtl;
  border-top: 1px solid rgba(244, 197, 66, 0.25);
  border-bottom: 1px solid rgba(244, 197, 66, 0.25);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 45px;
  padding-inline-start: 100%;
  animation: tickerMove 28s linear infinite;
  font-size: 0.95rem;
  font-weight: 600;
}

.ticker-track span {
  display: inline-block;
}

.ticker-track b {
  color: #ffffff;
  font-weight: 700;
}

.home-time-ticker{
  position: relative;
  overflow: hidden;

  margin-top: 72px;

  height: 46px;

  display:flex;
  align-items:center;

  background:
    linear-gradient(
      120deg,
      #081626,
      #0d2744,
      #12365c,
      #0d2744,
      #081626
    );

  background-size: 300% 300%;

  animation: tickerBg 12s ease infinite;

  color:#f7d774;

  border-top:1px solid rgba(247,215,116,.25);
  border-bottom:1px solid rgba(247,215,116,.18);

  box-shadow:
    0 2px 12px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.04);

  z-index:5;
}

/*
.home-time-ticker {
  margin-top: 72px; 
  background: #0b1f3a;
  color: #f4c542;
  height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 5;
}
*/
.ticker-country img{
  width:21px;
  height:15px;
  object-fit:cover;
  border-radius:1px;
}

/*
.home-time-ticker {
  background: red !important;
  color: white !important;
  height: 50px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  position: relative;
}
*/
@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

.academy-title{

  font-family:'Cairo', sans-serif;

  font-size:clamp(2.2rem, 5vw, 4.8rem);

  font-weight:900;

  line-height:1.45;

  text-align:center;

  margin-top:24px;

  padding:0 16px;

  letter-spacing:.5px;

  position:relative;

  z-index:2;

  /* GOLD */

  background:linear-gradient(
    180deg,
    #fff9dc 0%,
    #f8e8a0 22%,
    #e5c45a 45%,
    #cfa03a 68%,
    #fff1b8 100%
  );

  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;

  /* DEPTH */

  text-shadow:
    0 1px 0 rgba(255,255,255,.25),
    0 2px 2px rgba(0,0,0,.28),
    0 4px 10px rgba(0,0,0,.22),
    0 0 14px rgba(255,215,100,.12);

}

.hero-title-img{

  width:min(92vw, 760px);

  height:auto;

  display:block;

  margin:24px auto 0;

  filter:
    drop-shadow(0 4px 10px rgba(0,0,0,.35));

}

/* DECORATION UNDER TEXT */

.academy-title::after{

  content:"";

  position:absolute;

  left:50%;
  transform:translateX(-50%);

  bottom:-22px;

  width:320px;
  height:4px;

  border-radius:999px;

  background:
    radial-gradient(
      circle,
      #fff6c9 0%,
      #f7cf58 25%,
      #c98a16 65%,
      transparent 100%
    );

  box-shadow:
    0 0 12px rgba(255,210,90,.8),
    0 0 30px rgba(255,210,90,.35);

}

@media (max-width: 700px) {
  .home-time-ticker {
    height: 38px;
  }

  .ticker-track {
    font-size: 0.85rem;
    gap: 30px;
    animation-duration: 22s;
  }

  .hero-title-img{
    width:95vw;
    margin-top:18px;
  }
}

/* ================= ADMIN USERS ================= */

.admin-page {
  min-height: calc(100vh - 72px);
  padding: 120px 20px 60px;
  background: #122144;
  direction: rtl;
}

.admin-card {
  width: 96%;
  max-width: 1450px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.admin-header h1 {
  margin: 0 0 6px;
  font-size: 30px;
  color: #122144;
}

.admin-header p {
  margin: 0;
  color: #667085;
  font-size: 15px;
}

.admin-back {
  background: #d6a84f;
  color: #122144;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1150px;
  overflow: hidden;
}

.admin-table thead {
  background: #122144;
}

.admin-table th {
  color: #ffffff;
  padding: 14px 12px;
  font-weight: 700;
  text-align: right;
  border: none;
}

.admin-table td {
  padding: 14px 12px;
  color: #1f2937;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

.role-badge {
  display: inline-flex;
  min-width: 100px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 10px;
  background: #f3ead8;
  color: #7a5517;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
}

.edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #122144;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.edit-btn:hover {
  background: #d6a84f;
  color: #122144;
}

@media (max-width: 700px) {
  .admin-page {
    padding: 100px 12px 40px;
  }

  .admin-card {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-header h1 {
    font-size: 24px;
  }
}

/* ================= ADMIN DASHBOARD ================= */

.admin-dashboard-page {
  min-height: calc(100vh - 72px);
  padding: 120px 20px 70px;
  background: #122144;
  direction: rtl;
  gap: 100px !important;
}

.admin-dashboard-card {
  max-width: 1050px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 42px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.admin-dashboard-header {
  text-align: right;
  margin-bottom: 34px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 26px;
}

.admin-dashboard-kicker {
  display: inline-flex;
  background: #f3ead8;
  color: #7a5517;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.admin-dashboard-header h1 {
  margin: 0 0 10px;
  color: #122144;
  font-size: 34px;
  font-weight: 900;
}

.admin-dashboard-header p {
  margin: 0;
  color: #667085;
  font-size: 16px;
  line-height: 1.8;
}

.admin-dashboard-actions {
  display: grid;
  margin-bottom: 20px !important;
  grid-template-columns: 1fr;
  gap: 18px;
}

.admin-dashboard-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-decoration: none;
  transition: 0.2s ease;
  margin-bottom: 20px !important;
}

.admin-dashboard-link:hover {
  background: #f3ead8;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.admin-dashboard-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #122144;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.admin-dashboard-link h2 {
  margin: 0 0 6px;
  color: #122144;
  font-size: 20px;
  font-weight: 800;
}

.admin-dashboard-link p {
  margin: 0;
  color: #667085;
  font-size: 14px;
}

.admin-dashboard-arrow {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #122144;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 700px) {
  .admin-dashboard-page {
    padding: 100px 12px 45px;
  }

  .admin-dashboard-card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .admin-dashboard-header h1 {
    font-size: 26px;
  }

  .admin-dashboard-link {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

/* ================= EDIT USER PAGE ================= */

.edit-user-page {
  min-height: calc(100vh - 72px);
  padding: 120px 20px 70px;
  background: #122144;
  direction: rtl;
}

.edit-user-card {
  max-width: 950px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 34px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.edit-user-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.edit-user-header span {
  display: inline-block;
  margin-bottom: 8px;
  background: #f3ead8;
  color: #7a5517;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.edit-user-header h1 {
  margin: 0 0 8px;
  color: #122144;
  font-size: 30px;
  font-weight: 900;
}

.edit-user-header p {
  margin: 0;
  color: #667085;
  font-size: 15px;
}

.edit-user-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #122144;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.edit-user-back:hover {
  background: #d6a84f;
  color: #122144;
}

.edit-user-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  color: #122144;
  font-size: 14px;
  font-weight: 800;
}

.form-group input {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: #122144;
  background: #ffffff;
  outline: none;
}

.form-group input:focus {
  border-color: #d6a84f;
  box-shadow: 0 0 0 3px rgba(214, 168, 79, 0.18);
}

.roles-section {
  margin-top: 30px;
}

.roles-section h2 {
  margin: 0 0 16px;
  color: #122144;
  font-size: 22px;
  font-weight: 900;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.role-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.role-option:hover {
  background: #f3ead8;
}

.role-option input {
  width: 18px;
  height: 18px;
  accent-color: #122144;
  flex-shrink: 0;
}

.role-option span {
  color: #122144;
  font-weight: 800;
}

.role-option small {
  display: block;
  color: #667085;
  font-size: 12px;
  margin-top: 3px;
}

.edit-user-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.save-user-btn,
.cancel-user-btn {
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.save-user-btn {
  background: #122144;
  color: #ffffff;
}

.save-user-btn:hover {
  background: #d6a84f;
  color: #122144;
}

.cancel-user-btn {
  background: #f3ead8;
  color: #7a5517;
}

.cancel-user-btn:hover {
  background: #eadbbf;
}

.admin-alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 700;
}

.admin-alert-error {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 700px) {
  .edit-user-page {
    padding: 100px 12px 45px;
  }

  .edit-user-card {
    padding: 22px 16px;
    border-radius: 14px;
  }

  .edit-user-header {
    flex-direction: column;
  }

  .edit-user-header h1 {
    font-size: 25px;
  }

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

  .edit-user-actions {
    flex-direction: column;
  }

  .save-user-btn,
  .cancel-user-btn {
    width: 100%;
    text-align: center;
  }
}

.phone-cell {
  text-align: center;
}

.phone-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  white-space: nowrap;
  text-align: left;
}

.admin-table th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  white-space: nowrap;
}

.admin-table th.sortable::after {
  content: " ⇅";
  font-size: 12px;
  opacity: 0.55;
  margin-inline-start: 6px;
}

.admin-table th.sortable.asc::after {
  content: " ↑";
  opacity: 1;
}

.admin-table th.sortable.desc::after {
  content: " ↓";
  opacity: 1;
}

.admin-table th.sortable:hover {
  background: #1a2c57;
}

.filter-phone-text {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  text-align: left;
  white-space: nowrap;
}

/* ===== EXCEL STYLE FILTER ===== */

.admin-table th.excel-filter {
  position: relative;
  padding-right: 34px;
  padding-left: 12px;
  cursor: default;
  white-space: nowrap;
}

.admin-table th.excel-filter .th-title {
  display: inline-block;
}

.excel-filter-btn {
  position: absolute;
  right: 8px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.excel-filter-btn:hover,
.admin-table th.filter-active .excel-filter-btn {
  background: #d6a84f;
  color: #122144;
  border-color: #d6a84f;
}

.excel-menu {
  position: fixed;
  z-index: 99999;
  width: 270px;
  background: #ffffff;
  border: 1px solid #cfd4dc;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  padding: 10px;
  direction: rtl;
  display: none;
}

.excel-menu.open {
  display: block;
}

.excel-menu button {
  font-family: inherit;
}

.excel-sort-btn,
.excel-clear-btn {
  width: 100%;
  border: none;
  background: transparent;
  color: #122144;
  padding: 8px 10px;
  text-align: right;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.excel-sort-btn:hover,
.excel-clear-btn:hover {
  background: #f3ead8;
}

.excel-search {
  width: 100%;
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
}

.excel-values {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px;
  background: #ffffff;
}

.excel-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  font-size: 14px;
  cursor: pointer;
  color: #122144;
}

.excel-check:hover {
  background: #f8fafc;
}

.excel-check input {
  width: 15px;
  height: 15px;
  accent-color: #122144;
}

.excel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.excel-ok,
.excel-cancel {
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.excel-ok {
  background: #122144;
  color: #ffffff;
}

.excel-cancel {
  background: #f3ead8;
  color: #7a5517;
}

.form-group input[readonly] {
  background: #f3f4f6;
  color: #667085;
  cursor: not-allowed;
}

.active-cell {
  text-align: center;
}

.active-cell input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #122144;
  cursor: pointer;
}

.admin-access-page {
    background: #f7f3ea;
    min-height: calc(100vh - 72px);
    padding: 40px 20px;
}

.admin-access-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-access-header {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-access-header h1 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 28px;
}

.admin-access-header p {
    margin: 0;
    color: #475569;
    line-height: 1.8;
}

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: 700;
}

.alert.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.access-table-wrap {
    background: #ffffff;
    border-radius: 18px;
    overflow-x: auto;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.access-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.access-table th,
.access-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    vertical-align: middle;
}

.access-table th {
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
}

.access-table td {
    color: #0f172a;
}

.access-table select {
    width: 130px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-family: inherit;
    cursor: pointer;
}

.save-btn {
    background: #f4c542;
    color: #111827;
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}

.save-btn:hover {
    background: #eab308;
}

.owner-badge {
    display: inline-block;
    margin-right: 8px;
    background: #0f172a;
    color: #f4c542;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.locked {
    display: inline-block;
    color: #64748b;
    font-weight: 700;
}

.date-input-right {
    direction: ltr;
    text-align: right !important;
}

.date-input-right::placeholder {
    text-align: right;
}

.input-wrap input#dob.date-input-right {
    direction: ltr !important;
    text-align: right !important;
    padding-right: 18px !important;
    padding-left: 42px !important;
}

.input-wrap input#dob.date-input-right::placeholder {
    text-align: right !important;
}
