* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: hidden;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}

:root {
  --correios-blue: #003d7a;
  --correios-yellow: #FFE000;
  --correios-blue-dark: #004f8b;
  --correios-yellow-dark: #d48e00;
  --bg: #ffffff;
  --bg-light: #f7f8fa;
  --text: #1b2c43;
  --text-muted: #5a6b80;
  --border: #dde3ec;
  --danger: #cc0000;
  --shadow: 0 2px 12px rgba(0, 20, 60, 0.08);
  --radius: 6px;
}

html, body {
  min-height: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body.page1-active {
  background: #eef2f7 !important;
}

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

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

a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* =========================================
   ACCESSIBILITY BAR
========================================= */
.accessibility-bar {
  background: #f6f5f3;
  border-bottom: 1px solid #e5e5e5;
  height: 26px;
  display: flex;
  align-items: center;
}

.accessibility-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: center;
}

.accessibility-btn {
  background: transparent;
  border: none;
  color: #0066b3;
  font-size: 11px;
  font-weight: 600;
  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;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #003184;
  margin: 4px 0;
}

.correios-logo-svg {
  height: 38px;
  width: auto;
  display: block;
}

.topbar-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-menu a {
  color: #003184;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  transition: color 0.15s;
}

.topbar-menu a:hover {
  color: #0066b3;
  text-decoration: underline;
}

.topbar-right-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-divider {
  width: 1px;
  height: 22px;
  background: #d1d5db;
  display: block;
}

.topbar-action-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #003184;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  transition: opacity 0.15s;
}

.topbar-action-item:hover {
  opacity: 0.85;
}

.topbar-icon {
  height: 24px;
  width: auto;
  display: block;
}

.topbar-login-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: 11.5px;
}

.topbar-login-text .subtext {
  font-size: 10px;
  font-weight: 400;
  color: #555555;
}

@media (max-width: 992px) {
  .hamburger-btn {
    display: block;
  }
  .topbar-menu {
    display: none;
  }
  .topbar-login-text {
    display: none;
  }
}

.timeline {
  margin: 20px 0 28px;
  position: relative;
  padding-left: 45px;
}

.timeline::before {
  display: none !important;
}

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

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 38px;
  bottom: -4px;
  width: 3px;
  background: #a8c7fa;
  z-index: 1;
}

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

.timeline-dot {
  position: absolute;
  left: -45px;
  top: -2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1976d2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(25, 118, 210, 0.3);
}

.timeline-dot.highlight {
  background: linear-gradient(135deg, #f1b400 0%, #e09800 100%);
}

.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 — MODERN CPF + CEP FORM
========================================= */

body.page1-active {
  background: #f8fafc;
}

#page1 {
  padding: 0;
  margin: 0;
}

/* ---- Hero Banner ---- */
.home-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0;
  padding: 48px 32px 44px;
  background: linear-gradient(135deg, #001d3d 0%, #003566 40%, #004a8f 100%);
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 224, 0, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0, 100, 200, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.home-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 224, 0, 0.06);
  pointer-events: none;
}

.home-hero-content {
  position: relative;
  z-index: 2;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 6px 16px 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #ffe000;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease both;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-hero-title {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
  animation: fadeInDown 0.6s 0.1s ease both;
}

.home-hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
  max-width: 440px;
  animation: fadeInDown 0.6s 0.2s ease both;
}

/* ---- Search Card ---- */
.home-search-card {
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 40px -15px rgba(0, 30, 80, 0.08), 0 0 15px rgba(0, 0, 0, 0.03) !important;
  padding: 28px 28px 24px !important;
  margin-top: 0;
  position: relative;
  z-index: 3;
  animation: fadeInUp 0.5s 0.3s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-search-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e8ecf1 !important;
  background: transparent !important;
  border-left: none !important;
  padding: 0 0 16px 0 !important;
}

.home-search-header span {
  font-size: 17px;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.2px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
}

.form-group label svg {
  color: #003d7a;
  flex-shrink: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px;
  padding: 0 16px;
  background: #ffffff !important;
  color: #1e293b;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-wrap input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.input-wrap input:focus {
  border-color: #003d7a !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.12) !important;
}

.input-wrap input.error,
.input-wrap input.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.error-text {
  color: #ef4444;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
}

.search-card-footer {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.main-button {
  min-width: 200px;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #003d7a, #004f8b);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 61, 122, 0.25);
  letter-spacing: 0.2px;
}

.main-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #004f8b, #0066b3);
  box-shadow: 0 6px 20px rgba(0, 61, 122, 0.35);
  transform: translateY(-1px);
}

.main-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 61, 122, 0.2);
}

.main-button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

/* ---- Trust Badges ---- */
.home-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f0f2f5;
}

.home-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.1px;
}

.home-trust-item svg {
  flex-shrink: 0;
}

/* ---- Banner Block ---- */
.banner-block {
  margin-top: 28px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.banner-full-img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .banner-full-img {
    height: auto;
    object-fit: contain;
  }
}

/* =========================================
   PAGE 1 — MOBILE RESPONSIVE
========================================= */
@media (max-width: 768px) {
  .home-hero {
    padding: 32px 20px 36px;
    border-radius: 0;
    margin-left: -16px;
    margin-right: -16px;
  }

  .home-hero-badge {
    font-size: 10.5px;
    padding: 5px 12px 5px 10px;
  }

  .home-hero-title {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .home-hero-subtitle {
    font-size: 13px;
  }

  .home-search-card {
    margin-top: 0;
    margin-left: -4px;
    margin-right: -4px;
    padding: 20px 16px 18px;
    border-radius: 14px;
  }

  .home-search-header {
    padding-bottom: 14px;
    margin-bottom: 16px;
  }

  .home-search-header span {
    font-size: 15px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-group label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .input-wrap input {
    height: 46px;
    font-size: 15px;
    border-radius: 8px;
  }

  .main-button {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    font-size: 15px;
  }

  .home-trust-row {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .home-trust-item {
    font-size: 10.5px;
  }

  .banner-block {
    margin-top: 20px;
    border-radius: 12px;
  }
}

@media (max-width: 380px) {
  .home-hero-title {
    font-size: 22px;
  }

  .home-trust-row {
    gap: 8px;
  }

  .home-trust-item {
    font-size: 9.5px;
  }
}

.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);
}

/* =========================================
   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;
}

}

/* =========================================
   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) {
  .alert-box {
    justify-content: center;
    text-align: center;
  }

  .result-copy {
    text-align: center;
  }

  .status-line {
    justify-content: center;
  }

  .pix-main-title {
    text-align: center;
  }

  .pix-main-subtitle {
    text-align: center;
  }

  .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;
}

/* =========================================
   ESPELHAMENTO - TELA DE RASTREIO DETALHADA
========================================= */

/* Grid de Informações */
.tracking-info-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  margin-bottom: 24px;
  text-align: left;
}

@media (max-width: 768px) {
  .tracking-info-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.panel-section-title {
  color: #00315a !important;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: none;
  text-align: left;
  letter-spacing: 0.2px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8edf4;
}

/* Tabelas de Info */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dde3ec;
  font-size: 13px;
  border-radius: 8px;
  overflow: hidden;
}

.info-table td {
  border: 1px solid #e8edf4;
  padding: 11px 14px;
  vertical-align: middle;
  text-align: left;
  color: #333333;
}

.info-label {
  background: #f5f8fc;
  font-weight: 700;
  color: #00315a !important;
  width: 160px;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.info-value {
  background: #ffffff;
}

/* Tabela de Taxação */
.tax-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d9dee7;
  font-size: 13px;
  margin-bottom: 24px;
}

.tax-table td {
  border: 1px solid #d9dee7;
  padding: 12px 14px;
  color: #1b2c43;
}

.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;
}

/* =========================================
   ESPELHAMENTO - TELA DE RASTREIO DETALHADA
========================================= */

/* Grid de Informações */
.tracking-info-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  margin-bottom: 24px;
  text-align: left;
}

@media (max-width: 768px) {
  .tracking-info-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.panel-section-title {
  color: #1f66ff !important;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: none;
  text-align: left;
  letter-spacing: 0.1px;
}

/* Tabelas de Info */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d9dee7;
  font-size: 13px;
}

.info-table td {
  border: 1px solid #d9dee7;
  padding: 10px 12px;
  vertical-align: middle;
  text-align: left;
  color: #333333;
}

.info-label {
  background: #f4f6f9;
  font-weight: 700;
  color: #1b2c43 !important;
  width: 150px;
}

.info-value {
  background: #ffffff;
}

/* Tabela de Taxação */
.tax-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d9dee7;
  font-size: 13px;
  margin-bottom: 24px;
}

.tax-table td {
  border: 1px solid #d9dee7;
  padding: 12px 14px;
  color: #1b2c43;
}

.tax-label {
  font-weight: 700;
  text-align: left;
}

.confirm-user-value {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  font-size: 15px;
}

.tax-value {
  font-weight: 700;
  text-align: right;
  width: 150px;
  color: #1b2c43;
}

.tax-row-total {
  background: #f0f4fa;
}

.tax-row-total .tax-value {
  color: #00315a;
  font-size: 16px;
  font-weight: 800;
}

/* Botão Continuar */
.continue-button {
  display: block;
  margin: 30px auto 24px !important;
  background: linear-gradient(135deg, #00315a 0%, #004a8f 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 52px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 49, 90, 0.3);
}

.continue-button:hover {
  background: linear-gradient(135deg, #004a8f 0%, #00315a 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 49, 90, 0.4);
}

/* Espaçamento e Estilo do Botão/Caixa de Taxa de Regularização */
.sticky-mobile-cta {
  margin-top: 24px !important;
  margin-bottom: 20px !important;
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

.sticky-mobile-btn {
  background: #f4f5f7 !important;
  border: 1px solid #cfd5dd !important;
  border-radius: 6px !important;
  padding: 12px 18px !important;
  color: #2b3648 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  width: 100% !important;
  max-width: 480px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.sticky-mobile-btn:hover {
  background: #eaedf1 !important;
  border-color: #b0b8c4 !important;
}


/* Timeline updates */
.warning-dot {
  background: #f9a825 !important;
  box-shadow: 0 3px 10px rgba(249, 168, 37, 0.4) !important;
  animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
  0%, 100% { box-shadow: 0 3px 10px rgba(249, 168, 37, 0.4); }
  50% { box-shadow: 0 3px 18px rgba(249, 168, 37, 0.6); }
}

.active-dot {
  background: #1976d2 !important;
  box-shadow: 0 3px 10px rgba(25, 118, 210, 0.3) !important;
}

/* =========================================
   TELA DE CARREGAMENTO PREMIUM
========================================= */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.loading-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

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

/* Floating particles */
.loading-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.loading-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 61, 122, 0.15);
  animation: floatParticle 6s ease-in-out infinite;
}

.loading-particles span:nth-child(1) { left: 15%; top: 20%; animation-delay: 0s; animation-duration: 5s; }
.loading-particles span:nth-child(2) { left: 70%; top: 15%; animation-delay: 1s; animation-duration: 7s; width: 3px; height: 3px; background: rgba(0, 61, 122, 0.2); }
.loading-particles span:nth-child(3) { left: 40%; top: 75%; animation-delay: 2s; animation-duration: 6s; }
.loading-particles span:nth-child(4) { left: 85%; top: 60%; animation-delay: 0.5s; animation-duration: 8s; width: 5px; height: 5px; background: rgba(255, 224, 0, 0.3); }
.loading-particles span:nth-child(5) { left: 25%; top: 55%; animation-delay: 3s; animation-duration: 5.5s; width: 3px; height: 3px; }
.loading-particles span:nth-child(6) { left: 60%; top: 85%; animation-delay: 1.5s; animation-duration: 6.5s; background: rgba(0, 61, 122, 0.15); }

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateY(-80px) scale(1.5); opacity: 0.6; }
  90% { opacity: 0; }
}

/* Content card */
.loading-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 28px 26px;
  background: #ffffff !important;
  border: 1px solid #dbe2ea !important;
  border-radius: 20px !important;
  backdrop-filter: none !important;
  width: 380px;
  max-width: 92vw;
  animation: contentSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: 0 20px 50px rgba(0, 30, 80, 0.12), 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

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

/* Logo */
.loading-logo-wrap {
  margin-bottom: 24px;
}

.loading-logo {
  width: 110px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(14%) sepia(85%) saturate(2200%) hue-rotate(195deg) brightness(85%) contrast(105%) !important;
  opacity: 1 !important;
}

/* Spinner rings */
.loading-spinner-wrapper {
  position: relative;
  width: 68px;
  height: 68px;
  margin-bottom: 24px;
}

.loading-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #cbd5e1 !important;
  border-top-color: #003d7a !important;
  border-right-color: #ffe000 !important;
  animation: spinRing 1.3s cubic-bezier(0.68, -0.15, 0.27, 1.15) infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 61, 122, 0.15));
}

.loading-ring-inner {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 2px solid #cbd5e1 !important;
  border-bottom-color: #003d7a !important;
  border-left-color: #ffc700 !important;
  animation: spinRing 1.6s cubic-bezier(0.68, -0.15, 0.27, 1.15) infinite reverse;
}

.loading-check-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  stroke: #003d7a !important;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
  animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

@keyframes pulseIcon {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.95); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* Text with fade transition */
.loading-text {
  color: #475569 !important;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600 !important;
  letter-spacing: -0.1px;
  margin: 0 0 20px;
  min-height: 22px;
  line-height: 1.4;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.loading-text.fade-out {
  opacity: 0 !important;
  transform: translateY(-8px) scale(0.98) !important;
}

.loading-text.fade-in {
  opacity: 0 !important;
  transform: translateY(8px) scale(0.98) !important;
}

/* Progress bar */
.loading-progress-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0 !important;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 20px;
}

.loading-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #003d7a 0%, #0056b3 50%, #ffe000 100%) !important;
  background-size: 200% 100% !important;
  animation: progressGlow 2s linear infinite !important;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 6px rgba(0, 61, 122, 0.3) !important;
}

/* Step indicators */
.loading-steps {
  display: flex;
  align-items: center;
  gap: 22px;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.45;
  transition: opacity 0.4s ease;
}

.loading-step.active {
  opacity: 1;
}

.loading-step.done {
  opacity: 0.95;
}

.loading-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1 !important;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.loading-step.active .loading-step-dot {
  background: #003d7a !important;
  box-shadow: 0 0 8px rgba(0, 61, 122, 0.45) !important;
}

.loading-step.done .loading-step-dot {
  background: #16a34a !important;
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.45) !important;
}

.loading-step span {
  color: #475569 !important;
  font-size: 11.5px;
  font-weight: 600 !important;
}
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.loading-step.active span {
  color: #ffffff;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .loading-content {
    width: 92%;
    max-width: 365px;
    padding: 28px 16px 22px;
    border-radius: 16px;
  }

  .loading-logo {
    width: 90px;
  }

  .loading-spinner-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .loading-check-icon {
    width: 22px;
    height: 22px;
  }

  .loading-text {
    font-size: 13px;
    padding: 0 8px;
  }

  .loading-steps {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .loading-step span {
    font-size: 10px;
  }
}

/* =========================================
   TELA DE SUCESSO - PAGAMENTO CONFIRMADO
========================================= */
.success-fullscreen {
  min-height: 100vh;
  background: #001a30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  font-family: 'Open Sans', Arial, sans-serif;
}

.success-card {
  background: rgba(5, 30, 55, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.success-badge-container {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.success-badge {
  width: 72px;
  height: 72px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 15px rgba(76, 175, 80, 0.8));
  animation: badgePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes badgePop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-badge svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 12px 0;
}

.success-description {
  color: #b0c4de;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 28px 0;
}

.success-summary-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 30px;
  text-align: left;
}

.success-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 10px;
}

.success-summary-row:last-child {
  margin-bottom: 0;
}

.success-summary-row span {
  color: #8fa0ba;
}

.success-summary-row strong {
  color: #ffffff;
  font-weight: 700;
}

.success-button {
  display: block;
  width: 100%;
  background: #ffc107;
  color: #000000;
  border: none;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  padding: 14px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.5px;
}

.success-button:hover {
  background: #e0a800;
}

@media (max-width: 768px) {
  .success-card {
    padding: 30px 20px;
    border-radius: 12px;
  }
  .success-title {
    font-size: 21px;
  }
  .success-description {
    font-size: 13px;
  }
  .success-summary-box {
    padding: 12px 16px;
  }
  .success-summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .success-summary-row span {
    font-size: 12px;
  }
  .success-summary-row strong {
    font-size: 13px;
  }
}

/* =========================================
   MOBILE FIT - ANTI DOUBLE-TAP ZOOM
   & PERFECT VIEWPORT FRAMING
========================================= */

/* Prevent double-tap zoom on ALL interactive elements */
a, button, input, textarea, select, label,
[role="button"], [tabindex] {
  touch-action: manipulation;
}

/* Prevent any element from causing horizontal overflow */
#page1, #page2, #page3, #page4 {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Page 2 — fix negative margin overflow on mobile */
@media (max-width: 768px) {
  #page2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  /* Tables — prevent horizontal overflow on small screens */
  .info-table,
  .tax-table,
  .tracking-table,
  .tracking-tax-table {
    width: 100% !important;
    table-layout: fixed;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .info-label {
    width: 120px;
  }

  .tax-value {
    width: 100px;
  }

  .info-table td,
  .tax-table td {
    font-size: 12px;
    padding: 8px 10px;
  }

  /* Timeline items — keep them compact */
  .timeline-content h3 {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
}

/* Page 3 — PIX fullscreen mobile fix */
@media (max-width: 768px) {
  .pix-fullscreen {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
  }

  .pix-left-panel {
    padding: 28px 16px !important;
  }

  .pix-right-panel {
    padding: 24px 16px !important;
  }

  .pix-copy-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .pix-copy-row input {
    font-size: 10px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .pix-copy-row button {
    width: 100% !important;
    justify-content: center !important;
  }

  .pix-action-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .pix-qr-frame {
    width: 180px !important;
    height: 180px !important;
    margin: 0 auto !important;
  }

  .pix-fees-card {
    width: 100% !important;
  }

  .pix-fees-card div {
    flex-wrap: wrap;
    gap: 4px !important;
  }
}

/* Page 4 — Success screen mobile fit */
@media (max-width: 768px) {
  .success-fullscreen {
    padding: 16px !important;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .success-card {
    padding: 28px 18px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Loading overlay — ensure it always fills the viewport exactly */
.loading-overlay {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .loading-content {
    padding: 16px !important;
    width: 100% !important;
    max-width: 90vw !important;
  }
}

/* Container safe-area — for phones with notch */
@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* Prevent text-size adjustments on orientation change */
@media (max-width: 768px) {
  * {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

/* Custom Responsive Payment Modal styles for mobile viewports */
@media (max-width: 768px) {
  .payment-modal-card {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    transform: translateY(100%) !important;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  
  .payment-modal-overlay {
    align-items: flex-end !important;
  }

  .payment-modal-overlay:not(.hidden) .payment-modal-card {
    transform: translateY(0) !important;
  }

  #checkoutIframe {
    height: calc(100vh - 60px) !important;
    height: calc(100dvh - 60px) !important;
  }
}

/* =========================================
   PÁGINA INTERMEDIÁRIA DE CONFIRMAÇÃO DE DADOS
========================================= */
.confirm-page-wrapper {
  max-width: 520px;
  margin: 0 auto 20px;
  animation: confirmFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Hero escuro com logo pulsante */
.confirm-hero {
  background: linear-gradient(160deg, #001229 0%, #00315a 50%, #003d7a 100%);
  border-radius: 16px 16px 0 0;
  padding: 36px 28px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.confirm-hero-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(28, 115, 232, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

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

.confirm-hero-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

/* Card de dados branco */
.confirm-data-card {
  background: #ffffff;
  border: 1px solid #dde3ec;
  border-top: none;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 20, 60, 0.08);
}

.confirm-data-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: #f5f8fc;
  border-bottom: 1px solid #e8edf4;
  font-size: 13px;
  font-weight: 700;
  color: #00315a;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.confirm-data-header svg {
  stroke: #00315a;
}

.confirm-data-rows {
  padding: 0;
}

.confirm-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
  border-bottom: 1px solid #f0f3f8;
  transition: background 0.15s;
}

.confirm-data-row:last-child {
  border-bottom: none;
}

.confirm-data-row:hover {
  background: #fafbfd;
}

.confirm-data-label {
  font-size: 13px;
  color: #6b7d93;
  font-weight: 500;
}

.confirm-data-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

.confirm-data-row-alert {
  background: #fef8f8;
}

.confirm-data-row-alert:hover {
  background: #fef2f2;
}

.confirm-badge-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c62828;
  font-size: 13px;
  font-weight: 700;
}

.confirm-alert-dot {
  width: 8px;
  height: 8px;
  background: #c62828;
  border-radius: 50%;
  animation: alertBlink 1.5s ease-in-out infinite;
}

@keyframes alertBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Botões */
.confirm-actions-v2 {
  margin-top: 16px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.confirm-cta-main {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #00315a 0%, #004a8f 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 49, 90, 0.3);
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.confirm-cta-main:hover {
  background: linear-gradient(135deg, #004a8f 0%, #00315a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 49, 90, 0.4);
}

.confirm-cta-back {
  background: none;
  border: none;
  color: #8899aa;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s;
}

.confirm-cta-back:hover {
  color: #00315a;
}

@media (max-width: 600px) {
  .confirm-page-wrapper {
    margin: 0 0 20px;
  }
  .confirm-hero {
    padding: 28px 20px 24px;
    border-radius: 12px 12px 0 0;
  }
  .confirm-data-card {
    border-radius: 0 0 12px 12px;
  }
  .confirm-data-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 18px;
  }
  .confirm-data-value {
    text-align: left;
  }
}

/* Backward compat - keep old classes from breaking */
.confirm-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 42, 106, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 61, 122, 0.1);
  padding: 40px;
  max-width: 580px;
  margin: 30px auto 50px;
  animation: confirmFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
  overflow: hidden;
}

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

.confirm-card-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.confirm-close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ffffff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.confirm-close-btn:hover {
  background: #f1f5f9;
  transform: scale(1.05);
}

.confirm-logo-circle {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Anel externo girando (estilo loading) */
.confirm-logo-circle::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.06);
  border-top-color: #ffe000;
  border-right-color: rgba(0, 127, 255, 0.7);
  animation: confirmSpin 2.2s cubic-bezier(0.68, -0.15, 0.27, 1.15) infinite;
  filter: drop-shadow(0 0 4px rgba(255, 224, 0, 0.3)) drop-shadow(0 0 4px rgba(0, 127, 255, 0.3));
}

/* Anel interno girando invertido */
.confirm-logo-circle::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.04);
  border-bottom-color: rgba(255, 224, 0, 0.5);
  border-left-color: rgba(0, 127, 255, 0.5);
  animation: confirmSpin 3s cubic-bezier(0.68, -0.15, 0.27, 1.15) infinite reverse;
}

/* Esconde a div extra (não precisa mais) */
.extra-pulse-ring {
  display: none;
}

@keyframes confirmSpin {
  to { transform: rotate(360deg); }
}

.confirm-logo-circle img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.confirm-badge-small {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #15803d;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.confirm-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.confirm-subtitle {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.confirm-user-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 24px;
  margin-bottom: 28px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.confirm-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.confirm-user-row:last-child {
  border-bottom: none;
}

.confirm-user-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

.icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-blue,
.icon-purple,
.icon-green,
.icon-red {
  background: #f1f5f9;
  color: #00416b;
}

.confirm-user-value {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  font-size: 15px;
}

.confirm-badge-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d32f2f;
  background: #ffebee;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12.5px;
}

.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.confirm-btn-main {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #00315a 0%, #004a8f 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(0, 49, 90, 0.3);
  transition: all 0.25s ease;
  position: relative;
}

.btn-icon-shield {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

.confirm-btn-main:hover {
  background: linear-gradient(135deg, #004a8f 0%, #00315a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 49, 90, 0.4);
}

.confirm-separator {
  position: relative;
  width: 150px;
  text-align: center;
  margin: 4px 0;
}

.confirm-separator::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #cbd5e1;
}

.confirm-separator::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #cbd5e1;
}

.confirm-separator span {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.confirm-btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #5a6b80;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.confirm-btn-secondary:hover {
  opacity: 0.8;
}

.confirm-btn-secondary:hover {
  color: #0f172a;
}

@media (max-width: 600px) {
  .confirm-card {
    padding: 20px 16px;
    margin: 10px 0 20px;
  }
  .confirm-user-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

#busca-portal {
  display: flex !important;
  align-items: center !important;
}

@media (max-width: 992px) {
  .bt-menu-hamburguer {
    display: flex !important;
    align-items: center !important;
  }
  .links-menu-superior {
    display: none !important;
  }
  .login-txt {
    display: none !important;
  }
}

/* =========================================
   HEADER & ICON SIZE CONSTRAINTS FIX
========================================= */
.logo-correios img,
.logo-correios svg {
  height: 34px !important;
  max-height: 34px !important;
  width: auto !important;
  display: block !important;
}

.links-menu-meu-correios img,
.bt-login img {
  height: 24px !important;
  max-height: 24px !important;
  width: auto !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

#busca-portal img,
.bt-busca img {
  height: 22px !important;
  max-height: 22px !important;
  width: auto !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.bt-menu-hamburguer i,
.bt-acessibilidade i,
.ic-marcador-out,
.ic-menu-hamburguer-out {
  font-size: 16px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

/* =========================================
   MOBILE FIXES FOR BANNER SPACING & ACESSO RÁPIDO
========================================= */
@media (max-width: 768px) {
  /* Reduz espaço em branco excessivo no mobile */
  .container {
    padding-bottom: 12px !important;
  }
  .banner-block {
    margin-bottom: 12px !important;
  }
  .portletWrapper {
    margin-top: 0 !important;
  }
  .portlet.portlet_acesso_rapido {
    margin-top: 0 !important;
    padding: 14px 10px !important;
  }

  /* Reduz tamanho gigante do Acesso Rápido no mobile */
  .portlet.portlet_acesso_rapido .titulo-detalhe,
  .portlet_acesso_rapido h3.titulo-detalhe {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin: 6px 0 12px 10px !important;
  }
  .acesso-rapido-links ul.lista-icone {
    padding: 0 0 8px !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px 4px !important;
  }
  .acesso-rapido-links .lista-icone li {
    width: 100% !important;
    margin: 0 !important;
  }
  .acesso-rapido-links .lista-icone li a {
    min-width: 0 !important;
    padding: 4px 2px !important;
  }
  .acesso-rapido-links .lista-icone li img {
    width: 38px !important;
    height: 38px !important;
    object-fit: contain !important;
    margin: 0 auto 4px !important;
  }
  .acesso-rapido-links .lista-icone li span {
    font-size: 11px !important;
    line-height: 1.2 !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
  }
}



/* Toast de Aviso Oficial Correios */
.toast-aviso-correios {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #003580;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 53, 128, 0.35);
  z-index: 9999999;
  border: 1px solid #ffcc00;
  max-width: 90%;
  box-sizing: border-box;
}


/* Estilo do Breadcrumb Azul Oficial */
.breadcrumb {
  font-size: 13px;
  color: #003580 !important;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: #003580 !important;
  text-decoration: none;
  font-size: 13px;


/* Toast de Aviso Oficial Correios */
.toast-aviso-correios {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #003580;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 53, 128, 0.35);
  z-index: 9999999;
  border: 1px solid #ffcc00;
  max-width: 90%;
  box-sizing: border-box;
}


/* Estilo do Breadcrumb Azul Oficial */
.breadcrumb {
  font-size: 13px;
  color: #003580 !important;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: #003580 !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.bc-sep {
  color: #003580 !important;
  font-size: 12px;
  margin: 0 4px;
}

/* Animação de Destaque para o Botão Consultar quando o CPF é Válido */
@keyframes consultarPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 203, 5, 0.7); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(255, 203, 5, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 203, 5, 0); }
}

.btn-cpf-valid-pulse {
  animation: consultarPulse 1.5s infinite ease-in-out !important;
  background: #FFCB05 !important;
  color: #002266 !important;
  font-weight: 800 !important;
  border: 1px solid #f59e0b !important;
}

/* Ajuste do tamanho da Logo do Card no Mobile */
@media (max-width: 768px) {
  .home-card-logo-img {
    height: 13px !important;
    max-width: 75px !important;
    opacity: 0.8 !important;
  }
}

/* Fundo destacado para a seção Acesso Rápido */
.portletWrapper,
.portlet.portlet_acesso_rapido {
  background-color: #e2e8f1 !important;
  border-top: 1px solid #d0dbe7 !important;
  border-bottom: 1px solid #d0dbe7 !important;
}
