@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  padding: 30px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #e2e2e2;
  position: relative;
  overflow: hidden;
  background: #000; /* fallback */
}

/* Параллакс фон */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 105%;
  height: 105%;
  background: url('/pictures/pic.jpg') no-repeat center center;
  background-size: cover;
  z-index: -3;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* Слой бликов */
.glow-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.05), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(255,255,255,0.03), transparent 50%);
  animation: glowMove 10s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -2;
}

@keyframes glowMove {
  0% {
    transform: translate(-5%, -5%);
  }
  100% {
    transform: translate(5%, 5%);
  }
}


/* Центр формы */
.donate-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 20px;
}

.donate-form {
  width: 100%;
  background-color: rgba(27, 31, 39, 0.4); 
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
}


.donate-form h2 {
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
  color: #ffffff;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.5),
    0 0 10px rgba(255, 255, 255, 0.4),
    0 0 20px rgba(255, 255, 255, 0.3);
  letter-spacing: 1.2px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffffff;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.4),
    0 0 8px rgba(255, 255, 255, 0.3);
}

label i {
  color: #ffffff;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.5),
    0 0 8px rgba(255, 255, 255, 0.4);
}


.form-control {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1.5px solid #444c56;
  background: #2a2f38;
  color: #e0e0e0;
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
}

.form-control::placeholder {
  color: #999;
}

.form-control:focus {
  border-color: #666f7a;
  box-shadow: 0 0 10px rgba(120, 130, 145, 0.3);
  background: #2f333c;
}

input[readonly] {
  cursor: pointer;
  user-select: none;
}

#server,
#paymentMethodInput {
  background: #2a2f38;
  border: 1.5px solid #666f7a;
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 16px;
  color: #ccd2d9;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 25px;
  text-align: center;
}

#server:hover,
#server:focus {
  border-color: #8d9aa6;
  box-shadow: 0 0 10px rgba(140, 150, 160, 0.3);
}

/* Карточки */
.server-cards,
.payment-cards-inline {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 20px 0 30px;
}

.server-card,
.payment-card {
  background: #2e343d;
  border-radius: 16px;
  width: 130px;
  padding: 15px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  text-align: center;
}

.server-card:hover,
.payment-card:hover {
  transform: scale(1.06);
  box-shadow: 0 0 15px rgba(180,180,180,0.15);
}

.server-card img,
.payment-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.server-card span,
.payment-card span {
  font-weight: 600;
  color: #d0d6dc;
  font-size: 16px;
}

.payment-card.selected {
  border: 2px solid #999;
  box-shadow: 0 0 10px rgba(160,160,160,0.2);
}

.limit-text {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 500;
}

.limit-text.green {
  color: #9fffc2;
}

.limit-text.red {
  color: #ff6b6b;
}

button[type="button"],
button[type="submit"] {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 15px;
  background: #0d1b2a;
  border: none;
  border-radius: 15px;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 1px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

button[type="button"]::before,
button[type="submit"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 18px;
  background: linear-gradient(
    270deg,
    #ff0000,
    #ff9900,
    #ffee00,
    #33ff00,
    #00ffee,
    #3300ff,
    #cc00ff,
    #ff0000
  );
  background-size: 800% 800%;
  animation: rainbowGlow 8s linear infinite;
  filter: blur(6px);
}

@keyframes rainbowGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

button:hover {
  background: #101e30;
  color: #00faff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

button i {
  margin-right: 10px;
  font-size: 20px;
}



/* Модалка */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #252a33;
  border-radius: 20px;
  padding: 25px 30px;
  width: 360px;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
  color: #cfd4db;
  text-align: center;
  position: relative;
}

.modal h3 {
  margin-bottom: 25px;
  font-weight: 700;
  color: #dee3e8;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #fff;
}

/* Адаптив */
@media (max-width: 480px) {
  .donate-container {
    padding: 20px 15px;
  }

  .server-cards,
  .payment-cards-inline {
    flex-direction: column;
    gap: 20px;
  }

  .server-card,
  .payment-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
  }

  .server-card img,
  .payment-card img {
    width: 100px;
    height: 80px;
    border-radius: 10px;
  }
}

@media (max-width: 768px) {
 body {
    background-position: center top;
  }

  .donate-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 500px;
  padding: 40px 20px;
}
  .donate-form {
    padding: 20px;
  }

  .donate-form h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  label {
    font-size: 14px;
  }

  .form-control,
  #server {
    font-size: 14px;
    padding: 10px 12px;
  }

  button[type="button"],
  button[type="submit"] {
    padding: 12px;
    font-size: 16px;
  }

  .payment-card,
  .server-card {
    width: 45%;
    padding: 10px;
  }

  .payment-card img,
  .server-card img {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .donate-container {
    padding: 15px;
  }

  .donate-form {
    padding: 15px;
  }

  .donate-form h2 {
    font-size: 20px;
    margin-bottom: 18px;
  }

  label {
    font-size: 13px;
  }

  .form-control,
  #server {
    font-size: 13px;
    padding: 10px;
  }

  button[type="button"],
  button[type="submit"] {
    font-size: 15px;
    padding: 12px;
  }

  .server-cards,
  .payment-cards-inline {
    flex-direction: column;
    gap: 15px;
  }

  .payment-card,
  .server-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    text-align: left;
  }

  .payment-card img,
  .server-card img {
    width: 80px;
    height: 60px;
    object-fit: cover;
  }

  .payment-card span,
  .server-card span {
    font-size: 15px;
  }

  .modal {
    width: 90%;
    padding: 20px;
  }
}

.animated-form {
  opacity: 0;
  transform: scaleY(0) translateY(0);
  transform-origin: center;
  animation: centerReveal 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  will-change: transform, opacity;
}

@keyframes centerReveal {
  0% {
    opacity: 0;
    transform: scaleY(0) translateY(0);
    filter: blur(8px);
  }
  40% {
    opacity: 0.5;
    transform: scaleY(1.1) translateY(0);
    filter: blur(2px);
  }
  70% {
    opacity: 0.9;
    transform: scaleY(0.95) translateY(0);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: scaleY(1) translateY(0);
    filter: blur(0);
  }
}




.input-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.input-wrapper .material-symbols-outlined {
  position: absolute;
  left: 12px;
  top: 35%;
  transform: translateY(-50%);
  color: #cecece;
  font-size: 24px;
  line-height: 1;
  pointer-events: none;
  height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-wrapper input {
  width: 100%;
  padding: 10px 12px 10px 44px; /* отступ слева увеличен */
  font-size: 16px;
  height: 44px;
  line-height: 1.2;
  box-sizing: border-box;
}




  .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
  }



.background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}

.blob {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
  filter: blur(80px);
  animation: moveBlob 20s infinite alternate ease-in-out;
  opacity: 0.7;
  border-radius: 50%;
}

.blob1 {
  top: 10%;
  left: 10%;
  background: #ff0080;
}

.blob2 {
  bottom: 15%;
  right: 20%;
  background: #00bfff;
  animation-delay: 5s;
}

.blob3 {
  top: 50%;
  left: 60%;
  background: #32ff7e;
  animation-delay: 10s;
}

@keyframes moveBlob {
  0% {
    transform: scale(1) translate(0, 0) rotate(0deg);
  }
  100% {
    transform: scale(1.2) translate(50px, -30px) rotate(45deg);
  }
}


/* Убрать стрелки в Chrome, Safari, Edge */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Убрать стрелки в Firefox */
input[type=number] {
  -moz-appearance: textfield;
}


