body {
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 22px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.telegram-card {
  width: 100%;
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.print-box {
  background: linear-gradient(180deg, #111, #080808);
  border: 1px solid #242424;
  border-radius: 24px;
  padding: 22px;
}

.print-box h2 {
  font-size: 24px;
  margin-bottom: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.paste-area {
  min-height: 260px;
  background: #050505;
  border: 2px dashed #333;
  border-radius: 20px;
  padding: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.paste-area span {
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.paste-area img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  display: none;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

#enviarBtn {
  width: 100%;
  height: 58px;
  font-size: 17px;
}

#statusMsg {
  margin-top: 16px;
  text-align: center;
  font-weight: 900;
  color: var(--green);
}

.auth-loading {
  opacity: 0;
  pointer-events: none;
}

.auth-ready {
  opacity: 1;
  pointer-events: auto;
}

.free-toggle {
  margin-bottom: 22px;
  padding: 16px 18px;

  display: flex;
  align-items: center;
  gap: 12px;

  background: #080808;
  border: 1px solid #242424;
  border-radius: 16px;

  cursor: pointer;
  user-select: none;

  font-weight: 900;
}

.free-toggle input {
  display: none;
}

.toggle-box {
  width: 46px;
  height: 26px;

  position: relative;

  background: #202020;
  border: 1px solid #333;
  border-radius: 999px;

  transition: 0.2s;
}

.toggle-box::before {
  content: "";

  position: absolute;

  width: 20px;
  height: 20px;

  top: 2px;
  left: 3px;

  background: #777;
  border-radius: 50%;

  transition: 0.2s;
}

.free-toggle input:checked + .toggle-box {
  background: rgba(244, 207, 99, 0.22);
  border-color: rgba(244, 207, 99, 0.55);
}

.free-toggle input:checked + .toggle-box::before {
  transform: translateX(19px);
  background: var(--gold);
}

@media (max-width: 800px) {
  .page {
    justify-content: flex-start;
    padding-top: 28px;
  }

  .form-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .paste-area {
    min-height: 220px;
  }
}
