* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #ffffff;
  color: #2d2d2d;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  background-image: linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)),
  url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="rgba(230,57,70,0.05)" d="M12.6 2.39c1.73-1.12 4.07-.84 5.62.47 1.55 1.31 2.38 3.33 2.38 5.37v2.68c.7.36 1.3.88 1.68 1.56.65 1.15.52 2.55-.32 3.58-.19.23-.4.45-.64.64 1.55 1.57 1.55 4.12 0 5.69-.65.66-1.53 1.03-2.46 1.03H5.78c-.93 0-1.81-.37-2.46-1.03-1.55-1.57-1.55-4.12 0-5.69-.24-.19-.45-.41-.64-.64-.84-1.03-.97-2.43-.32-3.58.38-.68.98-1.2 1.68-1.56V8.23c0-2.04.83-4.06 2.38-5.37 1.55-1.31 3.89-1.59 5.62-.47l.92.6ZM12 16c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2Z"/></svg>');
  background-size: 400px;
  background-position: center;
  background-repeat: repeat;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Language Selector */
.language-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.language-btn {
  background: #1d3557;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.language-btn:hover {
  background: #e63946;
  transform: translateY(-2px);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  margin-top: 0.5rem;
  display: none;
  width: 160px;
  overflow: hidden;
}

.language-dropdown.active {
  display: block;
}

.language-option {
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-option:hover {
  background: #f0f0f0;
}

.language-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

header {
  text-align: center;
  padding: 4rem 0;
  background: rgba(230,57,70,0.08);
  border-radius: 15px;
  margin-bottom: 3rem;
  border: 1px solid rgba(230,57,70,0.15);
  position: relative;
  overflow: hidden;
}

header::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(230,57,70,0.05) 0%, transparent 70%);
  z-index: -1;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #e63946, #ff4040);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(230,57,70,0.1);
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

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

.benefit-card {
  background: rgba(245,245,245,0.95);
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.benefit-icon {
  font-size: 2.5rem;
  color: #e63946;
  margin-bottom: 1rem;
}

.resources {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.resource-link {
  padding: 1.5rem 3rem;
  background: linear-gradient(45deg, #e63946, #d62828);
  color: white;
  text-decoration: none;
  border-radius: 15px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 4px 15px rgba(230,57,70,0.2);
}

.telegram-btn {
  padding: 1.5rem 3rem;
  background: linear-gradient(45deg, #457b9d, #1d3557);
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(29,53,87,0.1);
}

.resource-link:hover,
.telegram-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Staking Periods Section */
.staking-periods {
  background: rgba(245,245,245,0.95);
  border-radius: 15px;
  padding: 3rem;
  margin: 4rem 0;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.staking-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #e63946;
}

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

.periods-grid.highlight {
  animation: pulseOutline 0.9s ease;
}

@keyframes pulseOutline {
  0% { box-shadow: 0 0 0 0 rgba(230,57,70,0.0); }
  50% { box-shadow: 0 0 0 6px rgba(230,57,70,0.2); }
  100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.0); }
}

.period-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.period-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.period-card.selected {
  border-color: #e63946;
  background: linear-gradient(135deg, #fff, #f8f9fa);
}

.period-card.selected::before {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 25px;
  height: 25px;
  background: #e63946;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.period-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1d3557;
  margin-bottom: 0.5rem;
}

.period-duration {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.period-apr {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e63946;
  margin-bottom: 0.5rem;
}

.period-note {
  font-size: 0.8rem;
  color: #888;
}

/* Registration Form Styles */
.registration-section {
  background: rgba(245,245,245,0.95);
  border-radius: 15px;
  padding: 3rem;
  margin: 4rem 0;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.form-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #e63946;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-input:focus {
  border-color: #e63946;
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

.submit-btn {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(45deg, #e63946, #d62828);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 10px rgba(230,57,70,0.3);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}

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

.notification {
  padding: 1.2rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  text-align: center;
  display: none;
  font-weight: 500;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.loading {
  background-color: #cce5ff;
  color: #004085;
  border: 1px solid #b8daff;
}

.instructions {
  background: rgba(245,245,245,0.95);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.instructions h3 {
  color: #e63946;
  margin-bottom: 1rem;
}

.instructions ol {
  padding-left: 1.5rem;
}

.instructions li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  .resources {
    flex-direction: column;
    width: 100%;
  }
  .resource-link,
  .telegram-btn {
    width: 100%;
    justify-content: center;
  }
  .registration-section,
  .staking-periods {
    padding: 1.5rem;
  }
  .form-row,
  .periods-grid {
    grid-template-columns: 1fr;
  }
  .language-selector {
    top: 10px;
    right: 10px;
  }
  .language-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}


