:root {
  color-scheme: light dark;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  background-color: #05070f;
  color: #e5e7ef;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(41, 87, 255, 0.2), transparent),
    #05070f;
}

a {
  color: inherit;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 64px clamp(16px, 6vw, 120px) 32px;
  align-items: center;
}

.hero__content h1 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__card {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 40px rgba(5, 7, 15, 0.6);
}

.hero__card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 10px;
}

.hero__card li {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #5a6ff3, #4bc2ff);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: inherit;
}

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

main {
  padding: 0 clamp(16px, 6vw, 120px) 64px;
}

#auth-modal {
  display: none; /* скрыт по умолчанию */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
}

#auth-modal .modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

#auth-modal .modal-content {
  position: relative;
  max-width: 400px;
  margin: 100px auto;
  background: rgb(12, 21, 55); /* тёмный почти непрозрачный фон */
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); /* более контрастная тень */
  z-index: 1000;
}

#banned-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  overflow-y: auto;
  padding: 40px 16px;
}

#banned-modal .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
}

#banned-modal .modal-content {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  background: rgb(12, 21, 55);
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  text-align: center;
}

#banned-modal h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  color: #ff869f;
}

#banned-modal p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.7);
}

/* Модальное окно подтверждения удаления */
#delete-confirm-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  overflow-y: auto;
  padding: 40px 16px;
}

#delete-confirm-modal .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
}

#delete-confirm-modal .modal-content {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  background: rgb(12, 21, 55);
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  margin-top: 10vh;
}

#delete-confirm-modal .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

#delete-confirm-modal .close-btn:hover {
  opacity: 1;
}

#delete-confirm-modal h3 {
  margin: 0 0 16px;
  font-size: 1.5rem;
}

#auth-modal .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

.tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
}

.tab {
  border: none;
  background: transparent;
  color: inherit;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tab.active {
  background: rgba(255, 255, 255, 0.15);
}

.forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.form {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.form.active {
  display: flex;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}

input {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px;
  background: rgba(5, 7, 15, 0.6);
  color: inherit;
}

/* Убираем желтый фон автозаполнения */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px rgba(5, 7, 15, 0.6) inset !important;
  -webkit-text-fill-color: #e5e7ef !important;
  transition: background-color 5000s ease-in-out 0s;
}

input:autofill,
input:autofill:hover,
input:autofill:focus,
input:autofill:active {
  box-shadow: 0 0 0 30px rgba(5, 7, 15, 0.6) inset !important;
  -webkit-text-fill-color: #e5e7ef !important;
  transition: background-color 5000s ease-in-out 0s;
}

.status {
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  min-height: 56px;
}

.status.ok {
  border: 1px solid rgba(79, 255, 183, 0.7);
  color: #6ef1b9;
}

.status.error {
  border: 1px solid rgba(255, 86, 120, 0.6);
  color: #ff869f;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.info-grid article {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

footer {
  text-align: center;
  padding: 32px;
  color: rgba(255, 255, 255, 0.6);
}

/* Payment method selection styles */
#payment-methods-container label,
#topup-payment-methods-container label {
  margin-bottom: 0;
}

#payment-methods-container label:hover,
#topup-payment-methods-container label:hover {
  border-color: rgba(90, 111, 243, 0.5);
  background: rgba(90, 111, 243, 0.1);
}

#payment-methods-container input[type="radio"]:checked ~ div,
#topup-payment-methods-container input[type="radio"]:checked ~ div {
  color: #8fa3ff;
}

#payment-methods-container label:has(input[type="radio"]:checked),
#topup-payment-methods-container label:has(input[type="radio"]:checked) {
  border-color: rgba(90, 111, 243, 0.5);
  background: rgba(90, 111, 243, 0.15);
}

@media (max-width: 600px) {
  .hero {
    padding-top: 32px;
  }

}

