/* ==========================================================================
   برنامج الشامل - تصميم بسيط، أنيق وفاخر (Clean Minimalist Luxury)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
  --bg-page: #0A0E17;
  --bg-card: #111726;
  --bg-card-hover: #161F33;
  --bg-input: #080C14;
  
  --gold: #D4AF37;
  --gold-hover: #E5C07B;
  --gold-subtle: rgba(212, 175, 55, 0.12);
  --border-gold: rgba(212, 175, 55, 0.3);
  
  --border: #1F293D;
  --text-main: #FFFFFF;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  direction: rtl;
  text-align: right;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.navbar {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 23, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 19px;
  color: #FFFFFF;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.brand-sub {
  display: block;
  font-size: 11px;
  font-weight: normal;
  color: var(--gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #0A0E17;
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

/* Hero Section */
.hero {
  padding: 70px 0 50px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--gold-subtle);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
  color: #FFFFFF;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 15px;
}

/* Simple Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* Simple Clean Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--border-gold);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.card-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Download Cards */
.dl-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dl-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.dl-info {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Step Items */
.step-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-subtle);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
}

/* Alert */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10B981;
  color: #34D399;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  color: #F87171;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 30px 0;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
}


/* Mobile Navigation & Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--gold);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 14, 23, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-gold);
  padding: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  z-index: 100;
}

.mobile-drawer.active {
  display: block;
}

.mobile-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.mobile-nav-menu a:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 900px) {
  .nav-menu {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
  }
  .btn-header-dl {
    display: none;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .container {
    padding: 0 16px;
  }
}
