/* ============================
   RESET / BASE
=============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: #050507;
  color: #fff;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* ============================
   BACKGROUND
=============================== */
.bg-grid {
  position: fixed;
  inset: -200px;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  transform: translate3d(0,0,0);
  z-index: -2;
}

body::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(120,120,160,0.25), transparent 70%);
  top: -140px;
  right: -140px;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/textures/grain.png");
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}

/* ============================
   LOGIN CARD
=============================== */
.login-card {
  width: 350px;
  max-width: 94vw;
  padding: 28px 26px 24px;
  background: rgba(14,14,18,0.9);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.85),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  animation: fadeUp .6s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-logo {
  width: 105px;
  display: block;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.15));
}

.login-title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #f0f0f2;
}

/* ============================
   INPUTS
=============================== */
.input-box {
  margin-bottom: 16px;
  position: relative;
}

.input-box input {
  width: 100%;
  padding: 13px 44px 13px 13px;
  background: #131318;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  color: #f4f4f6;
  font-size: 14px;
  transition: .25s ease;
}

.input-box input::placeholder {
  color: #8f8f93;
}

.input-box input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.25);
  background: #18181f;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
}

.input-box .icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: .55;
  pointer-events: none;
  color: #c4c4c8;
}

/* ============================
   reCAPTCHA
=============================== */
.captcha-wrapper {
  transform: scale(0.8);
  transform-origin: center;
  margin: -10px auto -4px;
  filter: brightness(0.9);
}

/* ============================
   BUTTONS
=============================== */
.btn-login {
  width: 100%;
  padding: 13px;
  margin-top: 4px;
  border-radius: 12px;
  border: none;
  background: #ffffff;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: .22s ease;
}

.btn-login:hover:not(:disabled) {
  background: #e9e9e9;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255,255,255,0.18);
}

.btn-login:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-login.is-loading {
  opacity: .7;
  cursor: wait;
}

.btn-secondary {
  width: 100%;
  padding: 11px;
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #111117;
  color: #d6d6da;
  font-size: 13px;
  cursor: pointer;
  transition: .2s ease;
}

.btn-secondary:hover {
  background: #181822;
  box-shadow: 0 5px 16px rgba(0,0,0,0.85);
}

/* ============================
   MESSAGES
=============================== */
.msg-error {
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
  color: #ff6666;
}

.msg-inline {
  display: block;
  font-size: 11px;
  margin-top: 2px;
  min-height: 14px;
  color: #ffb366;
}

.msg-inline--ok {
  color: #6ee7b7;
}

.msg-inline--err {
  color: #ff6666;
}

/* ============================
   MODAL BASE
=============================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.modal.hidden {
  display: none;
}

/* ============================
   MODAL CHECKOUT – COMPACTO
=============================== */
.modal-checkout {
  width: 340px;
  max-width: 95vw;
  background: radial-gradient(circle at top, rgba(255,255,255,0.06), rgba(14,14,18,0.98));
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.85),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

.modal-title {
  font-size: 15px;
  font-weight: 500;
  margin: 2px 26px 10px 2px;
  opacity: .9;
}

.modal-close {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 18px;
  background: rgba(0,0,0,0.7);
  border-radius: 999px;
  padding: 0 7px 2px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #f5f5f5;
  cursor: pointer;
  transition: .18s ease;
}

.modal-close:hover {
  background: rgba(255,255,255,0.14);
}

/* ============================
   STEPS
=============================== */
.checkout-step {
  display: none;
}

.checkout-step--active {
  display: block;
}

.checkout-step-text {
  font-size: 13px;
  color: #e0e0e0;
  margin-bottom: 12px;
}

/* escolha ADQUIRIR / RENOVAR */
.checkout-choice-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-pill-primary,
.btn-pill-outline {
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  transition: .18s ease;
}

.btn-pill-primary {
  background: linear-gradient(135deg, #ffffff, #dcdcdc);
  color: #000;
  box-shadow:
    0 10px 24px rgba(0,0,0,0.75),
    0 0 0 1px rgba(255,255,255,0.45);
}

.btn-pill-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(0,0,0,0.9),
    0 0 0 1px rgba(255,255,255,0.75);
}

.btn-pill-outline {
  background: rgba(10,10,12,0.9);
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 6px 18px rgba(0,0,0,0.8);
}

.btn-pill-outline:hover {
  background: rgba(255,255,255,0.06);
}

/* ============================
   FORM STEPS
=============================== */
.step-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.checkout-step label {
  display: block;
  font-size: 12px;
  color: #dedede;
  margin-bottom: 4px;
  margin-top: 6px;
}

.checkout-step input {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #101015;
  color: #fff;
  font-size: 13px;
}

/* planos */
.plan-box {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-option {
  width: 100%;
  text-align: left;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12,12,16,0.96);
  cursor: pointer;
  transition: .16s ease;
}

.plan-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.plan-option-title {
  font-size: 12px;
  font-weight: 600;
  color: #bfbfbf;
}

.plan-option-price {
  font-size: 12px;
  font-weight: 600;
  color: #b9b9b9;
}

.plan-option-desc {
  font-size: 11px;
  color: #bfbfbf;
}

.plan-option:hover {
  background: #babadad5;
}

.plan-option.selected {
  border-color: #ffffff7c;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.7),
    0 8px 20px #ffffff6c;
}

/* botão principal dentro do modal (PIX / gerar) */
.btn-primary {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #000;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: .18s ease;
}

.btn-primary:hover {
  background: #eaeaea;
}

/* botão de voltar step */
.btn-link-step {
  margin-top: 6px;
  background: none;
  border: none;
  color: #bdbdbd;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 0;
}

/* ============================
   STEP PIX
=============================== */
.checkout-step#checkoutStepPix {
  text-align: center;
}

.pix-qr {
  width: 190px;
  margin: 4px auto 0;
  display: block;
}

.pix-code {
  width: 100%;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #101015;
  color: #f2f2f2;
  font-size: 12px;
  margin-top: 10px;
}

.status {
  margin-top: 10px;
  font-size: 12px;
  color: #dadde0;
}

/* botão de copiar reutiliza .btn-secondary, só ajusta espaçamento */
#copyPix.btn-secondary {
  margin-top: 10px;
  font-size: 13px;
  padding: 9px;
}

/* ============================
   RESPONSIVO
=============================== */
@media (max-width: 480px) {
  .login-card {
    width: 90%;
    padding: 24px 18px 20px;
  }

  .modal-checkout {
    width: 92%;
    padding: 16px 14px 14px;
  }
}




/* 
-------------------------------------------------------------------------------------------------
=================================================================================================
VERSÃO MOBILE VERSÃO MOBILE VERSÃO MOBILE VERSÃO MOBILE VERSÃO MOBILE VERSÃO MOBILE VERSÃO MOBILE 
=================================================================================================
-------------------------------------------------------------------------------------------------
*/

/* ============================
   MOBILE FIRST – ULTRA OTIMIZADO
=============================== */
@media (max-width: 480px) {

  /* ===== BODY ===== */
  body {
    height: 100svh;
    padding: 12px;
    align-items: flex-start;
    overflow-y: auto;
  }

  body::before {
    width: 360px;
    height: 360px;
    top: -120px;
    right: -120px;
    filter: blur(60px);
  }

  .bg-grid {
    background-size: 48px 48px;
    opacity: 0.25;
  }

  /* ===== LOGIN CARD ===== */
  .login-card {
    width: 100%;
    max-width: 420px;
    padding: 22px 18px 20px;
    border-radius: 16px;
    margin-top: auto;
    margin-bottom: auto;
    backdrop-filter: blur(8px);
  }

  .login-logo {
    width: 92px;
    margin-bottom: 14px;
  }

  .login-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  /* ===== INPUTS ===== */
  .input-box input {
    padding: 14px 44px 14px 14px;
    font-size: 15px;
    border-radius: 12px;
  }

  .input-box .icon {
    font-size: 17px;
    right: 16px;
  }

  /* ===== CAPTCHA ===== */
  .captcha-wrapper {
    transform: scale(0.9);
    margin: -4px auto 6px;
  }

  /* ===== BOTÕES ===== */
  .btn-login {
    padding: 15px;
    font-size: 15px;
    border-radius: 14px;
  }

  .btn-secondary {
    padding: 13px;
    font-size: 14px;
    border-radius: 14px;
  }

  /* remove hover fake no mobile */
  .btn-login:hover,
  .btn-secondary:hover {
    transform: none;
    box-shadow: none;
  }

  /* ===== MODAL BASE ===== */
  .modal {
    padding: 10px;
    align-items: flex-end;
  }

  /* ===== MODAL CHECKOUT ===== */
  .modal-checkout {
    width: 100%;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 18px 16px 16px;
    animation: slideUp .35s ease;
  }

  @keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }

  .modal-title {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .modal-close {
    top: 10px;
    right: 12px;
    font-size: 20px;
    padding: 2px 9px;
  }

  /* ===== STEPS ===== */
  .checkout-step-text {
    font-size: 14px;
  }

  .step-title {
    font-size: 15px;
  }

  /* ===== FORM ===== */
  .checkout-step input {
    padding: 12px;
    font-size: 14px;
    border-radius: 12px;
  }

  .checkout-step label {
    font-size: 13px;
  }

  /* ===== PLANOS ===== */
  .plan-option {
    padding: 12px;
    border-radius: 12px;
  }

  .plan-option-title,
  .plan-option-price {
    font-size: 13px;
  }

  .plan-option-desc {
    font-size: 12px;
  }

  /* ===== BOTÃO PRINCIPAL ===== */
  .btn-primary {
    padding: 14px;
    font-size: 15px;
  }

  .btn-link-step {
    font-size: 13px;
  }

  /* ===== PIX ===== */
  .pix-qr {
    width: 210px;
  }

  .pix-code {
    padding: 12px;
    font-size: 13px;
  }

  #copyPix.btn-secondary {
    padding: 12px;
    font-size: 14px;
  }
}
