/* Starlink - Estilos globais */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

/* ===================== HOME ===================== */
.home {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}
.home__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.home__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.4), transparent);
  z-index: 1;
}
.home__header {
  position: relative; z-index: 2;
  max-width: 1400px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.home__logo { height: 22px; width: auto; }
.btn-white {
  background: #fff; color: #000;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px; font-weight: 500;
  transition: background .15s ease;
  display: inline-block;
}
.btn-white:hover { background: rgba(255,255,255,0.9); }
.home__main {
  position: relative; z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px 32px 128px;
}
.home__content { max-width: 640px; color: #fff; }
.home__title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.home__desc {
  margin-top: 32px;
  font-size: 16px;
  color: rgba(255,255,255,0.9);
}
.home__cta { margin-top: 40px; padding: 12px 24px; }
@media (max-width: 768px) {
  .home__title { font-size: 36px; }
  .home__main { padding: 60px 20px 80px; }
  .home__header { padding: 14px 18px; margin: 12px; }
}

/* ===================== CHECKOUT ===================== */
.checkout { background: #000; color: #fff; min-height: 100vh; }
.checkout__header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.checkout__logo { height: 22px; width: auto; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: rgba(255,255,255,0.8);
}
.lang-dot {
  display: inline-block; width: 16px; height: 16px;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 50%;
}
.total-price { color: #4fc3f7; }
.checkout__main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
}
@media (max-width: 900px) {
  .checkout__main { grid-template-columns: 1fr; gap: 40px; }
}
.left h1 { font-size: 30px; font-weight: 600; }
.left p { font-size: 14px; color: rgba(255,255,255,0.8); }
.mt-4 { margin-top: 16px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; }
.mt-6 { margin-top: 24px; } .mt-3 { margin-top: 12px; } .mt-2 { margin-top: 8px; } .mt-1 { margin-top: 4px; }
.underline { text-decoration: underline; text-underline-offset: 2px; }
.font-semibold { font-weight: 600; }
.plan {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 24px;
  margin-top: 32px;
}
.plan__head { text-align: center; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.plan__head h3 { font-size: 16px; font-weight: 600; }
.plan__head .price { margin-top: 4px; font-size: 12px; color: rgba(255,255,255,0.7); }
.plan__body { padding-top: 16px; font-size: 14px; color: rgba(255,255,255,0.8); }
.plan__body ul { margin-top: 12px; padding-left: 24px; }
.plan__body ul li { margin-bottom: 4px; }
.plan__foot {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  margin-top: 24px;
}
.plan__foot .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); }
.plan__foot .row { margin-top: 12px; display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }

/* Sidebar */
.aside .row-top {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 16px;
}
.aside .row-top .label { font-size: 14px; font-weight: 600; }
.pix-row {
  margin-top: 24px;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
}
.pix-diamond {
  display: inline-block; width: 20px; height: 20px;
  background: url('pix.png') center/contain no-repeat;
  vertical-align: middle;
}
.pay-grid {
  margin-top: 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.pay-btn {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: #000; color: #fff;
  font-size: 14px; font-weight: 500;
  transition: border-color .15s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.pay-btn:hover { border-color: rgba(255,255,255,0.5); }
.pay-btn.active { background: #fff; color: #000; border-color: #fff; }
.pay-btn .check { display: inline-block; width: 16px; height: 16px; }
.pay-btn .check svg { width: 16px; height: 16px; }
.concluir {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px; font-weight: 500;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  cursor: not-allowed;
}
.concluir.enabled { background: #fff; color: #000; cursor: pointer; }
.concluir.enabled:hover { background: rgba(255,255,255,0.9); }

.acc-list { margin-top: 24px; }
.acc {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.acc__btn {
  width: 100%; text-align: left;
  padding: 16px 0;
  font-size: 14px; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.acc__btn .chev { transition: transform .2s ease; display: inline-block; }
.acc.open .acc__btn .chev { transform: rotate(90deg); }
.acc__body { display: none; padding-bottom: 16px; font-size: 14px; color: rgba(255,255,255,0.7); }
.acc.open .acc__body { display: block; }

.legal { margin-top: 24px; font-size: 12px; color: rgba(255,255,255,0.6); }

.footer {
  max-width: 1400px; margin: 64px auto 0;
  padding: 24px 32px;
  font-size: 12px; color: rgba(255,255,255,0.5);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

/* ===================== MODAL ===================== */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.7);
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal__box {
  position: relative;
  width: 100%; max-width: 460px;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 32px;
}
.modal__box.lg { max-width: 520px; }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  color: rgba(255,255,255,0.6);
  font-size: 20px; line-height: 1;
}
.modal__close:hover { color: #fff; }
.modal__title { font-size: 18px; font-weight: 600; }
.modal__desc { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,0.7); }
.modal__title-row { display: flex; align-items: center; gap: 8px; }

.qr-wrap { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-wrap .qr { background: #fff; padding: 12px; border-radius: 6px; }
.qr-wrap .qr img { width: 220px; height: 220px; display: block; }
.qr-wrap .field { width: 100%; }
.qr-wrap .field label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); }
.qr-wrap .field .grp { margin-top: 4px; display: flex; gap: 8px; }
.qr-wrap .field input {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  outline: none;
  overflow: hidden; text-overflow: ellipsis;
}
.qr-wrap .field .copy {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  font-size: 12px; font-weight: 500;
  color: #fff;
}
.qr-wrap .field .copy:hover { background: rgba(255,255,255,0.05); }

.total-box {
  margin-top: 16px; padding: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  font-size: 14px;
  display: flex; justify-content: space-between;
}
.total-box .k { color: rgba(255,255,255,0.7); }
.total-box .v { font-weight: 600; }

.modal-actions { margin-top: 24px; display: flex; gap: 12px; }
.btn-outline {
  flex: 1; padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 14px; font-weight: 500;
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.05); }
.btn-solid {
  flex: 1; padding: 10px;
  border-radius: 6px;
  background: #fff; color: #000;
  font-size: 14px; font-weight: 500;
}
.btn-solid:hover { background: rgba(255,255,255,0.9); }

.form-group { margin-top: 12px; }
.form-group label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); }
.form-group input {
  margin-top: 4px;
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  outline: none;
  font-size: 14px;
}
.form-group input:focus { border-color: rgba(255,255,255,0.4); }
.err-msg { color: #ef4444; font-size: 14px; font-weight: 500; margin-top: 8px; }

/* Confirmed */
.confirmed-icon { color: #34d399; font-size: 56px; line-height: 1; text-align: center; }
.confirmed-title { margin-top: 16px; font-size: 22px; font-weight: 600; text-align: center; }
.confirmed-sub { margin-top: 4px; font-size: 14px; color: rgba(255,255,255,0.7); text-align: center; }
.progress-wrap { margin-top: 24px; }
.progress-info { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.progress-track {
  height: 12px; width: 100%;
  background: rgba(255,255,255,0.1);
  border-radius: 999px; overflow: hidden;
}
.progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(to right, #34d399, #10b981);
  border-radius: 999px;
  transition: width 1s linear;
}
.progress-sub { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 8px; }
.info-box {
  margin-top: 24px; padding: 16px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 14px; color: rgba(255,255,255,0.8);
}
.info-box p + p { margin-top: 8px; }
.warn { color: #199ef7; font-weight: 600; }
.done-box {
  margin-top: 16px; padding: 12px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.4);
  border-radius: 6px;
  color: #a7f3d0;
  font-size: 14px; text-align: center;
  display: none;
}
.done-box.show { display: block; }
.lang-icon { color: rgba(255,255,255,0.85); }

/* Mobile: empilhar botões de pagamento para melhor visualização */
@media (max-width: 640px) {
  .pay-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* Mobile: barra de pagamento fixa no rodapé */
@media (max-width: 640px) {
  .pay-sticky {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    z-index: 50;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.4);
  }
  .pay-sticky .row-top { display: flex; justify-content: space-between; align-items: center; }
  .pay-sticky .pix-row { margin-top: 6px; }
  .pay-sticky .pay-grid { margin-top: 10px; grid-template-columns: 1fr; gap: 8px; }
  .pay-sticky .concluir { margin-top: 8px; }
  /* espaço para conteúdo não ficar coberto pela barra */
  body { padding-bottom: 280px; }
}
