/* ============================================
   سيرفرات برو — ملف التصميم الرئيسي
   ============================================ */

:root {
  --bg-dark: #0a0e17;
  --bg-card: #111827;
  --bg-card-hover: #151d30;
  --bg-alt: #0d1322;
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --primary: #4f7cff;
  --primary-dark: #3b63d4;
  --accent: #22d3ee;
  --success: #34d399;
  --warning: #fbbf24;

  --gradient: linear-gradient(135deg, #4f7cff 0%, #22d3ee 100%);
  --gradient-text: linear-gradient(120deg, #6d9bff 0%, #22d3ee 60%, #34d399 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(79, 124, 255, 0.25);

  --font-main: "Cairo", "Segoe UI", Tahoma, sans-serif;

  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ الأزرار ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 124, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(79, 124, 255, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--accent);
  transform: translateY(-3px);
  background: rgba(79, 124, 255, 0.08);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* ============ شريط التنقل ============ */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-primary);
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient);
  font-size: 1.3rem;
  box-shadow: var(--shadow-glow);
}

.accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 9px 22px !important;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============ القسم الرئيسي Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
}

.glow-1 {
  width: 480px;
  height: 480px;
  background: rgba(79, 124, 255, 0.35);
  top: -120px;
  left: -100px;
  animation: floatGlow 9s ease-in-out infinite;
}

.glow-2 {
  width: 420px;
  height: 420px;
  background: rgba(34, 211, 238, 0.22);
  bottom: -100px;
  right: -80px;
  animation: floatGlow 11s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.08); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 35%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(79, 124, 255, 0.12);
  border: 1px solid rgba(79, 124, 255, 0.35);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 1.13rem;
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.whatsapp-icon {
  font-size: 1.15rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 34px;
  justify-content: start;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.3;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* --- الرسم الجانبي (راك سيرفر) --- */
.hero-visual {
  display: flex;
  justify-content: center;
}

.server-rack {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(160deg, #131b2e, #0d1322);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: floatRack 6s ease-in-out infinite;
}

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

.rack-unit {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0a0f1c;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.rack-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 10px #3b82f6;
  animation: blink 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

.rack-led.green {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation-delay: 0.5s;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.rack-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rack-lines span {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.rack-lines span:nth-child(1) { width: 85%; }
.rack-lines span:nth-child(2) { width: 65%; }
.rack-lines span:nth-child(3) { width: 75%; }
.rack-lines span:nth-child(4) { width: 45%; }

.rack-screen {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.rack-screen .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: blink 1.4s ease-in-out infinite;
}

.rack-screen .dot:nth-child(2) { animation-delay: 0.25s; }
.rack-screen .dot:nth-child(3) { animation-delay: 0.5s; }

.rack-text {
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 6px;
}

/* ============ شريط الثقة ============ */
.trustbar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 20px 0;
}

.trustbar-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.trust-item {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.93rem;
}

/* ============ الأقسام العامة ============ */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(79, 124, 255, 0.12);
  border: 1px solid rgba(79, 124, 255, 0.3);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ============ المميزات ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 124, 255, 0.5);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  border-radius: 16px;
  background: rgba(79, 124, 255, 0.12);
  border: 1px solid rgba(79, 124, 255, 0.25);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* ============ الأسعار ============ */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.pricing-tab {
  padding: 11px 26px;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pricing-tab:hover {
  border-color: rgba(79, 124, 255, 0.45);
  color: var(--text-primary);
}

.pricing-tab.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 124, 255, 0.4);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 124, 255, 0.5);
  box-shadow: var(--shadow-glow);
}

.plan-card.featured {
  border-color: rgba(79, 124, 255, 0.6);
  background: linear-gradient(165deg, #151d33, #101627);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

.plan-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
}

.plan-badge {
  position: absolute;
  top: -15px;
  right: 50%;
  transform: translateX(50%);
  padding: 6px 18px;
  border-radius: 50px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(79, 124, 255, 0.5);
}

.plan-head h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.plan-head p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.plan-price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.currency {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 800;
}

.period {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex: 1;
}

.plan-features li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  padding-right: 4px;
}

.pricing-note {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 44px;
  font-size: 0.98rem;
}

/* ============ الخطوات ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 38px 28px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 124, 255, 0.5);
}

.step-num {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: var(--shadow-glow);
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============ سيرفر مخصص (Configurator) ============ */
.pricing-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid rgba(34, 211, 238, 0.4);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pricing-link:hover {
  color: #fff;
  border-color: var(--accent);
}

.config-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  background: linear-gradient(165deg, #121a2d, #0d1322);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.config-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.config-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: border-color 0.25s ease;
}

.config-control:hover {
  border-color: rgba(79, 124, 255, 0.4);
}

.control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.control-head label {
  font-weight: 800;
  font-size: 0.98rem;
}

.control-value {
  color: var(--accent);
  font-weight: 900;
  font-size: 1.05rem;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

/* --- السلايدرز --- */
input[type="range"] {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  direction: ltr; /* اتجاه ثابت للسلايدر مع قيم صحيحة */
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient);
  border: 3px solid #0d1322;
  box-shadow: 0 0 14px rgba(79, 124, 255, 0.7);
  transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4f7cff;
  border: 3px solid #0d1322;
  box-shadow: 0 0 14px rgba(79, 124, 255, 0.7);
  cursor: pointer;
}

.range-marks {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 8px;
}

/* --- خيارات كرت الشاشة --- */
.gpu-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gpu-option {
  padding: 10px 18px;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gpu-option:hover {
  border-color: rgba(79, 124, 255, 0.5);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.gpu-option.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(79, 124, 255, 0.45);
}

/* --- ملخص السيرفر --- */
.config-summary {
  align-self: start;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  background: rgba(79, 124, 255, 0.06);
  border: 1px solid rgba(79, 124, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 30px 28px;
}

.config-summary h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  flex: 1;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 0.93rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.summary-row span:last-child {
  color: var(--text-primary);
  font-weight: 800;
  text-align: left;
}

.summary-total {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.summary-total > span {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.total-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.25;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ صفحة الدفع (Checkout) ============ */
body.checkout-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.checkout-header {
  padding: 18px 0;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.checkout-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.btn-back {
  padding: 9px 22px !important;
  font-size: 0.9rem !important;
}

.checkout-main {
  flex: 1;
  padding: 60px 0 90px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

/* --- ملخص الطلب --- */
.checkout-summary {
  background: linear-gradient(165deg, #121a2d, #0d1322);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 30px;
}

.checkout-summary h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.checkout-item {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(79, 124, 255, 0.08);
  border: 1px solid rgba(79, 124, 255, 0.3);
}

.checkout-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.checkout-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.93rem;
  font-weight: 600;
}

.checkout-line span:last-child {
  color: var(--text-primary);
  font-weight: 800;
  text-align: left;
}

.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(79, 124, 255, 0.08);
  border: 1px solid rgba(79, 124, 255, 0.3);
  margin-bottom: 18px;
}

.checkout-total > span {
  color: var(--text-secondary);
  font-weight: 700;
}

.checkout-total .total-price {
  font-size: 2rem;
}

.secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 700;
}

/* --- طرق الدفع --- */
.checkout-methods h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 8px;
}

.methods-sub {
  color: var(--text-secondary);
  margin-bottom: 26px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  margin-bottom: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pay-method:hover {
  transform: translateX(-4px);
  border-color: rgba(79, 124, 255, 0.55);
  box-shadow: var(--shadow-glow);
}

.pay-method.featured {
  background: linear-gradient(165deg, #151d33, #101627);
  border-color: rgba(79, 124, 255, 0.5);
}

.pay-icon {
  font-size: 1.8rem;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(79, 124, 255, 0.12);
  border: 1px solid rgba(79, 124, 255, 0.25);
}

.pay-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pay-title {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1rem;
}

.pay-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pay-arrow {
  color: var(--text-muted);
  font-size: 1.3rem;
  font-weight: 800;
  flex-shrink: 0;
}

.pci-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.9;
}

.pci-note strong {
  color: var(--success);
}

@media (max-width: 1024px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

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

  .credit-card {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .checkout-main {
    padding: 36px 0 60px;
  }

  .pay-method {
    padding: 15px 16px;
  }

  .pay-icon {
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }

  .btn-back {
    padding: 7px 14px !important;
    font-size: 0.82rem !important;
  }
}

/* --- نموذج البطاقة الائتمانية --- */
.card-form-section {
  margin-top: 28px;
  animation: fadeInUp 0.4s ease;
}

.card-form-grid {
  background: linear-gradient(165deg, #121a2d, #0d1322);
  border: 1px solid rgba(79, 124, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

/* --- معاينة البطاقة --- */
.card-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.credit-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  min-height: 215px;
  border-radius: 18px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #1e2a4a 0%, #4f7cff 55%, #22d3ee 130%);
  box-shadow: 0 14px 40px rgba(79, 124, 255, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  overflow: hidden;
}

.credit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(255,255,255,0.22), transparent 45%);
  pointer-events: none;
}

.cc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cc-chip {
  width: 42px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #f6d365, #c78e2a);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.12);
}

.cc-brand {
  font-weight: 900;
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 1px;
}

.cc-number {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 2px;
  direction: ltr;
  text-align: left;
  font-family: "Courier New", monospace;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.cc-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.cc-label {
  display: block;
  font-size: 0.66rem;
  opacity: 0.75;
  letter-spacing: 0.5px;
}

.cc-value {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  direction: ltr;
}

/* --- وجه البطاقة الخلفي --- */
.cc-back {
  background: linear-gradient(135deg, #16213c 0%, #24314f 100%);
  justify-content: flex-start;
  gap: 20px;
}

.cc-strip {
  height: 40px;
  background: #0a0f1c;
  margin: 0 -24px;
  margin-top: 4px;
}

.cc-cvv-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.cc-cvv-box {
  background: #fff;
  color: #0a0f1c;
  border-radius: 6px;
  padding: 6px 18px;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 2px;
  direction: ltr;
}

.cc-cvv-label {
  font-size: 0.8rem;
  font-weight: 800;
  opacity: 0.85;
}

.cc-logo-mini {
  font-size: 0.85rem;
  font-weight: 800;
  opacity: 0.85;
}

/* --- نموذج الإدخال --- */
.card-form h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.amount-chip {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 50px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* حقول الأرقام: اتجاه إنجليزي ثابت حتى لا تنعكس الأرقام */
#inputCardNumber,
#inputExpiry,
#inputCvv {
  direction: ltr;
  text-align: right;
}

.demo-note {
  color: var(--warning);
}

/* --- رسالة النجاح --- */
.pay-success {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px 0 6px;
  animation: fadeInUp 0.4s ease;
}

.success-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.pay-success h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.pay-success p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 22px;
}

.pay-success .btn {
  max-width: 340px;
  margin: 0 auto 10px;
}

/* ============ الأسئلة الشائعة ============ */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item.open {
  border-color: rgba(79, 124, 255, 0.5);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(79, 124, 255, 0.14);
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 800;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.97rem;
}

/* ============ التواصل ============ */
.contact-section {
  padding: 110px 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: linear-gradient(165deg, #121a2d, #0d1322);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 54px;
  box-shadow: var(--shadow-card);
}

.contact-info .section-tag {
  margin-bottom: 14px;
}

.contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

a.contact-method:hover {
  border-color: rgba(79, 124, 255, 0.55);
  transform: translateX(-4px);
}

.contact-method.whatsapp {
  background: rgba(52, 211, 153, 0.07);
  border-color: rgba(52, 211, 153, 0.35);
}

.method-icon {
  font-size: 1.6rem;
}

.method-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.method-value {
  display: block;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1rem;
}

.contact-method.whatsapp .method-value {
  color: var(--success);
}

/* --- الفورم --- */
.contact-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 30px;
}

.contact-form h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.18);
}

.form-group select {
  cursor: pointer;
  color: var(--text-secondary);
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.83rem;
  margin-top: 14px;
}

/* ============ التذييل ============ */
.footer {
  background: #070b12;
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
  width: fit-content;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.social-links a:hover {
  border-color: rgba(79, 124, 255, 0.55);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}

.footer-bottom p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ============ زر الواتساب العائم ============ */
.floating-whatsapp {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 999;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  text-decoration: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1ab155);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pulse 2.4s ease-in-out infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.65);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* ============ أنيميشن الظهور عند التمرير ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ التجاوب مع الشاشات ============ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 20px;
  }

  .features-grid,
  .tab-panel.active,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-card.featured {
    transform: none;
  }

  .plan-card.featured:hover {
    transform: translateY(-8px);
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .config-card {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }

  .config-summary {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(78vw, 320px);
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    padding: 110px 32px 32px;
    gap: 20px;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    transition: right 0.35s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 40px;
  }

  .trustbar-inner {
    justify-content: center;
  }

  .section {
    padding: 70px 0;
  }

  .contact-card {
    padding: 34px 24px;
  }
}

@media (max-width: 560px) {
  .features-grid,
  .tab-panel.active,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .plan-price {
    font-size: 2.5rem;
  }

  .btn-lg {
    padding: 13px 26px;
    font-size: 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .footer-brand p {
    margin-right: auto;
    margin-left: auto;
  }

  .footer-col {
    align-items: center;
  }

  .floating-whatsapp {
    width: 52px;
    height: 52px;
    bottom: 20px;
    left: 20px;
  }
}
