/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #2D5BFF;
  --primary-light: #4A7AFF;
  --primary-dark: #1A49CC;
  --secondary-color: #00C9B7;
  --accent-color: #FF6B8B;
  --dark-bg: #0A192F;
  --card-bg: #112240;
  --light-text: #E6F1FF;
  --gray-text: #8892B0;
  --border-color: #233554;
  --success-color: #00D68F;
  --warning-color: #FFAA00;
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Tajawal", "Cairo", system-ui, sans-serif;
  background: var(--dark-bg);
  color: var(--light-text);
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Design inspiré de l'art islamique et moderne */
.dashboard-page {
  position: relative;
  min-height: 100vh;
  background: 
    radial-gradient(circle at 0% 20%, rgba(45, 91, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 80%, rgba(0, 201, 183, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--dark-bg) 0%, #0A1429 100%);
}

/* Motifs géométriques décoratifs */
.dashboard-page::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(74, 122, 255, 0.03) 2px, transparent 2px),
    radial-gradient(circle at 90% 80%, rgba(0, 201, 183, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  opacity: 0.5;
}

.dashboard-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
}

/* Header élégant avec inspiration arabe */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  margin-bottom: 2.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, 
    rgba(17, 34, 64, 0.95) 0%,
    rgba(10, 25, 47, 0.98) 100%);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  box-shadow: 
    0 20px 60px rgba(10, 25, 47, 0.8),
    0 0 0 1px rgba(74, 122, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.dashboard-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45, 91, 255, 0.05));
  transform: skewX(-20deg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 
    0 10px 30px rgba(45, 91, 255, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.brand-logo::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text span {
  font-weight: 800;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--light-text), #B0C4FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.brand-text small {
  font-size: 0.8rem;
  color: var(--gray-text);
  margin-top: 2px;
}

/* User info avec style moderne */
.user-info-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: rgba(17, 34, 64, 0.6);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.user-info-header:hover {
  background: rgba(45, 91, 255, 0.1);
  border-color: rgba(45, 91, 255, 0.3);
}

.user-icon {
  font-size: 2.2rem;
  color: var(--primary-light);
  filter: drop-shadow(0 0 10px rgba(45, 91, 255, 0.3));
}

.user-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--light-text);
}

.user-email {
  font-size: 0.75rem;
  color: var(--gray-text);
}

/* Boutons avec style arabe moderne */
.btn-outline, .btn-primary {
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--light-text);
}

.btn-outline:hover {
  background: rgba(45, 91, 255, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(45, 91, 255, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border: none;
  box-shadow: 
    0 15px 35px rgba(45, 91, 255, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(45, 91, 255, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Stats cards avec design inspiré des motifs arabes */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--card-bg), #0d1a36);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 15px 35px rgba(10, 25, 47, 0.5);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 91, 255, 0.3);
  box-shadow: 
    0 20px 40px rgba(10, 25, 47, 0.7),
    0 0 30px rgba(45, 91, 255, 0.1);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0.7;
}

.stat-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(45, 91, 255, 0.1), rgba(0, 201, 183, 0.1));
  color: var(--primary-light);
  margin-bottom: 1rem;
  font-size: 1.8rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-text);
  font-weight: 500;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--light-text), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Grid principal */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  gap: 1.8rem;
}

/* Cards avec design élégant */
.card {
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--card-bg), #0d1a36);
  border: 1px solid var(--border-color);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(10, 25, 47, 0.6);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(45, 91, 255, 0.2);
  box-shadow: 
    0 25px 60px rgba(10, 25, 47, 0.8),
    0 0 0 1px rgba(45, 91, 255, 0.05) inset;
}

.card-header {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.card-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--light-text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.3px;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--gray-text);
}

/* Personal info avec style moderne */
.personal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(35, 53, 84, 0.5);
  transition: var(--transition);
}

.personal-row:hover {
  background: rgba(45, 91, 255, 0.03);
  padding-right: 0.5rem;
  border-radius: 8px;
}

.personal-row:last-child {
  border-bottom: none;
}

.personal-row .label {
  color: var(--gray-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.personal-row .value {
  font-weight: 600;
  color: var(--light-text);
  font-size: 0.95rem;
}

/* Courses list avec design moderne */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-item {
  background: linear-gradient(135deg, 
    rgba(17, 34, 64, 0.8) 0%,
    rgba(10, 25, 47, 0.9) 100%);
  border-radius: 14px;
  padding: 1.2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.course-item:hover {
  transform: translateX(-5px);
  border-color: var(--primary-color);
  box-shadow: 
    0 15px 35px rgba(45, 91, 255, 0.2),
    0 0 0 1px rgba(45, 91, 255, 0.1) inset;
}

.course-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.course-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.course-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--light-text);
}

.course-category {
  font-size: 0.8rem;
  color: var(--gray-text);
  background: rgba(35, 53, 84, 0.5);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
}

.course-meta {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge-success {
  background: rgba(0, 214, 143, 0.1);
  color: var(--success-color);
  border-color: rgba(0, 214, 143, 0.2);
}

.badge-warning {
  background: rgba(255, 170, 0, 0.1);
  color: var(--warning-color);
  border-color: rgba(255, 170, 0, 0.2);
}

/* Progress bar améliorée */
.course-progress {
  margin-top: 0.8rem;
}

.course-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-text);
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 10px;
  background: rgba(35, 53, 84, 0.5);
  overflow: hidden;
  position: relative;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent);
  animation: shimmer 2s infinite;
}

.progress-inner {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, 
    var(--primary-color), 
    var(--secondary-color),
    var(--accent-color));
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

/* Empty state stylé */
.empty-state {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, 
    rgba(17, 34, 64, 0.3) 0%,
    rgba(10, 25, 47, 0.4) 100%);
  border-radius: var(--radius);
  border: 2px dashed var(--border-color);
  color: var(--gray-text);
  margin-top: 1rem;
}

.empty-state .material-symbols-outlined {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Creator card spéciale */
.creator-card {
  background: linear-gradient(145deg, 
    rgba(17, 34, 64, 0.9) 0%,
    rgba(45, 91, 255, 0.05) 100%);
  border: 1px solid rgba(45, 91, 255, 0.2);
}

.creator-card .card-title {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.creator-card .card-text {
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.creator-status {
  padding: 0.8rem;
  background: rgba(0, 201, 183, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(0, 201, 183, 0.2);
  color: var(--secondary-color);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1rem;
}

/* Loading overlay élégant */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.loading-box {
  background: linear-gradient(135deg, var(--card-bg), #0d1a36);
  border-radius: var(--radius);
  padding: 3rem;
  border: 1px solid var(--border-color);
  box-shadow: 
    0 30px 60px rgba(10, 25, 47, 0.8),
    0 0 0 1px rgba(45, 91, 255, 0.1) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  min-width: 300px;
}

.spinner {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top: 3px solid var(--primary-color);
  border-right: 3px solid var(--secondary-color);
  animation: spin 1s linear infinite;
  position: relative;
}

.spinner::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top: 3px solid var(--accent-color);
  animation: spin 1.5s linear infinite reverse;
}

.loading-box p {
  color: var(--light-text);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Modal avec design moderne */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-box {
  background: linear-gradient(145deg, var(--card-bg), #0d1a36);
  padding: 2.5rem;
  width: 90%;
  max-width: 450px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: 
    0 30px 60px rgba(10, 25, 47, 0.9),
    0 0 0 1px rgba(45, 91, 255, 0.1) inset;
  animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-box h3 {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.modal-box h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.modal-box label {
  display: block;
  color: var(--gray-text);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.modal-box input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(17, 34, 64, 0.5);
  color: var(--light-text);
  font-family: "Tajawal", sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
}

.modal-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.2);
  background: rgba(17, 34, 64, 0.8);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.modal-actions button {
  flex: 1;
  padding: 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-danger {
  background: linear-gradient(135deg, #FF4757, #FF3742);
  border: none;
  color: white;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #FF3742, #FF1E36);
  transform: translateY(-2px);
}

/* Animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.fade-in {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Effet de stagger pour les cards */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .creator-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-shell {
    padding: 1rem 1rem 3rem;
  }
  
  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
  
  .modal-box {
    width: 95%;
    padding: 1.5rem;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .btn-outline,
  .btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  border: 2px solid var(--dark-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-light), var(--secondary-color));
}

/* =============== HOME BUTTON STYLES =============== */
.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  border: 2px solid rgba(0, 180, 216, 0.6);
  background: linear-gradient(135deg, 
    rgba(0, 120, 180, 0.15), 
    rgba(0, 180, 216, 0.1));
  color: var(--light-text);
  font-family: "Tajawal", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 5px 15px rgba(0, 120, 180, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.btn-home:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, 
    rgba(0, 180, 216, 0.25), 
    rgba(0, 216, 214, 0.15));
  border-color: rgba(0, 216, 214, 0.8);
  box-shadow: 
    0 10px 25px rgba(0, 180, 216, 0.3),
    0 0 15px rgba(0, 216, 214, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn-home:active {
  transform: translateY(0);
}

.btn-home .material-symbols-outlined {
  font-size: 1.3rem;
  color: #00D8D6;
  transition: var(--transition);
  filter: drop-shadow(0 0 5px rgba(0, 216, 214, 0.5));
}

.btn-home:hover .material-symbols-outlined {
  transform: scale(1.1);
  color: #4DFFFD;
  filter: drop-shadow(0 0 8px rgba(0, 216, 214, 0.8));
}

/* Effet de brillance au survol */
.btn-home::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.5s;
}

.btn-home:hover::before {
  left: 100%;
}

/* Animation de pulsation subtile */
@keyframes pulseHome {
  0% {
    box-shadow: 
      0 5px 15px rgba(0, 120, 180, 0.2),
      inset 0 1px 1px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 5px 20px rgba(0, 180, 216, 0.4),
      inset 0 1px 1px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow: 
      0 5px 15px rgba(0, 120, 180, 0.2),
      inset 0 1px 1px rgba(255, 255, 255, 0.1);
  }
}

.btn-home {
  animation: pulseHome 3s infinite ease-in-out;
}


/* =============== FOOTER STYLES =============== */
.footer {
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  background: linear-gradient(180deg, 
    rgba(10, 25, 47, 0.95) 0%,
    rgba(5, 15, 30, 1) 100%);
  border-top: 1px solid rgba(35, 53, 84, 0.5);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent,
    var(--primary-color),
    var(--secondary-color),
    transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.footer-about .logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-about .logo-symbol {
  font-family: "El Messiri", sans-serif;
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
}

.footer-about .logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--light-text), #B0C4FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-description {
  color: var(--gray-text);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(35, 53, 84, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: 0 5px 15px rgba(45, 91, 255, 0.4);
}

.footer-title {
  color: var(--light-text);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--gray-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(-5px);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--gray-text);
  font-size: 0.9rem;
}

.contact-item i {
  color: var(--primary-light);
  width: 20px;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(35, 53, 84, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright p {
  color: var(--gray-text);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--gray-text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary-light);
}

/* Responsive Footer */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* Style pour le bouton "حسابي الاحترافي" */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  border: 2px solid rgba(0, 201, 183, 0.6);
  background: linear-gradient(135deg, 
    rgba(0, 201, 183, 0.15), 
    rgba(0, 216, 214, 0.1));
  color: var(--light-text);
  font-family: "Tajawal", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 5px 15px rgba(0, 201, 183, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, 
    rgba(0, 201, 183, 0.25), 
    rgba(0, 255, 242, 0.15));
  border-color: rgba(0, 255, 242, 0.8);
  box-shadow: 
    0 10px 25px rgba(0, 201, 183, 0.3),
    0 0 15px rgba(0, 255, 242, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn-secondary .material-symbols-outlined {
  font-size: 1.3rem;
  color: #00D8D6;
  transition: var(--transition);
}

.btn-secondary:hover .material-symbols-outlined {
  transform: scale(1.1);
  color: #4DFFFD;
  filter: drop-shadow(0 0 8px rgba(0, 216, 214, 0.8));
}

/* Animation de pulsation pour le bouton secondaire */
@keyframes pulseSecondary {
  0% {
    box-shadow: 
      0 5px 15px rgba(0, 201, 183, 0.2),
      inset 0 1px 1px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 5px 20px rgba(0, 201, 183, 0.4),
      inset 0 1px 1px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow: 
      0 5px 15px rgba(0, 201, 183, 0.2),
      inset 0 1px 1px rgba(255, 255, 255, 0.1);
  }
}

.btn-secondary {
  animation: pulseSecondary 3s infinite ease-in-out;
}