/* ── Drawer ─────────────────────────────────────── */
.drawer-backdrop{
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease-out;
}
.drawer-backdrop[data-open="1"]{ opacity: 1; pointer-events: auto; }

.drawer{
  position: fixed;
  z-index: 1000;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  /* mobile: bottom sheet */
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  border-radius: 24px 24px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  transition: transform .3s ease-out;
  overflow: hidden;
}
.drawer[data-open="1"]{ transform: translate(-50%, 0); }

@media (min-width: 600px){
  .drawer{
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    border-radius: 24px;
    border: 1px solid var(--border);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .drawer[data-open="1"]{ transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
}

.drawer__top{
  flex-shrink: 0;
  padding: 12px 16px 8px;
  position: relative;
}
.drawer__handle{
  width: 40px; height: 4px;
  background: #2A2A2A;
  border-radius: 999px;
  margin: 0 auto 8px;
}
@media (min-width: 600px){ .drawer__handle{ display: none; } }
.drawer__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color .15s ease, background .15s ease;
}
.drawer__close:hover{ color: #fff; background: rgba(255,255,255,0.06); }

.drawer__body{
  padding: 8px 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* plan switcher */
.switcher{
  display: flex;
  background: var(--surface);
  border-radius: 999px;
  padding: 4px;
  gap: 0;
  margin-top: 8px;
}
.switcher button{
  flex: 1;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all .2s ease;
}
.switcher button[data-active="1"]{
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 16px rgba(255,32,112,0.3);
}

/* benefits header */
.benefits{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-top: 4px;
}
.benefits__head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.benefits__avatar{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    url('assets/avatar.jpg') center/cover no-repeat,
    radial-gradient(circle at 35% 30%, #ff86b8 0%, #ff2070 50%, #6b0a2c 100%);
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.08);
}
.benefits__id{ display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.benefits__name{ font-size: 14px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.benefits__handle{ font-size: 12px; color: var(--muted); }
.benefits__title{
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.benefits__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.benefits__list li{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--body-text);
  font-weight: 400;
}
.benefits__check{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8A4C 0%, #FF5C8A 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* summary */
.summary{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}
.summary__head{
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.summary__row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  gap: 12px;
}
.summary__bump{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: pointer;
  user-select: none;
}
.summary__check{
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}
.summary__bump[data-on="1"] .summary__check{
  background: var(--pink);
  border-color: var(--pink);
}
.summary__check svg{ opacity: 0; }
.summary__bump[data-on="1"] .summary__check svg{ opacity: 1; }
.summary__lbl{ font-size: 13px; color: var(--body-text); font-weight: 400; }
.summary__sep{ height: 1px; background: var(--border); margin: 8px 0; }
.summary__total{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 8px;
}
.summary__total-lbl{ font-size: 13px; color: var(--muted); }
.summary__total-val{
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* form */
.field{
  margin-top: 16px;
}
.field label{
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input{
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease;
}
.field input:focus{ border-color: var(--pink); }
.field input::placeholder{ color: #555; }
.field__err{
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #FF6060;
}
.field__hint{
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

/* trust badges */
.trust{
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.trust__item{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}
.trust__icon{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,32,112,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
}

/* spinner */
.spinner{
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin{ to { transform: rotate(360deg); } }

/* WAITING */
.pix{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 0;
  animation: fadeUp .35s ease;
}
@keyframes fadeUp{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: translateY(0); } }
.pix__status{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}
.pix__dot{
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px rgba(255,32,112,0.5);
  animation: dotpulse 1.5s ease-in-out infinite;
}
@keyframes dotpulse{
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.pix__qr{
  width: 200px; height: 200px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-top: 16px;
  box-sizing: content-box;
}
.pix__hint{
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 16px;
}
.pix__or{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pix__or::before, .pix__or::after{ content: ""; flex: 1; height: 1px; background: var(--border); }
.pix__copy{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.pix__cc{
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--body-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.pix__copybtn{
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: all .15s ease;
}
.pix__copybtn:hover{ border-color: var(--pink); color: var(--pink); }
.pix__copybtn[data-copied="1"]{ background: rgba(255,32,112,0.15); border-color: var(--pink); color: var(--pink); }
.pix__copybtn--cta{
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF8A4C 0%, #FF5C8A 50%, #FF2070 100%);
  border: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow:
    0 8px 24px rgba(255,92,138,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease;
}
.pix__copybtn--cta:hover{
  transform: translateY(-1px);
  background: linear-gradient(90deg, #FF8A4C 0%, #FF5C8A 50%, #FF2070 100%);
  box-shadow:
    0 12px 28px rgba(255,92,138,0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
  border: 0;
  color: #fff;
}
.pix__copybtn--cta[data-copied="1"]{
  background: linear-gradient(90deg, #FF8A4C 0%, #FF5C8A 50%, #FF2070 100%);
  filter: saturate(1.1);
  color: #fff;
  border: 0;
}
.pix__timer{
  margin-top: 16px;
  font-size: 13px;
  color: var(--body-text);
  font-variant-numeric: tabular-nums;
}
.pix__micro{
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

/* SUCCESS */
.success{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 0;
  animation: fadeUp .35s ease;
}
.success__icon{
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(255,32,112,0.5);
  margin-bottom: 16px;
}
.success__head{
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
}
.success__sub{
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
}
.success__micro{
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}

/* EXPIRED / ERROR */
.alert{
  background: rgba(255,64,64,0.08);
  border: 1px solid rgba(255,64,64,0.3);
  color: #FF6060;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.expired{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
}
.expired__head{ font-size: 18px; font-weight: 600; color: #fff; margin: 0 0 6px; }
.expired__sub{ font-size: 13px; color: var(--muted); margin: 0 0 20px; }

/* PIX pending banner */
.pix-banner{
  position: relative;
  z-index: 5;
  background: linear-gradient(90deg, rgba(255,32,112,0.15), rgba(255,107,168,0.15));
  border-bottom: 1px solid var(--pink);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: slideDown .35s ease;
}
@keyframes slideDown{ from{ transform: translateY(-100%); opacity: 0; } to{ transform: translateY(0); opacity: 1; } }
.pix-banner__txt{
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.pix-banner__btn{
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(255,32,112,0.3);
}
