:root {
  --primary-gradient: linear-gradient(
    135deg,
    #6366f1 0%,
    #8b5cf6 50%,
    #ec4899 100%
  );
  --secondary-gradient: linear-gradient(
    135deg,
    #1e1b4b 0%,
    #312e81 50%,
    #581c87 100%
  );
  --background-dark: #0f0f23;
  --background-darker: #0a0a1a;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-blue: #6366f1;
}

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

body {
  font-family: "Familjen Grotesk", sans-serif;
  background: var(--background-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  padding: 0 !important;
  max-width: unset !important;
}

a {
  color: inherit;
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#lottery-balls-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.nav {
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-brand .logo {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-purple);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

.main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  position: relative;
  background-image: url("../lucky-graphics/banners/1.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.tools-section,
.responsible-section,
.experience-sections,
.responsible-gaming {
  background-image: url("../lucky-graphics/banners/2.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-content {
  z-index: 10;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.cta-button {
  background: var(--primary-gradient);
  border: none;
  padding: 1rem 3rem;
  border-radius: 50px;
  color: white;
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.disclaimer {
  background: var(--primary-gradient);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.features {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--secondary-gradient);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.feature-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-purple);
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.responsible-gaming {
  padding: 4rem 0;
}

.responsible-gaming h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.responsible-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.smart-play {
  padding: 4rem 0;
}

.smart-play h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--accent-purple);
}

.smart-play p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.experience-sections {
  padding: 4rem 0;
}

.experience-card {
  background: var(--secondary-gradient);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.experience-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent-purple);
}

.experience-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.form-section {
  padding: 4rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.form-container {
  max-width: 400px;
  margin: 0 auto;
  background: var(--secondary-gradient);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.form-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--accent-purple);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  background: rgba(15, 15, 35, 0.5);
  color: var(--text-primary);
  font-family: "Familjen Grotesk", sans-serif;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.form-button {
  background: var(--primary-gradient);
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  color: white;
  font-family: "Familjen Grotesk", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.form-button:hover {
  transform: translateY(-1px);
}

.form-link {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-secondary);
}

.form-link a {
  color: var(--accent-purple);
  text-decoration: none;
}

.page-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-content {
  padding: 2rem 0 4rem;
}

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

.content-text h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--accent-purple);
}

.content-text h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--accent-purple);
}

.content-text p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.responsible-section {
  padding: 4rem 0;
}

.responsible-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-purple);
}

.responsible-section > p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tip-card {
  background: var(--secondary-gradient);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.tip-card h3 {
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
}

.tip-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.understanding-section {
  padding: 4rem 0;
  background: var(--background-darker);
}

.understanding-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-purple);
}

.understanding-section > p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
}

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

.tips-item {
  padding: 12px;
  margin-bottom: 1rem;
  background: var(--secondary-gradient);
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  overflow: hidden;
}

.tips-header {
  width: 100%;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tips-header:hover {
  background: rgba(139, 92, 246, 0.1);
}

.tips-header::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent-purple);
  transition: transform 0.3s ease;
}

.tips-header.active::after {
  transform: rotate(45deg);
}

.tips-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.tips-content.active {
  max-height: 200px;
}

.tips-content p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tools-section {
  padding: 4rem 0;
}

.tools-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-purple);
}

.tools-section > p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tool-card {
  background: var(--secondary-gradient);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  text-align: center;
}

.tool-card h3 {
  color: var(--accent-purple);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.tool-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.support-section {
  padding: 4rem 0;
  background: var(--background-darker);
}

.support-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-purple);
}

.support-section > p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.support-card {
  background: var(--secondary-gradient);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  text-align: center;
}

.support-card h3 {
  color: var(--accent-purple);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.support-card p {
  color: var(--text-secondary);
  font-weight: 600;
}

.commitment-section {
  padding: 4rem 0;
}

.commitment-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--accent-purple);
}

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.commitment-card {
  background: var(--secondary-gradient);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.commitment-card h3 {
  color: var(--accent-purple);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.commitment-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-section {
  text-align: center;
}

.contact-section h3 {
  color: var(--accent-purple);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-button {
  background: var(--primary-gradient);
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  color: white;
  font-family: "Familjen Grotesk", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.contact-button:hover {
  transform: translateY(-2px);
}

.success-section {
  padding: 4rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-content {
  text-align: center;
}

.success-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.back-button {
  display: inline-block;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.back-button:hover {
  transform: translateY(-2px);
}

.footer-brand .logo {
  height: 40px;
  width: auto;
}

.footer-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-notice {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-notice p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-purple);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--secondary-gradient);
  padding: 1rem;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  font-family: "Familjen Grotesk", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cookie-btn.accept {
  background: var(--accent-purple);
  color: white;
}

.cookie-btn.decline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--background-darker);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .experience-grid {
    grid-template-columns: 1fr !important;
  }

  .tools-grid {
    grid-template-columns: 1fr !important;
  }

  .support-grid {
    grid-template-columns: 1fr !important;
  }

  .commitment-grid {
    grid-template-columns: 1fr !important;
  }

  .tips-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-logos {
    gap: 1rem;
    flex-direction: column;
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

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

  .cta-button {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }

  .form-container {
    padding: 1rem;
    margin: 0;
  }

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

  .content-text h1 {
    font-size: 2rem;
  }

  .responsible-section h2,
  .understanding-section h2,
  .tools-section h2,
  .support-section h2,
  .commitment-section h2 {
    font-size: 1.5rem;
  }
}

.age-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.age-modal-content {
  background: black;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  margin: 1rem;
}

.age-modal-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.age-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-confirm {
  background: #05c34b;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.btn-deny {
  background: #dc2626;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.age-error {
  margin-top: 1rem;
}
