:root {
  --primary: #0f1a35;
  --primary-light: #1a2d5a;
  --primary-medium: #2a4080;
  --accent: #4a90d9;
  --accent-light: #6bb3ff;
  --accent-dark: #2d6bb3;
  --gold: #c9a227;
  --bg-dark: #080d1a;
  --bg-card: rgba(15, 26, 53, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border: rgba(74, 144, 217, 0.3);
  --border-light: rgba(255, 255, 255, 0.1);
  --white: #ffffff;
  --text: #e8ecf4;
  --text-muted: rgba(232, 236, 244, 0.7);
  --text-dim: rgba(232, 236, 244, 0.5);
  --success: #22c55e;
  --error: #ef4444;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.bg-pattern {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(42, 64, 128, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(74, 144, 217, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(15, 26, 53, 0.9) 0%, var(--bg-dark) 70%);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  background: rgba(8, 13, 26, 0.95);
  backdrop-filter: blur(20px);
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.nav-logo img {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  background: white;
}

.nav-logo span {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}


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

.nav-link {
  padding: 10px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(74, 144, 217, 0.15);
  color: var(--accent);
}

.nav-link.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
}

.nav-dropdown { position: relative; }

.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

.dropdown-btn:hover { background: rgba(74, 144, 217, 0.15); color: var(--accent); }
.dropdown-btn svg { width: 12px; height: 12px; transition: transform 0.3s; }
.nav-dropdown:hover .dropdown-btn svg { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: 100%; right: 0;
  background: rgba(15, 26, 53, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  padding: 10px;
  border: 1px solid var(--border);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(74, 144, 217, 0.2);
  color: var(--accent);
  transform: translateX(-5px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
}

.hero-content { text-align: center; max-width: 800px; }

.hero-logo {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 50px rgba(74, 144, 217, 0.4);
  margin: 0 auto 30px;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px;
  object-fit: contain;
  animation: logoFloat 4s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-title span {
  display: block;
  font-size: 0.6em;
  color: var(--accent);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(74, 144, 217, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(74, 144, 217, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--white);
}

/* Sections */
.section {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: 50px; }

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--white), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
}

/* Name Generator */
.name-generator {
  background: linear-gradient(145deg, rgba(26, 45, 90, 0.8), rgba(15, 26, 53, 0.9));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 50px;
  backdrop-filter: blur(20px);
  max-width: 650px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  position: relative;
}

.name-generator::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.name-gen-form { display: flex; flex-direction: column; gap: 25px; }
.name-gen-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.name-gen-group { display: flex; flex-direction: column; gap: 8px; }
.name-gen-group label { font-size: 14px; font-weight: 600; color: var(--text-muted); }

.name-gen-input, .name-gen-select {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-light);
  border-radius: 14px;
  font-size: 16px;
  color: var(--text);
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.name-gen-input:focus, .name-gen-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.2);
}

.code-input-wrapper { position: relative; display: flex; align-items: center; }
.code-prefix {
  position: absolute;
  right: 20px;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}
.code-input-wrapper .name-gen-input { padding-right: 55px; font-weight: 700; letter-spacing: 2px; }

.name-gen-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a90d9' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 15px center;
  background-size: 20px;
  background-color: rgba(0, 0, 0, 0.3);
}

.name-gen-select option { background-color: #0f1a35; color: #e8ecf4; }

.name-gen-btn {
  padding: 16px 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  border-radius: 12px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(74, 144, 217, 0.4);
}

.name-gen-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(74, 144, 217, 0.5);
}

.name-gen-result {
  display: none;
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(74, 144, 217, 0.15), rgba(74, 144, 217, 0.05));
  border: 2px solid rgba(74, 144, 217, 0.4);
  border-radius: 16px;
}

.name-gen-result.show { display: block; animation: fadeInUp 0.4s ease; }

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

.name-gen-result-label {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.name-gen-result-row { display: flex; gap: 12px; align-items: center; }

.name-gen-result-text {
  flex: 1;
  padding: 18px 22px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(74, 144, 217, 0.3);
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  font-family: inherit;
  text-align: center;
}

.name-gen-copy-btn {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  border-radius: 12px;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.name-gen-copy-btn:hover { transform: scale(1.08); }
.name-gen-copy-btn.copied { background: linear-gradient(135deg, var(--success), #16a34a); }

/* Reports */
.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.report-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

.report-tab {
  flex: 1;
  min-width: 150px;
  padding: 14px 20px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.report-tab:hover { background: rgba(74, 144, 217, 0.1); color: var(--accent); }
.report-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  border-color: transparent;
}

.report-content { padding: 30px; }
.report-panel { display: none; }
.report-panel.active { display: block; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--text-muted); }

.form-input {
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
  resize: vertical;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

textarea.form-input { min-height: 80px; }

.generate-btn {
  width: 100%;
  margin-top: 25px;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  border-radius: 12px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.generate-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(74, 144, 217, 0.4); }

.report-result {
  display: none;
  margin-top: 25px;
  padding: 20px;
  background: rgba(74, 144, 217, 0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.report-result.show { display: block; }
.report-result label { font-size: 14px; color: var(--text-muted); display: block; margin-bottom: 10px; }
.report-result textarea {
  width: 100%;
  min-height: 300px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

.copy-btn {
  margin-top: 15px;
  padding: 12px 25px;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}

.copy-btn:hover { background: var(--accent-dark); }

/* Protocols */
.protocols-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.protocol-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.protocol-header { margin-bottom: 25px; }
.protocol-title { font-size: 22px; font-weight: 700; color: var(--accent); }

.codes-list, .waves-list { display: flex; flex-direction: column; gap: 12px; }

.code-item, .wave-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.code-num, .wave-num {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.code-text, .wave-text { font-size: 15px; color: var(--text); }

/* Video */
.video-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
}

.video-container video {
  width: 100%;
  display: block;
  background: #000;
}

/* Map */
.map-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
  border: 2px solid var(--border);
}

.map-container:hover { transform: scale(1.02); }
.map-container img { width: 100%; display: block; }

/* Discord */
.discord-banner {
  background: linear-gradient(135deg, #5865f2 0%, #404eed 100%);
  border-radius: 24px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 20px 60px rgba(88, 101, 242, 0.3);
  flex-wrap: wrap;
}

.discord-icon {
  width: 100px; height: 100px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.discord-info { flex: 1; text-align: right; }
.discord-title { font-size: 28px; margin-bottom: 10px; color: var(--white); font-weight: 700; }
.discord-desc { color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; font-size: 16px; }

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.discord-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: rgba(8, 13, 26, 0.95);
  border-top: 1px solid var(--border);
  padding: 60px 20px 30px;
  text-align: center;
}

.footer-content { max-width: 800px; margin: 0 auto; }

.footer-logo {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  margin-bottom: 20px;
  object-fit: contain;
  background: white;
  padding: 10px;
}

.footer-title { font-size: 22px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.footer-text { color: var(--text-muted); margin-bottom: 25px; }

.footer-links { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; margin-bottom: 25px; }
.footer-link { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-link:hover { color: var(--accent); }

.footer-divider { width: 100%; height: 1px; background: var(--border-light); margin: 25px 0; }
.footer-bottom { font-size: 13px; color: var(--text-dim); }
.footer-credit {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(74, 144, 217, 0.2), rgba(74, 144, 217, 0.05));
  border: 1px solid rgba(74, 144, 217, 0.3);
  border-radius: 20px;
  color: var(--accent);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  padding: 16px 28px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s ease;
  border: 1px solid var(--success);
  color: var(--text);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  padding: 40px;
}

.lightbox.show { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */

@media (max-width: 900px) {
  .navbar { padding: 0 20px; }
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: calc(100vh - 70px);
    background: rgba(8, 13, 26, 0.98);
    flex-direction: column;
    padding: 30px;
    gap: 15px;
    transition: right 0.3s;
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .mobile-menu-btn { display: block; }
  .name-gen-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .protocols-container { grid-template-columns: 1fr; }
  
  .discord-banner {
    padding: 30px;
    flex-direction: column;
    text-align: center;
  }
  .discord-info { text-align: center; }
  .discord-icon { width: 80px; height: 80px; }
}

