:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #131a2a;
  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --color-green: #10b981;
  --color-green-glow: rgba(16, 185, 129, 0.2);
  --color-red: #ef4444;
  --color-red-glow: rgba(239, 68, 68, 0.2);
  --color-yellow: #f59e0b;
  --glass-bg: rgba(19, 26, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--text-main);
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Typography & Utilities */
.text-green { color: var(--color-green); }
.text-red { color: var(--color-red); }
.text-yellow { color: var(--color-yellow); }
.hl { font-weight: 700; color: var(--primary-color); }
.text-right { text-align: right; }
.bg-darker { background-color: var(--bg-secondary); }

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links li a {
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links li a:hover {
  background: var(--glass-bg);
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-green-glow) 0%, transparent 70%);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  z-index: -1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text .badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(to left, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Floating Glass Card */
.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 24px;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.card-header {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card-header i { color: #f59e0b; font-size: 1.5rem; }

.card-price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 30px;
  font-family: monospace;
}

.price-up { color: var(--color-green); text-shadow: 0 0 10px var(--color-green-glow); }
.price-down { color: var(--color-red); text-shadow: 0 0 10px var(--color-red-glow); }

.card-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.btn-buy, .btn-sell {
  padding: 15px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: white;
  transition: var(--transition);
}

.btn-buy {
  background: var(--color-green);
  box-shadow: 0 4px 15px var(--color-green-glow);
}

.btn-sell {
  background: var(--color-red);
  box-shadow: 0 4px 15px var(--color-red-glow);
}

.btn-buy:hover, .btn-sell:hover { transform: translateY(-2px) scale(1.05); }

/* General Sections */
.section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

/* Orders Grid */
.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.order-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.order-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.order-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: inline-block;
  padding: 15px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
}

.order-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.order-card .desc { color: var(--text-muted); margin-bottom: 20px; font-size: 1rem; }

.order-details {
  background: rgba(0,0,0,0.2);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.detail-item {
  margin-bottom: 10px;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.detail-item:last-child { margin-bottom: 0; }
.detail-item i { margin-top: 5px; }

.example-box {
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.order-card-full { grid-column: 1 / -1; max-width: 600px; margin: 0 auto; }

/* Grids & Layouts */
.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* Rule List */
.rule-list {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
}
.rule-list li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1.1rem;
}
.rule-list li:last-child { border-bottom: none; }

/* QA List */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.qa-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
.qa-item:hover {
  background: rgba(255,255,255,0.05);
  transform: translateX(-5px);
}
.qa-item .q { font-weight: 700; font-size: 1.1rem; }
.qa-item .a {
  background: var(--primary-color);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Timeline/Example Section */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 28px;
  width: 4px;
  background: var(--primary-color);
  border-radius: 2px;
  opacity: 0.3;
}
.timeline-step {
  display: flex;
  gap: 30px;
  position: relative;
}
.step-num {
  width: 60px; height: 60px;
  background: var(--bg-primary);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  z-index: 2;
  flex-shrink: 0;
}
.step-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  flex-grow: 1;
}
.step-content h4 { font-size: 1.5rem; margin-bottom: 10px; color: #fff; }

/* Mistakes Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.mistake-card {
  background: rgba(239, 68, 68, 0.05);
  border: 1px dashed rgba(239, 68, 68, 0.3);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
}
.mistake-card:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--color-red);
}
.mistake-num {
  width: 40px; height: 40px;
  background: var(--color-red);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.mistake-card h4 { margin-bottom: 10px; color: #fff; }
.mistake-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  text-align: center;
}
.footer-logo { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }
.footer-logo i { color: var(--primary-color); }
.footer-content p { color: var(--text-muted); max-width: 600px; margin: 0 auto 20px; }
.footer-links a { color: var(--text-muted); transition: var(--transition); border-bottom: 1px dashed var(--text-muted); padding-bottom: 2px;}
.footer-links a:hover { color: var(--primary-color); border-color: var(--primary-color); }

/* Terminal Box for Easy Guide */
.terminal-box {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 20px;
  font-family: monospace, 'Courier New', Courier;
  color: var(--color-green);
  border: 1px solid var(--glass-border);
  margin: 15px 0;
  direction: rtl;
  text-align: right;
  line-height: 1.8;
  font-size: 1.1rem;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.terminal-box .dim {
  color: var(--text-muted);
}

.terminal-box .hl-white {
  color: #fff;
  font-weight: bold;
}

.mb-50 { margin-bottom: 50px; }
.mt-50 { margin-top: 50px; }
.mb-20 { margin-bottom: 20px; }
.mb-10 { margin-bottom: 10px; }
.ml-15 { margin-left: 15px; }
.p-20 { padding: 20px; }
.text-center { text-align: center; }
.full-width { width: 100%; max-width: 100%; }
.border-green { border-top: 4px solid var(--color-green); }
.border-red { border-top: 4px solid var(--color-red); }

/* Responsive Options */
@media (max-width: 900px) {
  .hero-container, .grid-2-cols { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2.5rem; }
  .hero { text-align: center; padding-top: 120px; }
  .nav-links { 
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.95);
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .terminal-box { font-size: 0.95rem; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word; }
  .section { padding: 60px 0; }
  .glass-card { padding: 25px; }
}
