:root {
  --primary: #c5a46d;
  --secondary: #1e1e1e;
  --dark: #121212;
  --light: #f5f5f5;
  --gray: #8e8e8e;
  --gold-light: #d4b87a;
  --gold-dark: #a78b5e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

::selection {
  background: rgba(18, 18, 18, 0.92); /* رنگ تأکیدی سایت */
  color: var(--primary); /* رنگ تیره تم برای متن */
  text-shadow: 0 0 10px rgba(197, 164, 109, 0.3);
}

::-moz-selection {
  background: rgba(18, 18, 18, 0.92);
  color: var(--primary);
  text-shadow: 0 0 10px rgba(197, 164, 109, 0.3);
}

body {
  background-color: var(--dark);
  color: var(--light);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: url("https://nexvorn.com/assets/images/crossfire-pc-games-android-games-5k-1920x1080-7504.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.overlay {
  background: rgba(18, 18, 18, 0.92);
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid rgba(197, 164, 109, 0.2);
}

.logo {
  font-size: 32px;
  font-weight: 600;
  color: var(--light);
  letter-spacing: 2px;
  position: relative;
}

.logo::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
}

.logo span {
  color: var(--primary);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 40px;
  margin-top: 10px;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.language-selector {
  background: transparent;
  color: var(--gold-dark);
  border: 1px solid var(--gray);
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.login-btn {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: rgba(197, 164, 109, 0.1);
}

.hero {
  text-align: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--primary),
    transparent
  );
}

.hero h1 {
  font-size: 72px;
  margin-bottom: 30px;
  color: var(--light);
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--primary);
  font-weight: 700;
}

.hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.8;
  color: var(--gray);
  font-weight: 300;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  font-size: 48px;
  font-weight: 600;
  color: var(--primary);
  font-family: "Montserrat", sans-serif;
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(197, 164, 109, 0.3);
}

.countdown-label {
  font-size: 14px;
  color: var(--gray);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.registration-section {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  background: rgba(30, 30, 30, 0.7);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(197, 164, 109, 0.1);
}

.registration-image {
  flex: 1;
  background: url("https://nexvorn.com/assets/images/6eGSUannb5nGTim6X4Cjwc.jpg")
    center/cover;
}

.registration-form {
  flex: 1;
  padding: 50px;
}

.form-title {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--light);
  font-weight: 600;
  letter-spacing: 1px;
}

.form-title span {
  color: var(--primary);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--gray);
  font-size: 14px;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  background: rgba(245, 245, 245, 0.05);
  border: 1px solid rgba(197, 164, 109, 0.2);
  border-radius: 4px;
  color: var(--light);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(197, 164, 109, 0.05);
}

.btn {
  display: inline-block;
  background: linear-gradient(to right, var(--gold-light), var(--gold-dark));
  color: var(--secondary);
  border: none;
  padding: 16px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  letter-spacing: 1px;
  margin-top: 10px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(197, 164, 109, 0.3);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 100px 0;
}

.feature-card {
  background: rgba(30, 30, 30, 0.7);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(197, 164, 109, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(30, 30, 30, 0.9);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 25px;
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 20px;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--light);
}

.feature-card p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 15px;
  font-weight: 300;
}

.pre-register-count {
  text-align: center;
  margin: 80px 0;
  font-size: 18px;
  color: var(--gray);
}

.pre-register-count span {
  color: var(--primary);
  font-weight: 600;
  font-size: 32px;
  display: block;
  margin-top: 10px;
}

footer {
  text-align: center;
  padding: 60px 0 40px;
  border-top: 1px solid rgba(197, 164, 109, 0.1);
}

.footer-logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.footer-logo span {
  color: var(--primary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.social-links a {
  color: var(--gray);
  font-size: 18px;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(197, 164, 109, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  color: var(--gray);
  font-size: 13px;
  margin-top: 30px;
}

@media (max-width: 1200px) {
  .hero h1 {
    font-size: 60px;
  }

  .registration-section {
    flex-direction: column;
  }

  .registration-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  header {
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
  }

  .nav-links {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 16px;
  }

  .countdown {
    gap: 15px;
  }

  .countdown-number {
    font-size: 36px;
  }

  .registration-form {
    padding: 30px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 15px;
  }
}

.nexvorn-language-selector {
  position: relative;
  width: 140px;
  z-index: 1000;
  user-select: none;
}

.selector-header {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(197, 164, 109, 0.4);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.selector-header:hover {
  border-color: var(--primary);
}

.current-flag {
  font-size: 18px;
  margin-right: 10px;
  width: 24px;
  text-align: center;
}

.current-language {
  font-weight: 500;
  color: var(--light);
  flex-grow: 1;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.selector-arrow {
  font-size: 12px;
  color: var(--gray);
  transition: transform 0.3s ease;
  margin-left: 8px;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  width: 200px;
  background: rgba(30, 30, 30, 0.98);
  border: 1px solid rgba(197, 164, 109, 0.3);
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  max-height: 500px;
  overflow-y: auto;
}

.nexvorn-language-selector.active .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nexvorn-language-selector.active .selector-arrow {
  transform: rotate(180deg);
}

.language-option {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.language-option:hover {
  background: rgba(197, 164, 109, 0.1);
}

.language-option.selected {
  background: rgba(197, 164, 109, 0.08);
}

.option-flag {
  font-size: 18px;
  width: 24px;
  text-align: center;
  margin-right: 12px;
}

.option-name {
  color: var(--light);
  font-size: 14px;
  flex-grow: 1;
}

.option-check {
  color: var(--primary);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.language-option.selected .option-check {
  opacity: 1;
}

/* Scrollbar styling */
.language-dropdown::-webkit-scrollbar {
  width: 6px;
}

.language-dropdown::-webkit-scrollbar-track {
  background: rgba(30, 30, 30, 0.8);
  border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb {
  background: rgba(197, 164, 109, 0.4);
  border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(197, 164, 109, 0.6);
}

.music-player {
  position: relative;
  z-index: 1000;
}

.music-toggle {
  width: 50px;
  height: 50px;
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(197, 164, 109, 0.4);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.music-toggle:hover {
  border-color: var(--primary);
}

.music-toggle.playing {
  color: var(--primary);
  border-color: var(--primary);
}

.welcome-message {
  text-align: center;
  padding: 30px;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.welcome-message h3 {
  color: #28a745;
  margin-bottom: 20px;
}

.welcome-message p {
  margin: 10px 0;
  font-size: 1.1rem;
  color: #e9ecef;
}

.error-message {
  padding: 10px 15px;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 5px;
  color: #dc3545;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.error-message i {
  margin-right: 10px;
}
