:root {
  --primary-blue: #2c5282;
  --secondary-blue: #4299e1;
  --accent-grey: #718096;
  --light-grey: #e2e8f0;
  --dark-grey: #1a202c;
  --white: #ffffff;
  --success: #48bb78;
  --warning: #ed8936;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-grey);
  line-height: 1.7;
  background: var(--white);
}

.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand i {
  color: var(--secondary-blue);
}

.nav-link {
  color: var(--accent-grey);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--secondary-blue);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 70%;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  border: none;
  padding: 0.6rem 1.8rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 82, 130, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(44, 82, 130, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 0.6rem 1.8rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--primary-blue);
  border: none;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
  color: var(--primary-blue);
}

.hero-section {
  padding: 80px 0 100px;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 95, 0.95) 0%,
    rgba(44, 82, 130, 0.95) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: url(../img/1.png),
    radial-gradient(
      circle at 30% 40%,
      rgba(16, 185, 129, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(168, 85, 247, 0.1) 0%,
      transparent 50%
    );

  background-size: cover, auto, auto;

  background-position: center, center, center;

  background-repeat: no-repeat;

  animation: heroGlow 15s ease-in-out infinite;
  z-index: 0;
}

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

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section p {
  font-size: 1.3rem;
  color: var(--light-grey);
  margin-bottom: 2rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  color: var(--white);
  font-weight: 600;
  margin: 0.5rem;
  backdrop-filter: blur(10px);
}

.trust-badge i {
  color: var(--success);
}

.section {
  padding: 80px 0;
  background: var(--white);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--accent-grey);
  text-align: center;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--white);
  border: 2px solid var(--light-grey);
  border-radius: 12px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(44, 82, 130, 0.2);
  border-color: var(--secondary-blue);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--accent-grey);
  line-height: 1.8;
}

.stats-section {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  padding: 60px 0;
  color: var(--white);
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

.game-card {
  background: linear-gradient(135deg, var(--white), var(--light-grey));
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-blue);
  box-shadow: 0 15px 40px rgba(66, 153, 225, 0.3);
}

.game-icon {
  font-size: 4rem;
  color: var(--secondary-blue);
  margin-bottom: 1rem;
}

.game-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.faq-section {
  background: var(--light-grey);
}

.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  background: var(--white);
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.5rem;
  border: none;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  color: var(--white);
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body {
  background: var(--white);
  padding: 1.5rem;
  color: var(--accent-grey);
  line-height: 1.8;
}

.cta-section {
  background: linear-gradient(135deg, var(--dark-grey), var(--primary-blue));
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.page-header {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

.content-card {
  background: var(--white);
  border: 2px solid var(--light-grey);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.content-card:hover {
  border-color: var(--secondary-blue);
  box-shadow: 0 8px 25px rgba(66, 153, 225, 0.2);
}

.content-card h3 {
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.content-card i {
  color: var(--secondary-blue);
  font-size: 1.8rem;
}

.warning-box {
  background: linear-gradient(
    135deg,
    rgba(237, 137, 54, 0.1),
    rgba(237, 137, 54, 0.05)
  );
  border: 2px solid var(--warning);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.warning-box h3 {
  color: #c05621;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.warning-box ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.warning-box li {
  margin-bottom: 0.8rem;
  color: var(--accent-grey);
}

.form-label {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.form-control {
  border: 2px solid var(--light-grey);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 0.2rem rgba(66, 153, 225, 0.25);
}

.form-select {
  border: 2px solid var(--light-grey);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-select:focus {
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 0.2rem rgba(66, 153, 225, 0.25);
}

.input-group-text {
  background: var(--light-grey);
  border: 2px solid var(--light-grey);
  border-right: none;
  color: var(--accent-grey);
}

.input-group .form-control {
  border-left: none;
}

.input-group:focus-within .input-group-text {
  border-color: var(--secondary-blue);
  background: rgba(66, 153, 225, 0.1);
}

.login-container,
.register-container {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.register-container {
  max-width: 600px;
}

.login-card,
.register-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.login-header,
.register-header {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
}

.register-header {
  padding: 2.5rem 2rem;
}

.login-header i,
.register-header i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.register-header i {
  font-size: 3.5rem;
}

.login-header h1,
.register-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.login-header p,
.register-header p {
  opacity: 0.9;
  margin: 0;
}

.login-body,
.register-body {
  padding: 2.5rem;
}

.alert {
  border-radius: 10px;
  border: none;
  padding: 1rem;
}

.alert-warning {
  background: rgba(237, 137, 54, 0.1);
  color: #c05621;
  border-left: 4px solid var(--warning);
}

.age-verification {
  background: linear-gradient(
    135deg,
    rgba(237, 137, 54, 0.1),
    rgba(237, 137, 54, 0.05)
  );
  border: 2px solid var(--warning);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.age-verification h3 {
  color: #c05621;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.age-verification p {
  color: var(--accent-grey);
  margin: 0;
  line-height: 1.6;
}

.terms-box {
  background: var(--light-grey);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.form-check-label {
  color: var(--accent-grey);
  line-height: 1.6;
}

.form-check-label a {
  color: var(--secondary-blue);
  font-weight: 600;
  text-decoration: none;
}

.form-check-label a:hover {
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--accent-grey);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--light-grey);
}

.divider span {
  padding: 0 1rem;
  font-size: 0.9rem;
}

.social-login {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-social {
  flex: 1;
  padding: 0.8rem;
  border: 2px solid var(--light-grey);
  border-radius: 10px;
  background: var(--white);
  color: var(--accent-grey);
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-social:hover {
  border-color: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.register-link,
.login-link {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light-grey);
  color: var(--accent-grey);
}

.register-link a,
.login-link a {
  color: var(--secondary-blue);
  font-weight: 600;
  text-decoration: none;
}

.register-link a:hover,
.login-link a:hover {
  text-decoration: underline;
}

.back-home {
  text-align: center;
  margin-top: 1.5rem;
}

.back-home a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.back-home a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.password-strength {
  height: 4px;
  background: var(--light-grey);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
}

.help-section {
  background: linear-gradient(135deg, var(--dark-grey), var(--primary-blue));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.help-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.help-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.help-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.help-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.help-card h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.help-card p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.tool-list {
  list-style: none;
  padding: 0;
}

.tool-list li {
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--light-grey);
  border-radius: 8px;
  display: flex;
  align-items: start;
  gap: 1rem;
}

.tool-list i {
  color: var(--success);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.mpc-footer {
  background: var(--dark-grey);
  color: var(--light-grey);
  padding: 3rem 0 1rem;
}

.mpc-footer a {
  color: var(--light-grey);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mpc-footer a:hover {
  color: var(--secondary-blue);
}

.label-nav {
  color: var(--secondary-blue);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.nav-pages a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.95rem;
}

.logo-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
}

.logo-trust img {
  height: 50px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logo-trust img:hover {
  opacity: 1;
}

.age18 {
  background: var(--warning);
  color: var(--white);
  font-weight: 800;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.content-section {
  padding: 60px 0;
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .login-header,
  .register-header {
    padding: 2rem 1.5rem;
  }

  .login-header h1,
  .register-header h1 {
    font-size: 1.5rem;
  }

  .login-body,
  .register-body {
    padding: 1.5rem;
  }
}

body.login-page,
body.register-page {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #4a5568 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

body.register-page {
  display: block;
  align-items: initial;
}

body.home-page {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #4a5568 100%);
  min-height: 100vh;
}

.age-verify-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 32, 44, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.age-verify-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.age-verify-card i {
  font-size: 4rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--dark-grey);
  color: var(--white);
  padding: 1.2rem;
  border-radius: 12px;
  z-index: 9998;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}
