/* ============================================================
   My Site Maker — Main Stylesheet
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --primary:       #6366f1;
  --primary-dark:  #4f46e5;
  --secondary:     #8b5cf6;
  --accent:        #06b6d4;
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;

  --bg:            #f0f2ff;
  --bg-card:       #ffffff;
  --bg-glass:      rgba(255,255,255,0.75);
  --border:        rgba(99,102,241,0.15);
  --shadow:        0 8px 32px rgba(99,102,241,0.12);
  --shadow-lg:     0 20px 60px rgba(99,102,241,0.18);

  --text:          #1e1b4b;
  --text-muted:    #6b7280;
  --text-light:    #9ca3af;

  --radius:        16px;
  --radius-sm:     10px;
  --radius-lg:     24px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-ar:       'Cairo', sans-serif;
  --font-en:       'Poppins', sans-serif;
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --bg:         #0a0a1a;
  --bg-card:    #12122a;
  --bg-glass:   rgba(18,18,42,0.85);
  --border:     rgba(99,102,241,0.25);
  --shadow:     0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.5);
  --text:       #e0e0ff;
  --text-muted: #a0a0cc;
  --text-light: #6060a0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

body.font-ar { font-family: var(--font-ar); }
body.font-en { font-family: var(--font-en); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Navbar ── */
.navbar {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition);
  box-shadow: 0 2px 20px rgba(99,102,241,0.08);
}

.navbar-brand {
  font-size: 1.5rem;
  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: -0.5px;
}

.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  padding: 6px 14px !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary) !important;
  background: rgba(99,102,241,0.08);
}

.btn-nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff !important;
  border-radius: 50px;
  padding: 8px 22px !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(99,102,241,0.3);
  transition: all var(--transition);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99,102,241,0.4);
}

.lang-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text) !important;
  border-radius: 50px;
  padding: 6px 16px !important;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
}

.lang-btn:hover {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1rem;
}

.theme-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: rotate(20deg);
}

/* ── Hero Section ── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #667eea08 0%, #764ba208 50%, #06b6d408 100%);
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -100px; right: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: var(--secondary);
  bottom: -80px; left: -80px;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  background: var(--accent);
  top: 40%; left: 30%;
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--primary);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 60%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.8;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 10px 40px rgba(99,102,241,0.35);
  position: relative;
  overflow: hidden;
}

.btn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(99,102,241,0.45);
  color: #fff;
  text-decoration: none;
}

.btn-hero:hover::before { opacity: 1; }
.btn-hero span { position: relative; z-index: 1; }

.hero-cta-sub {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 12px;
  display: block;
}

.hero-visual {
  position: relative;
  z-index: 1;
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-15px); }
}

.hero-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.hero-card .browser-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.hero-card .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.dot-red   { background: #ef4444; }
.dot-yellow{ background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-line {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
  margin-bottom: 10px;
}

.mockup-line-full  { width: 100%; }
.mockup-line-80    { width: 80%; }
.mockup-line-60    { width: 60%; }
.mockup-line-40    { width: 40%; }

/* ── Features Section ── */
.features { padding: 100px 0; }

.section-badge {
  display: inline-block;
  background: rgba(99,102,241,0.1);
  color: var(--primary);
  border-radius: 50px;
  padding: 4px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 60px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-card:hover::before { opacity: 0.04; }
.feature-card > * { position: relative; z-index: 1; }

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(99,102,241,0.3);
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
}

.feature-card h5 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Stats Section ── */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item { text-align: center; position: relative; z-index: 1; }

.stat-num {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ── CTA Section ── */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ── Footer ── */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-logo {
  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;
  margin-bottom: 8px;
}

footer p, footer small {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Multi-Step Form ── */
.form-page {
  min-height: 100vh;
  padding: 80px 0;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg) 0%, rgba(99,102,241,0.05) 100%);
}

.form-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.form-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 36px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.form-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.form-header::after {
  content: '';
  position: absolute;
  bottom: -30px; left: 20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.form-header h2 {
  font-size: 1.7rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
}

.form-header p {
  opacity: 0.85;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* Progress Bar */
.progress-wrapper {
  padding: 24px 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.progress-fill {
  position: absolute;
  top: 18px;
  left: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 1;
  transition: width 0.5s ease;
}

[dir="rtl"] .progress-steps::before,
[dir="rtl"] .progress-fill {
  left: auto;
  right: 18px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
  margin-bottom: 6px;
}

.step-item.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99,102,241,0.4);
  transform: scale(1.1);
}

.step-item.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.step-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.step-item.active .step-label { color: var(--primary); }

/* Form Body */
.form-body { padding: 36px 40px; }

.step-content { display: none; }
.step-content.active { display: block; animation: slideIn 0.4s ease; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

[dir="rtl"] @keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
}

.step-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-heading i {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Form Controls */
.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

.form-control, .form-select {
  background: var(--bg) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text) !important;
  padding: 12px 16px !important;
  font-size: 0.95rem;
  transition: all var(--transition);
  font-family: inherit;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12) !important;
  background: var(--bg-card) !important;
}

.form-control.is-invalid, .form-select.is-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}

.form-control::placeholder { color: var(--text-light) !important; }

.invalid-feedback {
  font-size: 0.8rem;
  color: var(--danger);
  display: none;
  margin-top: 4px;
}

.is-invalid ~ .invalid-feedback,
.form-control.is-invalid + .invalid-feedback {
  display: block;
}

/* Toggle Buttons (Yes/No) */
.toggle-group {
  display: flex;
  gap: 10px;
}

.toggle-btn {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  font-family: inherit;
}

.toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.toggle-btn.active-yes {
  background: rgba(16,185,129,0.1);
  border-color: var(--success);
  color: var(--success);
}

.toggle-btn.active-no {
  background: rgba(239,68,68,0.08);
  border-color: var(--danger);
  color: var(--danger);
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 6px 20px rgba(99,102,241,0.3);
  font-family: inherit;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(99,102,241,0.4);
}

.btn-secondary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-secondary-custom:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99,102,241,0.05);
}

/* ── Thank You Page ── */
.thankyou-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.thankyou-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.thankyou-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.success-icon-wrap {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.05));
  border: 2px solid rgba(16,185,129,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-icon-wrap i {
  font-size: 3rem;
  color: var(--success);
}

.thankyou-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.thankyou-card p {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.request-id {
  display: inline-block;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  color: var(--primary);
  border-radius: 50px;
  padding: 6px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 16px 0 28px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
  font-family: inherit;
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(37,211,102,0.4);
  color: #fff;
  text-decoration: none;
}

.btn-outline-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  width: 100%;
  justify-content: center;
  font-family: inherit;
}

.btn-outline-home:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── Admin Panel ── */
.admin-body {
  background: var(--bg);
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0;
  transition: all var(--transition);
  overflow-y: auto;
}

[dir="rtl"] .admin-sidebar {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border);
}

.admin-sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-nav { padding: 16px 12px; }

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  margin-bottom: 4px;
}

.admin-nav-item:hover {
  background: rgba(99,102,241,0.08);
  color: var(--primary);
  text-decoration: none;
}

.admin-nav-item.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  color: var(--primary);
  border: 1px solid rgba(99,102,241,0.15);
}

.admin-nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.admin-nav-section {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  padding: 16px 14px 6px;
}

.admin-main {
  margin-left: 260px;
  min-height: 100vh;
  transition: margin var(--transition);
}

[dir="rtl"] .admin-main {
  margin-left: 0;
  margin-right: 260px;
}

.admin-topbar {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-content { padding: 28px; }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}

.stat-card-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-card-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-card-body { padding: 20px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: var(--bg);
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  vertical-align: middle;
}

.admin-table tr:hover td { background: rgba(99,102,241,0.03); }
.admin-table tr:last-child td { border-bottom: none; }

.badge-new {
  background: rgba(99,102,241,0.1);
  color: var(--primary);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-done {
  background: rgba(16,185,129,0.1);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
}

.btn-admin-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.btn-admin-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99,102,241,0.4);
  color: #fff;
  text-decoration: none;
}

.btn-admin-danger {
  background: rgba(239,68,68,0.1);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.2);
}

.btn-admin-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-admin-ghost {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-admin-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

/* Admin Login */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 40px 20px;
}

.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.login-logo {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 8px;
}

/* Settings */
.settings-section { margin-bottom: 32px; }

.settings-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-field-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-input {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  padding: 4px;
  cursor: pointer;
  background: none;
}

/* Logo preview */
.logo-preview {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.logo-preview img { width: 100%; height: 100%; object-fit: contain; }

/* ── Responsive ── */
@media (max-width: 992px) {
  .admin-sidebar { transform: translateX(-100%); }
  [dir="rtl"] .admin-sidebar { transform: translateX(100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0 !important; margin-right: 0 !important; }
  .form-header, .form-body { padding-left: 24px; padding-right: 24px; }
  .progress-wrapper { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 768px) {
  .hero { padding: 60px 0; min-height: auto; }
  .hero-visual { display: none; }
  .hero-subtitle { max-width: 100%; }
  .features { padding: 60px 0; }
  .stats-section { padding: 60px 0; }
  .cta-section { padding: 60px 0; }
  .cta-box { padding: 40px 24px; }
  .step-label { display: none; }
  .form-body { padding: 24px 20px; }
  .thankyou-card { padding: 40px 24px; }
}
