/* ==================== BARRA CRONÔMETRO FIXA (ESTILO DOCERO) ==================== */
.pass-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-bottom: 2px solid #10b981;
  padding: 10px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.pass-sticky-bar.state-trial {
  border-bottom-color: #f59e0b;
}

.pass-sticky-bar.state-warning {
  background: linear-gradient(90deg, #78350f 0%, #92400e 100%);
  border-bottom-color: #fbbf24;
}

.pass-sticky-bar.state-danger {
  background: linear-gradient(90deg, #7f1d1d 0%, #991b1b 100%);
  border-bottom-color: #f87171;
  animation: pulseBar 1.2s infinite;
}

@keyframes pulseBar {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

.pass-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pass-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.pass-timer-pill {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10b981;
  color: #6ee7b7;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.pass-sticky-bar.state-trial .pass-timer-pill {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fde68a;
}

.pass-sticky-bar.state-danger .pass-timer-pill {
  background: rgba(248, 113, 113, 0.25);
  border-color: #fca5a5;
  color: #ffffff;
}

.pass-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pass-btn-cta {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.pass-btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
}

.pass-btn-key {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pass-btn-key:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==================== PAYWALL / BLOQUEIO 24H ==================== */
.pass-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14px;
  overflow-y: auto;
}

.pass-overlay.hidden {
  display: none !important;
}

.pass-modal {
  background: #ffffff;
  color: #0f172a;
  width: 100%;
  max-width: 480px;
  margin: auto 0;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  border: 2px solid #10b981;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.pass-modal-head {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 14px 18px;
  position: relative;
  text-align: center;
}

.pass-modal-head.expired {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
}

.pass-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.pass-modal-close.hidden {
  display: none;
}

.pass-modal-badge {
  display: inline-block;
  background: #10b981;
  color: #022c22;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 8px;
}

.pass-modal-head.expired .pass-modal-badge {
  background: #fde047;
  color: #713f12;
}

.pass-modal-head h2 {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.25;
}

.pass-modal-head p {
  margin: 0;
  font-size: 13.5px;
  color: #cbd5e1;
}

.pass-modal-body {
  padding: 14px 18px 16px;
}

.pass-price-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 9px 14px;
  margin-bottom: 11px;
}

.pass-price-strip .big-price {
  font-size: 24px;
  font-weight: 900;
  color: #047857;
}

.pass-price-strip .price-note {
  font-size: 12px;
  color: #065f46;
  text-align: right;
  line-height: 1.3;
}

.pass-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 11px;
  margin-bottom: 10px;
}

.pass-qr-img {
  width: 152px;
  height: 152px;
  border-radius: 10px;
  background: #ffffff;
  padding: 4px;
  border: 1px solid #e2e8f0;
  object-fit: contain;
}

.pass-pix-code {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  padding: 7px 10px;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px;
  background: #ffffff !important;
  color: #0f172a !important;
  box-sizing: border-box;
}

.pass-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.pass-btn-primary {
  width: 100%;
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.pass-btn-primary:hover { background: #047857; }

.pass-btn-zap {
  width: 100%;
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pass-btn-zap:hover { background: #15803d; }

.pass-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.pass-divider::before,
.pass-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.pass-key-form {
  display: flex;
  gap: 8px;
}

.pass-key-input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 9px;
  background: #ffffff !important;
  color: #0f172a !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pass-key-input::placeholder {
  color: #64748b !important;
}

.pass-btn-back-site {
  width: 100%;
  margin-top: 8px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pass-btn-back-site:hover { background: #e2e8f0; }
.pass-btn-back-site.hidden { display: none; }

.pass-key-input:focus {
  outline: none;
  border-color: #10b981;
}

.pass-key-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.pass-key-btn:hover { background: #1e293b; }

.pass-feedback {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  min-height: 18px;
}

.pass-feedback.err { color: #dc2626; }
.pass-feedback.ok { color: #059669; }

.pass-footer-note {
  margin-top: 12px;
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 600px) {
  .pass-btn-row { grid-template-columns: 1fr; }
  .pass-key-form { flex-direction: column; }
  .pass-bar-inner { justify-content: center; text-align: center; }
}
