* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --correios-blue: #003d7a;
  --correios-yellow: #FFE000;
  --correios-blue-dark: #004f8b;
  --correios-yellow-dark: #d48e00;
  --bg: #ffffff;
  --bg-light: #f5f5f5;
  --text: #333333;
  --text-muted: #666666;
  --border: #dddddd;
  --danger: #cc0000;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --radius: 4px;
}

html, body {
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
}

img {
  max-width: 100%;
  display: block;
}

button, input, textarea {
  font: inherit;
}

a {
  color: var(--correios-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* =========================================
   ACCESSIBILITY BAR
========================================= */
.accessibility-bar {
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

.accessibility-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 16px;
}

.accessibility-btn {
  background: transparent;
  border: none;
  color: #555;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
}

.accessibility-btn svg {
  width: 14px;
  height: 14px;
  stroke: #555;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================
   TOPBAR
========================================= */
.topbar {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.timeline {
  margin: 20px 0 28px;
  position: relative;
  padding-left: 45px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 15px;
  bottom: 15px;
  width: 2px;
  background: #a8c7fa;
}

.timeline-item {
  position: relative;
  padding-bottom: 25px;
  display: flex;
  gap: 14px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -45px;
  top: -4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1c73e8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-dot.highlight {
  background: #f1b400;
}

.timeline-dot.future {
  background: #c2c5d1;
}

.timeline-item h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-item h3.highlight {
  color: var(--correios-blue);
}

.topbar-yellow-border {
  height: 4px;
  background: var(--correios-yellow);
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #555;
  border-radius: 2px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.correios-logo-svg {
  height: 46px;
  width: auto;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.entrar-btn {
  background: transparent;
  border: none;
  color: var(--correios-blue);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  transition: opacity 0.15s;
}

.entrar-btn:hover {
  opacity: 0.8;
}

.entrar-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--correios-yellow);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================
   LAYOUT CONTAINER
========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

/* =========================================
   BREADCRUMB
========================================= */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--correios-blue);
  text-decoration: none;
  font-size: 13px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.bc-sep {
  color: #999;
  font-size: 12px;
}

/* =========================================
   PAGE 1 — HERO FULLSCREEN + MODAL
========================================= */
body.page1-active .accessibility-bar,
body.page1-active .topbar,
body.page1-active .footer {
  display: none !important;
}

body.page1-active .container {
  max-width: none;
  padding: 0;
  margin: 0;
}

body.page1-active {
  background: #001a30;
}

#page1 {
  padding: 0;
  margin: 0;
}

.hero-fullscreen {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  background: url('../imagen44.png') center center / 100% 100% no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-fullscreen {
    background-image: url('../image.jpg');
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 26, 48, 0.4);
  z-index: 1;
}

.hero-modal {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: heroModalIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroModalIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-modal-header {
  background: #00315a;
  padding: 24px 20px 20px;
  text-align: center;
  border-top: 5px solid #ffe000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-modal-logo {
  max-height: 38px;
  width: auto;
}

.hero-modal-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.2px;
}

.hero-modal-body {
  padding: 24px 24px 32px;
}

.hero-modal-desc {
  color: #666666;
  font-size: 13.5px;
  text-align: center;
  line-height: 1.45;
  margin-bottom: 24px;
}

.cpf-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cpf-input-wrapper input {
  width: 100%;
  height: 48px;
  border: 2px solid #00315a;
  border-radius: 8px;
  padding: 0 48px 0 16px;
  background: #ffffff;
  color: #333333;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: box-shadow 0.2s;
}

.cpf-input-wrapper input:focus {
  box-shadow: 0 0 0 3px rgba(0, 49, 90, 0.15);
}

.cpf-input-wrapper input.error {
  border-color: #d92d20;
}

.cpf-search-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.cpf-search-btn svg {
  width: 20px;
  height: 20px;
  stroke: #00315a;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cpf-search-btn:disabled svg {
  stroke: #cccccc;
}

.error-text {
  color: #d92d20;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
}


.payment-email-field {
  margin: 16px 0;
  text-align: left;
}

.payment-email-card {
  max-width: 520px;
  margin: 18px auto 16px;
  padding: 16px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(27, 39, 56, 0.06);
}

.payment-email-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--correios-blue);
  font-size: 13px;
  font-weight: 700;
}

.payment-email-card input {
  width: 100%;
  height: 44px;
  border: 1px solid #cccccc;
  border-radius: var(--radius);
  padding: 0 14px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.payment-email-card input:focus {
  border-color: var(--correios-blue);
  box-shadow: 0 0 0 2px rgba(0, 102, 179, 0.15);
}

.search-card-footer {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.main-button {
  min-width: 140px;
  height: 44px;
  border: none;
  border-radius: var(--radius);
  background: var(--correios-blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  padding: 0 32px;
  transition: background 0.15s;
}

.main-button:hover:not(:disabled) {
  background: var(--correios-blue-dark);
}

.main-button:disabled {
  background: #6699bb;
  cursor: not-allowed;
  opacity: 0.75;
}

/* =========================================
   BANNER BLOCK
========================================= */

.banner-block {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
}

.banner-full-img {
  width: 100%;
  display: block;
}

.banner-left {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.banner-logo-row {
  display: flex;
  align-items: center;
}

.banner-logo-svg {
  height: 50px;
  width: auto;
}

.banner-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--correios-blue);
  line-height: 1.15;
}

.banner-cta-btn {
  align-self: flex-start;
  border: none;
  background: var(--correios-yellow);
  color: #333;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.banner-cta-btn:hover {
  background: var(--correios-yellow-dark);
}

.banner-right {
  background: #1565c0;
  min-height: 260px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================
   FOOTER
========================================= */

.footer {
  background: var(--correios-yellow);
  margin-top: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 16px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 32px;
}

.footer-col h4 {
  color: var(--correios-blue);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links button {
  background: transparent;
  border: none;
  color: var(--correios-blue);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  transition: opacity 0.15s;
}

.footer-links button:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.footer-links button svg {
  width: 14px;
  height: 14px;
  stroke: var(--correios-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 102, 179, 0.2);
  text-align: center;
  padding: 14px 16px;
  color: var(--correios-blue);
  font-size: 13px;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================
   PAGE 2 — RESULTADO
========================================= */

.alert-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-icon {
  font-size: 18px;
  color: #e6a800;
  flex-shrink: 0;
}

.alert-box h2 {
  color: #555;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.result-copy {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.7;
}

.result-copy p {
  margin-bottom: 4px;
}

}

.main-button:hover:not(:disabled) {
  background: var(--correios-blue-dark);
}

.main-button:disabled {
  background: #6699bb;
  cursor: not-allowed;
  opacity: 0.75;
}

/* =========================================
   BANNER BLOCK
========================================= */

.banner-block {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
}

.banner-full-img {
  width: 100%;
  display: block;
}

.banner-left {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.banner-logo-row {
  display: flex;
  align-items: center;
}

.banner-logo-svg {
  height: 50px;
  width: auto;
}

.banner-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--correios-blue);
  line-height: 1.15;
}

.banner-cta-btn {
  align-self: flex-start;
  border: none;
  background: var(--correios-yellow);
  color: #333;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.banner-cta-btn:hover {
  background: var(--correios-yellow-dark);
}

.banner-right {
  background: #1565c0;
  min-height: 260px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================
   FOOTER
========================================= */

.footer {
  background: var(--correios-yellow);
  margin-top: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 16px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 32px;
}

.footer-col h4 {
  color: var(--correios-blue);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links button {
  background: transparent;
  border: none;
  color: var(--correios-blue);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  transition: opacity 0.15s;
}

.footer-links button:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.footer-links button svg {
  width: 14px;
  height: 14px;
  stroke: var(--correios-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 102, 179, 0.2);
  text-align: center;
  padding: 14px 16px;
  color: var(--correios-blue);
  font-size: 13px;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================
   PAGE 2 — RESULTADO
========================================= */

.alert-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-icon {
  font-size: 18px;
  color: #e6a800;
  flex-shrink: 0;
}

.alert-box h2 {
  color: #555;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.result-copy {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.7;
}

.result-copy p {
  margin-bottom: 4px;
}

.result-label {
  font-weight: 700;
  margin-top: 10px !important;
  margin-bottom: 2px !important;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #e65100;
  margin-bottom: 8px;
}

.status-bullet {
  font-size: 10px;
  color: #e65100;
  animation: blink-status 1.2s infinite ease-in-out;
}

@keyframes blink-status {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.action-button {
  width: 100%;
  border: none;
  border-radius: var(--radius);
  background: var(--correios-blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  min-height: 48px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.action-button:hover {
  background: var(--correios-blue-dark);
}

.old-rastreio-box {
  max-width: 760px;
  margin: 0 auto 28px;
}

.old-alert {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
}

.result-box {
  background: #ffffff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.result-box h2 {
  color: var(--correios-blue);
  margin-bottom: 15px;
  font-size: 18px;
}

.result-box p {
  margin: 10px 0;
  color: var(--text);
  font-size: 14px;
}

.btn {
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-blue {
  background: var(--correios-blue);
  color: #ffffff;
}

.btn-blue:hover {
  background: var(--correios-blue-dark);
}

.btn-gray {
  background: #dddddd;
  color: #333333;
}

.btn-gray:hover {
  background: #cccccc;
}

.btn-large {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  margin: 15px 0;
}

.old-simple-timeline {
  background: #ffffff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.old-simple-timeline .timeline-item {
  padding: 15px 0 15px 40px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  display: block;
}

.old-simple-timeline .timeline-item:last-child {
  border-bottom: none;
}

.old-simple-timeline .dot {
  width: 12px;
  height: 12px;
  background: #dddddd;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 18px;
}

.old-simple-timeline .dot.active {
  background: var(--correios-blue);
}

.old-simple-timeline .timeline-item h3 {
  font-size: 14px;
  color: var(--correios-blue);
  margin-bottom: 5px;
}

.old-simple-timeline .timeline-item p {
  font-size: 12px;
  color: #666666;
  margin: 0;
}

/* =========================================
   PACKAGE IMAGE
========================================= */

.package-card {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 28px;
}

.package-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ddd2a0;
}

.package-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.package-placeholder {
  width: 100%;
  min-height: 360px;
  background: linear-gradient(135deg, #f0e7bd, #d7cb93 50%, #c2b378);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(31, 70, 95, 0.65);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
}

.package-overlay-block {
  position: absolute;
  top: 44%;
  left: 18%;
  width: 28%;
  z-index: 3;
  color: #2b2b2b;
  text-align: left;
}

.package-line {
  margin: 0;
  padding: 0;
  line-height: 1.08;
}

.package-line + .package-line {
  margin-top: 2px;
}

.package-line.name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}


.timeline-item p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.timeline-link {
  color: var(--correios-blue);
  text-decoration: underline;
  cursor: pointer;
}

.timeline-link-static {
  color: var(--correios-blue);
}

.timeline-wait {
  color: var(--correios-blue);
}

/* =========================================
   SUMMARY CARD (PAGE 2)
========================================= */

.summary-card {
  background: #f9f9f9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: 14px;
}

.summary-row {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  line-height: 1.6;
}

.summary-label {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.summary-value {
  color: var(--text);
}

.summary-row-highlight .summary-label {
  color: var(--correios-blue);
}

.summary-date {
  font-weight: 700;
  color: var(--correios-blue);
}

.summary-hidden {
  display: none;
}

/* =========================================
   PAGE 2 / PAINEL DE RASTREAMENTO
========================================= */

#page2 {
  background: #f3f4f6;
  margin: 0 -28px;
  padding: 28px 28px 36px;
  border-radius: 4px;
}

#page2 .breadcrumb {
  margin-bottom: 28px;
}

.tracking-title {
  margin: 0 0 18px;
  color: var(--correios-blue);
  font-size: 22px;
  font-weight: 700;
}

.tracking-panel {
  background: #e9e9e9;
  padding: 20px 18px 28px;
}

.tracking-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.tracking-info-block h2,
.tracking-history h2,
.tracking-tax h2 {
  margin: 0 0 10px;
  color: #0055ff;
  font-size: 15px;
  font-weight: 600;
}

.tracking-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.tracking-table th,
.tracking-table td {
  border: 1px solid #cbd3df;
  min-height: 28px;
  padding: 8px 10px;
  color: #000000;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}

.tracking-table th {
  width: 72%;
  font-weight: 700;
}

.tracking-table td {
  font-weight: 600;
}

.tracking-history {
  margin-top: 28px;
}

.tracking-events {
  position: relative;
  display: grid;
  gap: 26px;
  padding: 6px 0 0 0;
}

.tracking-events::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 28px;
  bottom: 30px;
  width: 2px;
  background: #9fc5ff;
  transform: translateX(-50%);
}

.tracking-event {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.tracking-event-icon {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #3b82f6;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tracking-event.is-alert .tracking-event-icon {
  background: #ffc400;
  color: #ffffff;
}

.tracking-event-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tracking-event.is-alert .tracking-event-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.tracking-event strong {
  display: block;
  color: #111827;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.tracking-event p {
  margin: 2px 0 0;
  color: #374151;
  font-size: 12px;
}

.tracking-event small {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
}

.tracking-tax {
  margin-top: 30px;
}

.tracking-tax-table th {
  width: auto;
}

.tracking-tax-table td {
  width: 150px;
  font-weight: 500;
}

#page2 .payment-email-card {
  max-width: 360px;
  margin: 22px auto 14px;
  background: #ffffff;
}

.tracking-continue-button {
  display: block;
  min-width: 86px;
  min-height: 34px;
  margin: 14px auto 0;
  padding: 8px 18px;
  border: none;
  border-radius: 4px;
  background: #ffc400;
  color: #000000;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.tracking-continue-button:hover {
  background: #f0b800;
}

/* =========================================
   PAGE 3 / PIX FINAL
========================================= */

#page3 {
  width: 100%;
  margin: 0;
  padding: 0;
}

#page3 .breadcrumb {
  display: none;
}

.pix-fullscreen {
  width: 100vw;
  min-height: 100vh;
  margin-left: calc(50% - 50vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f2f2f2;
  overflow: hidden;
}

.pix-left-panel {
  background: #f7c500;
  padding: 86px 64px 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pix-right-panel {
  background: #f2f2f2;
  padding: 86px 64px 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pix-brand-image-wrap {
  width: 100%;
  max-width: 360px;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.pix-brand-image {
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
}

.pix-brand-placeholder {
  width: 100%;
  min-height: 72px;
  border: 2px dashed rgba(0, 74, 173, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  color: #003f9c;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

.pix-main-title {
  margin: 0;
  color: #004aad;
  font-size: 29px;
  line-height: 1.1;
  font-weight: 800;
  text-align: center;
}

.pix-main-subtitle {
  margin: 10px 0 0;
  color: #385a73;
  font-size: 15px;
  text-align: center;
  font-weight: 500;
}

.pix-client-box {
  width: 100%;
  max-width: 232px;
  background: rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  padding: 14px 20px;
  text-align: center;
  margin-top: 26px;
}

.pix-client-box span {
  display: block;
  color: #777777;
  font-size: 12px;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  font-weight: 500;
}

.pix-client-box strong {
  display: block;
  color: #004aad;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  word-break: break-word;
}

.pix-price-box {
  width: 100%;
  max-width: 196px;
  background: #004aad;
  border-radius: 18px;
  padding: 16px 18px 18px;
  text-align: center;
  margin-top: 26px;
}

.pix-price-box span {
  display: block;
  color: #ddeaff;
  font-size: 12px;
  margin-bottom: 10px;
  font-weight: 500;
}

.pix-price-box strong {
  display: block;
  color: #ffffff;
  font-size: 27px;
  line-height: 1;
  font-weight: 800;
}

.pix-how-box {
  width: 100%;
  max-width: 360px;
  margin-top: 34px;
}

.pix-how-box h3 {
  margin: 0 0 18px;
  color: #004aad;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
}

.pix-step-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pix-step-circle {
  width: 33px;
  height: 33px;
  min-width: 33px;
  border-radius: 999px;
  background: #004aad;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.pix-step-row p {
  margin: 0;
  color: #14365d;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
}

.pix-expire-pill {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid #e2b529;
  border-radius: 12px;
  background: rgba(255, 248, 224, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #004aad;
}

.pix-expire-pill svg {
  width: 18px;
  height: 18px;
  stroke: #004aad;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pix-expire-pill span {
  font-size: 13px;
  color: #496173;
  font-weight: 500;
}

.pix-expire-pill strong {
  font-size: 15px;
  color: #004aad;
  font-weight: 800;
}

.pix-scan-text {
  margin: 0 0 14px;
  color: #66717f;
  font-size: 13px;
  text-align: center;
  font-weight: 500;
}

.pix-qr-frame {
  width: 280px;
  height: 280px;
  border: 2px solid #efbf2c;
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pix-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pix-qr-placeholder {
  color: #8a96a6;
  font-size: 16px;
  text-align: center;
  font-weight: 700;
  padding: 12px;
}

.pix-copy-block {
  width: 100%;
  max-width: 415px;
  margin-top: 24px;
}

.pix-copy-block label {
  display: block;
  text-align: center;
  color: #004aad;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.pix-copy-row {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 10px;
  align-items: center;
}

.pix-copy-row input {
  width: 100%;
  height: 40px;
  border: 1px solid #d2d7de;
  border-radius: 12px;
  background: #ffffff;
  padding: 0 14px;
  color: #333333;
  font-size: 12px;
  outline: none;
}

.pix-copy-row button {
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #004aad;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.pix-copy-row button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.pix-copy-row button svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pix-order-box {
  margin-top: 20px;
  text-align: center;
}

.pix-order-box p {
  margin: 6px 0;
  font-size: 12px;
  color: #66717f;
}

.pix-order-box strong {
  color: #004aad;
  font-weight: 800;
}

.pix-success-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1ca34c !important;
  font-weight: 700;
}

.pix-success-line svg {
  width: 14px;
  height: 14px;
  stroke: #1ca34c;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pix-hidden-meta {
  display: none;
}

body.page3-active {
  background: #f2f2f2;
  overflow-x: hidden;
}

body.page3-active .container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* PIX em cartoes, inspirado no layout de referencia sem copiar portal oficial */
body.page3-active {
  background: #eef0f3;
}

.pix-fullscreen {
  width: 100%;
  min-height: auto;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  max-width: 640px;
  padding: 28px 0 40px;
  margin: 0 auto;
  background: #eef0f3;
  overflow: visible;
}

.pix-left-panel,
.pix-right-panel {
  width: 100%;
  background: #ffffff;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(27, 39, 56, 0.06);
  padding: 18px 22px;
}

.pix-left-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 16px 28px;
}

.pix-brand-image-wrap,
.pix-main-subtitle {
  display: none;
}

.pix-main-title {
  grid-column: 1 / -1;
  margin: 0;
  text-align: left;
  color: #1f66ff;
  font-size: 24px;
}

.pix-client-box,
.pix-cpf-box,
.pix-status-box,
.pix-price-box {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  text-align: left;
}

.pix-client-box span,
.pix-cpf-box span,
.pix-status-box span,
.pix-price-box span,
.pix-fees-card span {
  display: block;
  color: #617085;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
  letter-spacing: 0;
}

.pix-client-box strong,
.pix-cpf-box strong {
  color: #1b2c43;
  font-size: 14px;
  line-height: 1.35;
  text-transform: uppercase;
}

.pix-status-box strong {
  color: #e86d00;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.35;
}

.pix-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff8a3d;
  display: inline-block;
  animation: pixStatusPulse 1s ease-in-out infinite;
}

.pix-status-box.is-paid strong {
  color: #16833a;
}

.pix-status-box.is-paid .pix-status-dot {
  background: #16a34a;
  animation: none;
}

.pix-status-box.is-expired strong {
  color: #b42318;
}

.pix-status-box.is-expired .pix-status-dot {
  background: #d92d20;
  animation: none;
}

@keyframes pixStatusPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.pix-price-box strong {
  color: #16833a;
  font-size: 18px;
}

.pix-fees-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border-top: 1px solid #d9dee7;
  padding-top: 12px;
}

.pix-fees-card div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.pix-fees-card strong {
  color: #1b2c43;
  font-size: 13px;
  white-space: nowrap;
}

.pix-fees-total {
  border-top: 1px solid #d9dee7;
  padding-top: 12px;
  margin-top: 4px;
}

.pix-fees-total span,
.pix-fees-total strong {
  color: #1f66ff;
  font-size: 18px;
  font-weight: 800;
}

.pix-how-box {
  grid-column: 1 / -1;
  max-width: none;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid #f1c232;
  border-radius: 7px;
  background: #fffbe6;
}

.pix-how-box h3 {
  margin: 0 0 10px;
  color: #9a6800;
  font-size: 14px;
}

.pix-step-row {
  gap: 8px;
  margin-bottom: 7px;
}

.pix-step-circle {
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: #f0a400;
  color: #ffffff;
  font-size: 11px;
}

.pix-step-row p {
  color: #8a5b00;
  font-size: 12px;
}

.pix-right-panel {
  align-items: stretch;
  text-align: center;
  gap: 14px;
}

.pix-expire-pill {
  justify-content: center;
  min-height: 0;
  margin: 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f7faff;
  border-color: #d9e4ff;
}

.pix-scan-text {
  color: #506178;
  font-size: 13px;
}

.pix-qr-frame {
  width: 206px;
  height: 206px;
  margin: 0 auto;
  border: 1px solid #d8dde6;
  border-radius: 7px;
  padding: 12px;
  background: #ffffff;
}

.pix-copy-block {
  max-width: none;
  margin-top: 0;
  text-align: left;
}

.pix-copy-block label {
  text-align: left;
  color: #566579;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}

.pix-copy-row {
  grid-template-columns: 1fr 116px;
  gap: 8px;
  padding: 9px;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  background: #f9fbff;
}

.pix-copy-row input {
  height: 36px;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: #334155;
  font-size: 11px;
}

.pix-copy-row button {
  height: 36px;
  border-radius: 5px;
  background: #2f6bed;
  font-size: 12px;
  padding: 0 12px;
}

.pix-order-box {
  margin-top: 0;
  color: #7b8797;
}

.pix-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.pix-verify-btn,
.pix-copy-main-btn {
  height: 38px;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pix-verify-btn {
  background: #f0f2f5;
  color: #344054;
}

.pix-copy-main-btn {
  background: #ffc400;
  color: #111827;
}

.pix-check-status {
  margin: -2px 0 0;
  color: #2f6bed;
  font-size: 12px;
  text-align: center;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 980px) {
  .banner-block {
    grid-template-columns: 1fr;
  }

  .banner-right {
    min-height: 200px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .pix-fullscreen {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
    min-height: auto;
  }

  .pix-left-panel,
  .pix-right-panel {
    padding: 42px 22px;
  }

  .pix-main-title {
    font-size: 26px;
  }

  .pix-copy-row {
    grid-template-columns: 1fr;
  }

  .pix-action-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tracking-panel {
    padding: 16px 12px 22px;
  }

  .tracking-top-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tracking-table th,
  .tracking-table td {
    font-size: 12px;
    padding: 7px 8px;
  }

  .tracking-tax-table td {
    width: 110px;
  }

  .tracking-events {
    gap: 20px;
  }

  .pix-fullscreen {
    padding: 18px 12px 28px;
    gap: 14px;
  }

  .pix-left-panel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pix-main-title {
    font-size: 21px;
  }

  .pix-fees-card div,
  .pix-fees-total {
    align-items: flex-start;
  }

  .pix-right-panel {
    padding: 16px 14px;
  }

  .pix-qr-frame {
    width: 190px;
    height: 190px;
  }

  .pix-copy-row {
    grid-template-columns: 1fr;
  }

  #page2 {
    margin: 0 -16px;
    padding: 20px 16px 28px;
    border-radius: 0;
  }

  .main-button {
    width: 100%;
  }

  .banner-title {
    font-size: 20px;
  }

  .package-overlay-block {
    top: 40.5%;
    left: 18%;
    width: 33%;
  }

  .package-line.name,
  .package-line.cep,
  .package-line.city,
  .package-line.cpf {
    font-size: 7px;
    line-height: 1.05;
  }

  .package-line + .package-line {
    margin-top: 1px;
  }

  .package-line.cpf {
    margin-top: 7px;
  }

  .pix-left-panel,
  .pix-right-panel {
    padding: 34px 16px;
  }

  .pix-main-title {
    font-size: 22px;
  }

  .pix-price-box strong {
    font-size: 26px;
  }

  .pix-qr-frame {
    width: 170px;
    height: 170px;
  }
}
#qrPlaceholder:not(.hidden) {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#qrPlaceholder img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* MODAL COPA */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-overlay.hidden {
  display: none !important;
}
.modal-content {
  position: relative;
  max-width: 500px;
  width: 90%;
}
.modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10000;
}
.modal-image {
  width: 100%;
  border-radius: 12px;
}

/* MODAL FATURA - esconder */
.modal-fatura-overlay {
  display: none !important;
}

/* MODAL COPA - fix mobile */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0,0,0,0.7) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
}
.modal-overlay.hidden {
  display: none !important;
}
