/* ================================================
   1Day RP - الأنماط الرئيسية
   ================================================ */

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

/* ---- متغيرات CSS ---- */
:root {
  --bg-primary:    #050a14;
  --bg-secondary:  #080f1e;
  --bg-card:       rgba(8, 20, 45, 0.7);
  --bg-glass:      rgba(0, 212, 255, 0.05);

  --cyan:          #00d4ff;
  --cyan-dark:     #0099cc;
  --cyan-glow:     rgba(0, 212, 255, 0.3);
  --gold:          #ffd700;
  --gold-dark:     #cc9900;
  --gold-glow:     rgba(255, 215, 0, 0.3);
  --red:           #ff2244;
  --red-glow:      rgba(255, 34, 68, 0.3);
  --green:         #00ff88;
  --purple:        #a855f7;

  --text-white:    #ffffff;
  --text-light:    #b0c4de;
  --text-muted:    #6b7fa3;

  --border-cyan:   rgba(0, 212, 255, 0.25);
  --border-gold:   rgba(255, 215, 0, 0.25);

  --font-main:     'Tajawal', 'Cairo', sans-serif;
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-white);
  direction: rtl;
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-main); }
input, select, textarea { font-family: var(--font-main); }

/* ================================================
   شاشة التحميل
   ================================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.loading-logo {
  width: 160px;
  animation: loadingPulse 1.5s ease-in-out infinite;
}
.loading-bar-wrap {
  width: 280px;
  height: 4px;
  background: rgba(0,212,255,0.15);
  border-radius: 99px;
  overflow: hidden;
}
.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  border-radius: 99px;
  animation: loadingFill 2.2s ease-in-out forwards;
}
.loading-text {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
}
@keyframes loadingPulse {
  0%,100% { filter: drop-shadow(0 0 10px var(--cyan-glow)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 30px var(--cyan)); transform: scale(1.05); }
}
@keyframes loadingFill {
  0%   { width: 0%; }
  100% { width: 100%; }
}

/* ================================================
   شريط التنقل
   ================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-cyan);
  transition: var(--transition);
}
.navbar.scrolled {
  height: 60px;
  background: rgba(5, 10, 20, 0.97);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo span {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--cyan); background: var(--bg-glass); }
.nav-btns { display: flex; align-items: center; gap: 10px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--cyan); border-radius: 2px; transition: var(--transition); }

/* ================================================
   الأزرار
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  border: none;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: #000;
  box-shadow: 0 0 20px var(--cyan-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--cyan-glow), 0 8px 25px rgba(0,212,255,0.3);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  box-shadow: 0 0 20px var(--gold-glow);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--gold-glow), 0 8px 25px rgba(255,215,0,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
}
.btn-outline:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 20px var(--cyan-glow);
}
.btn-red {
  background: linear-gradient(135deg, var(--red), #cc0022);
  color: #fff;
  box-shadow: 0 0 20px var(--red-glow);
}
.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--red-glow);
}
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 18px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ================================================
   القسم البطولي (Hero)
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,212,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 70%, rgba(255,215,0,0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, #03070f 100%);
}
/* شبكة المدينة */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}
/* خط الطريق النيوني */
.neon-road {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top,
    rgba(0,212,255,0.12) 0%,
    rgba(0,212,255,0.04) 50%,
    transparent 100%);
  clip-path: polygon(0 60%, 50% 0%, 100% 60%, 100% 100%, 0 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(0,212,255,0.1);
  border: 1px solid var(--border-cyan);
  border-radius: 99px;
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 28px;
  letter-spacing: 1px;
}
.hero-logo {
  width: 180px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 30px rgba(0,212,255,0.5));
  animation: heroLogoFloat 4s ease-in-out infinite;
}
@keyframes heroLogoFloat {
  0%,100% { transform: translateY(0); filter: drop-shadow(0 0 30px rgba(0,212,255,0.5)); }
  50%      { transform: translateY(-12px); filter: drop-shadow(0 0 50px rgba(0,212,255,0.8)); }
}
.hero-title {
  font-size: clamp(48px, 8vw, 90px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-light);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
}
.hero-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* أفق المدينة */
.skyline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  overflow: hidden;
}
.skyline-buildings {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 4px;
  padding: 0 20px;
}
.building {
  background: linear-gradient(to top, rgba(0,212,255,0.15), rgba(0,212,255,0.03));
  border: 1px solid rgba(0,212,255,0.1);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  position: relative;
  animation: buildingGlow 3s ease-in-out infinite;
}
.building::after {
  content: '';
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes buildingGlow {
  0%,100% { border-color: rgba(0,212,255,0.1); }
  50%      { border-color: rgba(0,212,255,0.3); }
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ================================================
   القسم العام
   ================================================ */
.section { padding: 100px 40px; position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: rgba(0,212,255,0.08);
  border: 1px solid var(--border-cyan);
  border-radius: 99px;
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  margin-bottom: 16px;
}
.section-title span { color: var(--cyan); }
.section-title .gold { color: var(--gold); }
.section-desc { font-size: 17px; color: var(--text-light); max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* ================================================
   الفاصل النيوني
   ================================================ */
.neon-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold), transparent);
  margin: 0;
  opacity: 0.4;
}

/* ================================================
   قسم "عن اللعبة"
   ================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-img-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-cyan);
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), transparent);
  border-radius: var(--radius-lg);
}
.about-features { display: grid; gap: 20px; margin-top: 32px; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius);
  transition: var(--transition);
}
.about-feature:hover { border-color: var(--cyan); background: rgba(0,212,255,0.07); }
.about-feature-icon {
  width: 44px; height: 44px;
  background: rgba(0,212,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  font-size: 18px;
  flex-shrink: 0;
}
.about-feature h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.about-feature p { font-size: 14px; color: var(--text-muted); }

/* ================================================
   قسم الفصائل
   ================================================ */
.factions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.faction-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.faction-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--faction-color, var(--cyan));
  opacity: 0.7;
  transition: var(--transition);
}
.faction-card:hover {
  transform: translateY(-6px);
  border-color: var(--faction-color, var(--cyan));
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px var(--faction-glow, var(--cyan-glow));
}
.faction-card:hover::before { opacity: 1; height: 4px; }
.faction-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.faction-card:hover .faction-icon {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 20px var(--faction-glow, var(--cyan-glow));
}
.faction-name { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.faction-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; }
.faction-positions { display: flex; flex-wrap: wrap; gap: 6px; }
.faction-pos-tag {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
}

/* ================================================
   قسم الروبوتات
   ================================================ */
.robots-section { background: linear-gradient(180deg, var(--bg-primary) 0%, #030710 50%, var(--bg-primary) 100%); }
.robots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.robot-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.robot-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--gold-glow);
}
.robot-card::before {
  content: 'نادر';
  position: absolute;
  top: 14px; left: 14px;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
}
.robot-img {
  width: 180px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto 20px;
  filter: drop-shadow(0 10px 30px rgba(0,212,255,0.3));
  transition: var(--transition);
}
.robot-card:hover .robot-img {
  transform: scale(1.08) translateY(-4px);
  filter: drop-shadow(0 20px 50px rgba(255,215,0,0.4));
}
.robot-name { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--gold); }
.robot-desc { font-size: 14px; color: var(--text-muted); }
.robot-chance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 4px 14px;
  background: rgba(255,215,0,0.1);
  border: 1px solid var(--border-gold);
  border-radius: 99px;
  font-size: 12px;
  color: var(--gold);
}

/* ================================================
   قسم الهدية
   ================================================ */
.gift-section {
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255,215,0,0.06) 0%, transparent 70%);
}
.gift-box {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.gift-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,215,0,0.05) 0%, transparent 50%, rgba(0,212,255,0.05) 100%);
}
.gift-icon {
  font-size: 72px;
  margin-bottom: 24px;
  animation: giftBounce 2s ease-in-out infinite;
}
@keyframes giftBounce {
  0%,100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-10px) rotate(-5deg); }
  75%      { transform: translateY(-5px) rotate(5deg); }
}
.gift-rewards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.gift-reward-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.gift-reward-item .val { font-size: 22px; font-weight: 900; color: var(--gold); }
.gift-reward-item .lbl { font-size: 12px; color: var(--text-muted); }
.gift-note { font-size: 13px; color: var(--text-muted); margin-top: 20px; }

/* ================================================
   قسم أنظمة المدينة
   ================================================ */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.system-card {
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}
.system-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px var(--cyan-glow);
}
.system-icon {
  font-size: 36px;
  color: var(--cyan);
  margin-bottom: 14px;
  text-shadow: 0 0 20px var(--cyan);
}
.system-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.system-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ================================================
   قسم الإعلانات
   ================================================ */
.announcements-list { display: grid; gap: 16px; max-width: 800px; margin: 0 auto; }
.announce-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius);
  border-right: 4px solid var(--cyan);
  transition: var(--transition);
}
.announce-card.warning { border-right-color: var(--gold); }
.announce-card.danger  { border-right-color: var(--red); }
.announce-card.success { border-right-color: var(--green); }
.announce-card:hover { transform: translateX(-4px); }
.announce-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.announce-card.info    .announce-icon { color: var(--cyan); }
.announce-card.warning .announce-icon { color: var(--gold); }
.announce-card.danger  .announce-icon { color: var(--red); }
.announce-card.success .announce-icon { color: var(--green); }
.announce-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.announce-content { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.announce-date { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ================================================
   الفوتر
   ================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-cyan);
  padding: 60px 40px 30px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-logo { height: 50px; margin-bottom: 16px; }
.footer-brand-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-col-title { font-size: 15px; font-weight: 700; color: var(--cyan); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--cyan); }

/* ================================================
   نافذة الهدية المنبثقة
   ================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: linear-gradient(135deg, #080f20, #050a14);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.85) translateY(30px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 80px rgba(255,215,0,0.15), 0 40px 80px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px; left: 16px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { background: var(--red); color: #fff; border-color: var(--red); }
.modal-emoji { font-size: 80px; margin-bottom: 20px; animation: modalEmoji 0.6s ease-out 0.3s both; }
@keyframes modalEmoji {
  from { transform: scale(0) rotate(-30deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
.modal-title { font-size: 28px; font-weight: 900; margin-bottom: 8px; color: var(--gold); }
.modal-subtitle { font-size: 15px; color: var(--text-muted); margin-bottom: 32px; }
.modal-rewards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.modal-reward {
  padding: 16px 10px;
  background: rgba(255,215,0,0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  animation: rewardPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.modal-reward:nth-child(1) { animation-delay: 0.4s; }
.modal-reward:nth-child(2) { animation-delay: 0.55s; }
.modal-reward:nth-child(3) { animation-delay: 0.7s; }
@keyframes rewardPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.modal-reward .r-icon { font-size: 28px; margin-bottom: 6px; }
.modal-reward .r-val  { font-size: 18px; font-weight: 900; color: var(--gold); }
.modal-reward .r-lbl  { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.modal-robot {
  padding: 24px;
  background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(0,212,255,0.1));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  animation: rewardPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}
.modal-robot img {
  width: 130px;
  height: 145px;
  object-fit: contain;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 20px rgba(255,215,0,0.5));
}
.modal-robot-name { font-size: 20px; font-weight: 800; color: var(--gold); }
.modal-robot-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ================================================
   الجسيمات
   ================================================ */
#particles-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ================================================
   الرسائل والتنبيهات
   ================================================ */
.toast-container {
  position: fixed;
  top: 90px; left: 20px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}
.toast {
  padding: 14px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(20px);
  animation: toastIn 0.4s ease;
  border-right: 4px solid var(--cyan);
}
.toast.success { border-right-color: var(--green); color: var(--green); }
.toast.error   { border-right-color: var(--red);   color: var(--red); }
.toast.info    { border-right-color: var(--cyan);  color: var(--cyan); }
@keyframes toastIn {
  from { transform: translateX(-120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ================================================
   Scroll Reveal
   ================================================ */
.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: 900px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; position: absolute; top: 72px; right: 0; left: 0; background: rgba(5,10,20,0.98); flex-direction: column; padding: 20px; gap: 4px; border-bottom: 1px solid var(--border-cyan); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .section { padding: 70px 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .robots-grid { grid-template-columns: 1fr; max-width: 360px; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-rewards { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 580px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .factions-grid { grid-template-columns: 1fr; }
  .systems-grid { grid-template-columns: 1fr 1fr; }
  .modal { padding: 36px 24px; }
  .modal-rewards { grid-template-columns: 1fr; }
}

/* ================================================
   إصلاح ألوان القوائم المنسدلة في الصفحات الداكنة
   ================================================ */
select,
.form-select,
.admin-select,
.admin-form-input,
.form-input {
  background-color: #071426;
  color: #ffffff;
}

select option,
.form-select option,
.admin-select option,
.admin-form-input option {
  background-color: #071426;
  color: #ffffff;
}

select option:hover,
.form-select option:hover,
.admin-select option:hover,
.admin-form-input option:hover,
select option:checked,
.form-select option:checked,
.admin-select option:checked,
.admin-form-input option:checked {
  background-color: #00d4ff;
  color: #00111f;
}

.btn.disabled,
a.disabled {
  opacity: 0.55;
  pointer-events: auto;
  cursor: not-allowed;
}

