/* ===========================
   رفد - CSS الرئيسي
   =========================== */

:root {
  --primary:    #7C3AED;
  --primary-light: #A855F7;
  --primary-dark:  #5B21B6;
  --secondary:  #EC4899;
  --accent:     #F59E0B;
  --success:    #10B981;
  --danger:     #EF4444;
  --warning:    #F59E0B;
  --info:       #3B82F6;
  --dark:       #1E1B4B;
  --gray-50:    #F8F7FF;
  --gray-100:   #EDE9FE;
  --gray-200:   #DDD6FE;
  --gray-800:   #3730A3;
  --white:      #FFFFFF;
  --shadow-sm:  0 2px 8px rgba(124,58,237,.12);
  --shadow-md:  0 8px 30px rgba(124,58,237,.18);
  --shadow-lg:  0 20px 60px rgba(124,58,237,.25);
  --radius:     16px;
  --radius-sm:  8px;
  --radius-xl:  32px;
  --transition: all .35s cubic-bezier(.4,0,.2,1);
  --font-ar:    'Tajawal', 'Cairo', 'Noto Sans Arabic', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-ar);
  direction: rtl;
  background: var(--gray-50);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: var(--font-ar); }

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(124,58,237,.1);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,.95);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.navbar-logo {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: white;
  box-shadow: 0 4px 15px rgba(124,58,237,.4);
}
.navbar-name {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.5px;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: .3rem;
  list-style: none;
}
.navbar-links a {
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  color: var(--dark);
  transition: var(--transition);
}
.navbar-links a:hover,
.navbar-links a.active {
  background: var(--gray-100);
  color: var(--primary);
}
.navbar-actions {
  display: flex; gap: .7rem; align-items: center;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,.15); }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 20px rgba(124,58,237,.4);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(124,58,237,.55); transform: translateY(-2px); }

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #F472B6);
  color: white;
  box-shadow: 0 4px 20px rgba(236,72,153,.4);
}
.btn-secondary:hover { box-shadow: 0 8px 30px rgba(236,72,153,.55); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-ghost {
  background: transparent;
  color: var(--dark);
}
.btn-ghost:hover { background: var(--gray-100); }

.btn-danger { background: linear-gradient(135deg, var(--danger), #F87171); color: white; }
.btn-success { background: linear-gradient(135deg, var(--success), #34D399); color: white; }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; border-radius: var(--radius-sm); }
.btn-lg { padding: .9rem 2.2rem; font-size: 1.1rem; }
.btn-xl { padding: 1.1rem 2.8rem; font-size: 1.2rem; border-radius: 20px; }
.btn-block { width: 100%; justify-content: center; }

.btn-pulse {
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(124,58,237,.6); }
  70%  { box-shadow: 0 0 0 18px rgba(124,58,237,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); }
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 2rem 60px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1E1B4B 0%, #3730A3 40%, #5B21B6 70%, #7C3AED 100%);
  z-index: 0;
}
.hero-particles {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 640px;
  color: white;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  color: white;
  padding: .4rem 1.2rem;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInDown .7s ease both;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  animation: fadeInUp .7s .1s ease both;
}
.hero-title span {
  background: linear-gradient(90deg, #F59E0B, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2.2rem;
  animation: fadeInUp .7s .2s ease both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp .7s .3s ease both;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  animation: fadeInUp .7s .4s ease both;
}
.hero-stat h3 {
  font-size: 2rem;
  font-weight: 900;
  color: white;
}
.hero-stat p {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
}
.hero-visual {
  position: absolute;
  left: 0; right: 30%;
  top: 0; bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-float-card {
  position: absolute;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  color: white;
  font-size: .85rem;
  animation: float 4s ease-in-out infinite;
}
.hero-float-card:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.hero-float-card:nth-child(2) { top: 50%; left: 60%; animation-delay: 1s; }
.hero-float-card:nth-child(3) { bottom: 25%; left: 20%; animation-delay: 2s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}

/* ===========================
   PARTICLES (CANVAS)
   =========================== */
#particles-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* ===========================
   SECTIONS
   =========================== */
.section {
  padding: 90px 2rem;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--primary);
  padding: .35rem 1.2rem;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border: 1px solid var(--gray-200);
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: .8rem;
  line-height: 1.3;
}
.section-subtitle {
  color: #6B7280;
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===========================
   CARDS
   =========================== */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(124,58,237,.08);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-body { padding: 1.5rem; }
.card-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover;
}

/* ===========================
   FEATURES GRID
   =========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(124,58,237,.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.2rem;
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.feature-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .5rem; }
.feature-card p { color: #6B7280; font-size: .95rem; }

/* ===========================
   OCCASIONS
   =========================== */
.occasions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.occasion-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.8rem 1rem;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.occasion-card:hover,
.occasion-card.selected {
  border-color: var(--primary);
  background: var(--gray-100);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}
.occasion-card span { font-size: 2.8rem; display: block; margin-bottom: .6rem; }
.occasion-card p { font-size: .9rem; font-weight: 700; color: var(--dark); }

/* ===========================
   GIFT LIST CARDS
   =========================== */
.gift-list-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(124,58,237,.1);
}
.gift-list-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.gift-list-cover {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.gift-list-cover img { width: 100%; height: 100%; object-fit: cover; }
.gift-list-cover .occasion-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  padding: .3rem .8rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
}
.gift-list-body { padding: 1.2rem; }
.gift-list-title { font-size: 1.1rem; font-weight: 800; margin-bottom: .3rem; }
.gift-list-meta { font-size: .85rem; color: #9CA3AF; display: flex; gap: 1rem; flex-wrap: wrap; }
.gift-list-meta span { display: flex; align-items: center; gap: .3rem; }
.gift-progress {
  margin-top: .8rem;
  background: var(--gray-100);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}
.gift-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 100px;
  transition: width 1s ease;
}

/* ===========================
   GIFT ITEM
   =========================== */
.gift-item {
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(124,58,237,.1);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  gap: 1rem;
  padding: 1rem;
  align-items: flex-start;
}
.gift-item:hover { box-shadow: var(--shadow-sm); }
.gift-item-img {
  width: 90px; height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--gray-100);
}
.gift-item-info { flex: 1; min-width: 0; }
.gift-item-title { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.gift-item-price { color: var(--primary); font-weight: 800; font-size: 1.05rem; margin-bottom: .3rem; }
.gift-item-status {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
}
.status-available { background: #D1FAE5; color: #065F46; }
.status-reserved  { background: #FEF3C7; color: #92400E; }
.status-purchased { background: #E5E7EB; color: #374151; }

/* ===========================
   PRIORITY BADGE
   =========================== */
.priority-high   { background: #FEE2E2; color: #991B1B; }
.priority-medium { background: #FEF9C3; color: #78350F; }
.priority-low    { background: #DCFCE7; color: #14532D; }
.priority-badge {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
}

/* ===========================
   FORMS
   =========================== */
.form-group { margin-bottom: 1.3rem; }
.form-label {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .45rem;
  color: var(--dark);
}
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: var(--font-ar);
  background: white;
  color: var(--dark);
  transition: var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124,58,237,.1);
}
.form-control::placeholder { color: #9CA3AF; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237C3AED' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
}
.form-hint { font-size: .8rem; color: #9CA3AF; margin-top: .3rem; }
.form-error { font-size: .82rem; color: var(--danger); margin-top: .3rem; }

/* ===========================
   FLASH MESSAGES
   =========================== */
.flash {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  animation: slideIn .4s ease;
}
.flash-success { background: #D1FAE5; color: #065F46; border-right: 4px solid var(--success); }
.flash-error   { background: #FEE2E2; color: #991B1B; border-right: 4px solid var(--danger); }
.flash-warning { background: #FEF3C7; color: #92400E; border-right: 4px solid var(--warning); }
.flash-info    { background: #DBEAFE; color: #1E40AF; border-right: 4px solid var(--info); }

/* ===========================
   MODAL
   =========================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(.92) translateY(20px);
  transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 1.2rem; font-weight: 800; }
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  color: var(--dark);
}
.modal-close:hover { background: var(--danger); color: white; }
.modal-body { padding: 2rem; }
.modal-footer {
  padding: 1rem 2rem 1.5rem;
  display: flex;
  gap: .8rem;
  justify-content: flex-end;
}

/* ===========================
   TABLES
   =========================== */
.table-wrapper {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(124,58,237,.08);
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  background: var(--gray-50);
  padding: 1rem 1.2rem;
  font-size: .85rem;
  font-weight: 700;
  color: #6B7280;
  text-align: right;
  border-bottom: 1px solid var(--gray-100);
  white-space: nowrap;
}
.table td {
  padding: 1rem 1.2rem;
  font-size: .92rem;
  border-bottom: 1px solid var(--gray-50);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--gray-50); }

/* ===========================
   SIDEBAR + DASHBOARD LAYOUT
   =========================== */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 72px;
}
.sidebar {
  width: 260px;
  background: white;
  border-left: 1px solid rgba(124,58,237,.1);
  padding: 1.5rem 0;
  position: fixed;
  top: 72px; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transition: var(--transition);
}
.sidebar-section {
  padding: 0 1rem;
  margin-bottom: 1.5rem;
}
.sidebar-section-title {
  font-size: .75rem;
  font-weight: 800;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: .5rem .8rem;
  margin-bottom: .3rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem .8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  color: #4B5563;
  transition: var(--transition);
  cursor: pointer;
}
.sidebar-link:hover,
.sidebar-link.active {
  background: var(--gray-100);
  color: var(--primary);
}
.sidebar-link .icon { font-size: 1.2rem; flex-shrink: 0; width: 24px; text-align: center; }
.sidebar-badge {
  margin-right: auto;
  background: var(--primary);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: .1rem .5rem;
  border-radius: 100px;
}
.main-content {
  margin-right: 260px;
  flex: 1;
  padding: 2rem;
  min-width: 0;
}

/* ===========================
   ADMIN COLORS PANEL
   =========================== */
.color-swatch {
  display: flex; gap: .6rem; flex-wrap: wrap;
}
.color-swatch input[type="color"] {
  width: 48px; height: 48px;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; padding: 2px;
  box-shadow: var(--shadow-sm);
}

/* ===========================
   STATS CARDS
   =========================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(124,58,237,.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.stat-info h3 { font-size: 1.7rem; font-weight: 900; color: var(--dark); }
.stat-info p { font-size: .85rem; color: #9CA3AF; font-weight: 600; }

/* ===========================
   BADGES
   =========================== */
.badge {
  display: inline-block;
  padding: .2rem .75rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
}
.badge-purple { background: var(--gray-100); color: var(--primary); }
.badge-pink   { background: #FDF2F8; color: #BE185D; }
.badge-green  { background: #D1FAE5; color: #065F46; }
.badge-red    { background: #FEE2E2; color: #991B1B; }
.badge-yellow { background: #FEF3C7; color: #92400E; }
.badge-gray   { background: #F3F4F6; color: #374151; }

/* ===========================
   AVATAR
   =========================== */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.avatar-sm { width: 36px; height: 36px; font-size: .9rem; }
.avatar-md { width: 50px; height: 50px; font-size: 1.2rem; }
.avatar-lg { width: 80px; height: 80px; font-size: 2rem; }

/* ===========================
   STEP INDICATOR
   =========================== */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  position: relative; flex: 1;
}
.step-circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 3px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  color: #9CA3AF;
  position: relative; z-index: 1;
  transition: var(--transition);
}
.step.active .step-circle, .step.done .step-circle {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(124,58,237,.4);
}
.step-label { font-size: .8rem; font-weight: 700; color: #9CA3AF; }
.step.active .step-label, .step.done .step-label { color: var(--primary); }
.step::before {
  content: '';
  position: absolute;
  top: 21px; right: 50%;
  width: 100%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}
.step:first-child::before { display: none; }
.step.done::before { background: var(--primary); }

/* ===========================
   SEARCH BAR
   =========================== */
.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 100px;
  padding: .5rem 1.2rem;
  gap: .6rem;
  transition: var(--transition);
}
.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124,58,237,.1);
}
.search-bar input {
  border: none; outline: none;
  font-family: var(--font-ar);
  font-size: .95rem;
  flex: 1; background: transparent;
}

/* ===========================
   SHARE BUTTONS
   =========================== */
.share-btns {
  display: flex; gap: .6rem; flex-wrap: wrap;
}
.share-btn {
  display: flex; align-items: center; gap: .4rem;
  padding: .5rem 1.1rem;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.share-whatsapp { background: #25D366; color: white; }
.share-copy     { background: var(--gray-100); color: var(--dark); }
.share-twitter  { background: #1DA1F2; color: white; }
.share-btn:hover { opacity: .85; transform: scale(1.05); }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.8);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}
.footer-brand .logo-text {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(90deg, #A855F7, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-brand p { margin-top: .5rem; font-size: .9rem; color: rgba(255,255,255,.6); }
.footer-title {
  font-size: .9rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
  max-width: 1200px;
  margin: 0 auto;
}
.footer-socials { display: flex; gap: .8rem; margin-top: .8rem; }
.footer-social {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  color: white;
}
.footer-social:hover { background: var(--primary); transform: translateY(-3px); }

/* ===========================
   CONFETTI / CELEBRATION
   =========================== */
.confetti-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999; overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 2px;
  top: -20px;
  animation: confetti-fall linear infinite;
}
@keyframes confetti-fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ===========================
   LOADING SPINNER
   =========================== */
.spinner {
  width: 40px; height: 40px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================
   AUTH PAGES
   =========================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E1B4B 0%, #3730A3 50%, #5B21B6 100%);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.auth-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  animation: fadeInUp .5s ease;
}
.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo .logo-text {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-divider {
  display: flex; align-items: center; gap: 1rem; margin: 1.3rem 0;
  color: #9CA3AF; font-size: .85rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.8); }
  to   { opacity: 1; transform: scale(1); }
}
.animate-on-scroll {
  opacity: 0; transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.animate-on-scroll.visible {
  opacity: 1; transform: translateY(0);
}

/* ===========================
   CONTAINER
   =========================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1rem; }
.container-xs { max-width: 480px; margin: 0 auto; padding: 0 1rem; }

/* ===========================
   UTILITIES
   =========================== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-primary { color: var(--primary); }
.text-muted  { color: #9CA3AF; }
.text-sm     { font-size: .85rem; }
.text-xs     { font-size: .75rem; }
.font-bold   { font-weight: 700; }
.font-black  { font-weight: 900; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: 100px; }
.overflow-hidden { overflow: hidden; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass effect */
.glass {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.2);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
  .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .main-content { margin-right: 0; }
  .hero { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
}
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hero-title { font-size: 2rem; }
  .section { padding: 60px 1rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .auth-card { padding: 1.8rem; }
}
@media (max-width: 480px) {
  .hero { padding: 100px 1rem 50px; }
  .btn-xl { padding: .9rem 1.8rem; font-size: 1rem; }
}
