:root {
  --primary:    #5B5FD9;
  --secondary:  #3B82C4;
  --accent:     #7B7FE8;
  --bg:         #0A0A1A;
  --bg2:        #0F0F24;
  --bg3:        #141430;
  --border:     rgba(91, 95, 217, 0.2);
  --text:       #FFFFFF;
  --subtext:    #A0A0C0;
  --success:    #2ecc71;
  --warning:    #e67e22;
  --error:      #e74c3c;
  --gold:       #f39c12;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 8px 32px rgba(91, 95, 217, 0.15);
  --glow:       0 0 40px rgba(91, 95, 217, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
}

/* Grid Background */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 95, 217, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 95, 217, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo img { width: 36px; height: 36px; border-radius: 8px; }
.accent { color: var(--accent); }

.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--subtext); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; gap: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 20px rgba(91, 95, 217, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(91, 95, 217, 0.5); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: rgba(91, 95, 217, 0.1); border-color: var(--accent); }

.btn-lg { padding: 14px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-danger { background: var(--error); color: white; }
.btn-success { background: var(--success); color: white; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 80px 80px;
  position: relative;
  z-index: 1;
  gap: 60px;
}

.hero-content { flex: 1; max-width: 600px; }

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(91, 95, 217, 0.1);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero-desc { font-size: 1.15rem; color: var(--subtext); line-height: 1.7; margin-bottom: 36px; }

.hero-btns { display: flex; gap: 16px; margin-bottom: 60px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 48px; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--subtext); }

.hero-image {
  flex: 1;
  max-width: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--glow); }

.glow-orb {
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(91, 95, 217, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Section Titles */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
}

/* Track Section */
.track-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.track-box {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 24px;
}

.track-input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.track-input:focus { border-color: var(--primary); }
.track-input::placeholder { color: var(--subtext); }

.track-result {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Reviews */
.reviews-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(91, 95, 217, 0.03), transparent);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover;
}

.review-user { font-weight: 700; font-size: 0.95rem; }
.review-date { font-size: 0.8rem; color: var(--subtext); margin-top: 2px; }

.stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; }
.review-text { color: var(--subtext); line-height: 1.7; font-size: 0.95rem; }

/* FAQ */
.faq-section { padding: 80px 0; position: relative; z-index: 1; }
.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  background: var(--bg2);
  transition: background 0.2s;
}
.faq-q:hover { background: var(--bg3); }

.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  color: var(--subtext);
  line-height: 1.7;
}
.faq-a.open { padding: 16px 20px; max-height: 200px; }

/* Footer */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  z-index: 1;
}
.footer-logo { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.footer p { color: var(--subtext); margin-bottom: 24px; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 24px; }
.footer-links a { color: var(--subtext); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.85rem; color: var(--subtext); opacity: 0.6; }

/* Dashboard Base */
.dash-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.sidebar {
  width: 260px;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  padding: 24px 0;
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  font-size: 1.3rem;
  font-weight: 800;
}

.sidebar-nav { list-style: none; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: var(--subtext);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.95rem;
}
.sidebar-nav a:hover,
.sidebar-nav a.active { color: var(--text); background: rgba(91, 95, 217, 0.1); border-right: 3px solid var(--primary); }

.dash-content {
  flex: 1;
  margin-right: 260px;
  padding: 32px;
  min-height: 100vh;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.dash-header h1 { font-size: 1.6rem; font-weight: 700; }

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-2px); }

.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card-value { font-size: 2rem; font-weight: 800; color: var(--accent); }
.card-label { font-size: 0.85rem; color: var(--subtext); margin-top: 4px; }

/* Table */
.table-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.table-header h3 { font-size: 1rem; font-weight: 700; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 20px; text-align: right; font-size: 0.9rem; }
th { color: var(--subtext); font-weight: 600; border-bottom: 1px solid var(--border); }
tr:not(:last-child) td { border-bottom: 1px solid rgba(91,95,217,0.08); }
tr:hover td { background: rgba(91, 95, 217, 0.03); }

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success  { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.badge-warning  { background: rgba(230, 126, 34, 0.15); color: #e67e22; }
.badge-error    { background: rgba(231, 76, 60, 0.15);  color: #e74c3c; }
.badge-info     { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.badge-primary  { background: rgba(91, 95, 217, 0.15);  color: var(--accent); }

/* Loading */
.loading { text-align: center; color: var(--subtext); padding: 40px; }

/* Verify Page */
.verify-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.verify-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--glow);
}

.verify-icon { font-size: 4rem; margin-bottom: 24px; }
.verify-box h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.verify-box p { color: var(--subtext); line-height: 1.7; margin-bottom: 32px; }

.verify-features {
  list-style: none;
  text-align: right;
  margin-bottom: 32px;
  background: rgba(91, 95, 217, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.verify-features li {
  padding: 8px 0;
  color: var(--subtext);
  display: flex;
  align-items: center;
  gap: 8px;
}
.verify-features li::before { content: "✅"; }

/* Responsive */
@media (max-width: 768px) {
  .navbar { padding: 12px 20px; }
  .nav-links { display: none; }
  .hero { flex-direction: column; padding: 100px 20px 60px; text-align: center; }
  .hero h1 { font-size: 2.5rem; }
  .hero-image { max-width: 100%; }
  .hero-stats { justify-content: center; gap: 24px; }
  .hero-btns { justify-content: center; }
  .sidebar { width: 100%; height: auto; position: relative; }
  .dash-content { margin-right: 0; padding: 20px; }
  .dash-layout { flex-direction: column; }
  .container { padding: 0 20px; }
  .reviews-grid { grid-template-columns: 1fr; }
}
