:root {
  /* Delta Logística — Navy + Ciano elétrico (dark premium) */
  --blue-900: #020617; /* Midnight navy (fundo) */
  --blue-800: #0b1120;
  --blue-700: #1e293b;
  --blue-600: #334155;
  --primary: #06B6D4; /* Ciano elétrico (marca) */
  --primary-hover: #0891B2;
  --accent: #22D3EE; /* Ciano claro (highlights/logo) */
  --accent-hover: #06B6D4;
  --success: #16A34A;
  --text-light: #f8fafc;
  --text-dim: #94a3b8;
  --bg-light: #F8FAFC;
  --bg-white: #ffffff;
  --text-dark: #1E293B;
  --border-color: #E2E8F0;
  --border-dark: #334155;
  --radius: 12px;
  --transition: 0.3s ease;
  --font-main: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Semantic color tokens — marca em ciano; status mantidos distintos */
  --color-primary: #06B6D4;
  --color-primary-hover: #0891B2;
  --color-cta: #06B6D4;
  --color-cta-hover: #0891B2;
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-text: #1E293B;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  --color-success: #16A34A;
  --color-warning: #D97706;
  --color-danger: #DC2626;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   TOP NAVIGATION
========================================= */
.top-nav {
  background-color: var(--bg-white);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.nav-logo strong {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--blue-600);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

/* =========================================
   HERO SECTION (DARK)
========================================= */
.hero-section {
  position: relative;
  background-color: var(--blue-900);
  color: var(--text-light);
  padding: 5rem 1rem 8rem 1rem; /* Extra padding at bottom for overlap */
  text-align: center;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--blue-800) 1px, transparent 1px), linear-gradient(90deg, var(--blue-800) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.badge svg {
  color: var(--primary);
}

.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.highlight-text {
  color: var(--primary); /* Escaping purple ban */
  position: relative;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--accent);
  opacity: 0.8;
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 3rem auto;
  font-weight: 400;
}

/* SEARCH FORM */
.search-form {
  display: flex;
  width: 100%;
  max-width: 650px;
  background-color: var(--blue-800);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 0.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 1rem;
}

.search-icon {
  color: var(--text-dim);
  margin-right: 10px;
}

.search-form input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  outline: none;
}

.search-form input::placeholder {
  color: var(--blue-600);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.cta-button {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0 1.5rem;
  height: 48px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.cta-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* STATS */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  width: 100%;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
}

.stat-item svg {
  color: var(--border-dark);
}

.stat-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.stat-text strong {
  color: var(--text-light);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.stat-text span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =========================================
   PARTNERS SECTION
========================================= */
.partners-section {
  background-color: var(--blue-900);
  padding: 0 1rem 4rem 1rem;
  text-align: center;
}

.partners-title {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.partners-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.partner-card {
  background-color: var(--bg-white);
  border-radius: var(--radius);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 70px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  opacity: 0.8;
  transition: var(--transition);
}

.partner-card:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* =========================================
   RESULTS CONTAINER (OVERLAPPING)
========================================= */
.results-container {
  max-width: 900px;
  margin: -5rem auto 4rem auto; /* pulls up to overlap dark hero */
  padding: 0 1rem;
  position: relative;
  z-index: 20;
}

.no-results {
  background-color: var(--bg-white);
  padding: 4rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-top: 2rem;
}

.results__empty-icon {
  background-color: var(--bg-light);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: var(--blue-600);
}

.results__empty-title {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--blue-900);
  margin-bottom: 0.5rem;
}

.results__empty-text {
  color: var(--blue-600);
}

/* =========================================
   CARDS
========================================= */
.floating-dark-card {
  background-color: var(--blue-800);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  color: var(--text-light);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.status-badge {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--success);
  border-radius: 50%;
}

/* Status colors dynamically overriden */
.status-badge.info {
  background-color: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--primary);
}
.status-badge.info .status-dot { background-color: var(--primary); }

.status-badge.warning {
  background-color: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
  color: var(--accent);
}
.status-badge.warning .status-dot { background-color: var(--accent); }

.status-badge.danger {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}
.status-badge.danger .status-dot { background-color: #ef4444; }


.dark-card-icon {
  color: var(--text-dim);
}

.tracking-data-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.data-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.data-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.data-value {
  font-size: 1rem;
  font-weight: 700;
}

.data-value.massive {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 1px;
}

/* PROGRESS BAR */
.progress-block {
  width: 100%;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.progress-label {
  color: var(--text-dim);
}

.progress-percent {
  color: var(--text-light);
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--border-dark);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #3B82F6);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill.danger {
  background: var(--color-danger);
}

.progress-fill.warning {
  background: var(--color-cta);
}

.progress-fill.success {
  background: var(--color-success);
}

/* LIGHT CARDS */
.light-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.light-card {
  background-color: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.light-card-icon {
  color: var(--blue-700);
}

.light-card-info {
  display: flex;
  flex-direction: column;
}

.light-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.light-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-900);
}

/* =========================================
   TIMELINE SECTION
========================================= */
.timeline-wrapper {
  background-color: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  overflow: hidden;
}

.timeline-header-row {
  display: flex;
  background-color: var(--primary);
  color: white;
  padding: 12px 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.th-col {
  flex: 1;
}

.th-obj { flex: 0 0 60px; }
.th-status { flex: 1; }
.th-date { flex: 0 0 150px; text-align: right; }

.timeline-body {
  padding: 2rem 20px;
  position: relative;
}

/* TIMELINE ITEM */
.timeline-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

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

.ti-obj {
  flex: 0 0 60px;
  position: relative;
  display: flex;
  justify-content: flex-start;
}

/* Vertical Line connecting timeline icons */
.ti-obj::after {
  content: '';
  position: absolute;
  top: 36px;
  left: 17px; /* Matches center of icon background */
  width: 2px;
  height: calc(100% + 2rem - 36px);
  background-color: var(--accent); /* Yellow/Orange line */
  z-index: 1;
}

.timeline-item:last-child .ti-obj::after {
  display: none;
}

.ti-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  z-index: 2;
  position: relative;
}

.timeline-item.delivered .ti-icon {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.timeline-item.delivered .ti-obj::after {
  background-color: var(--success);
}

.ti-status {
  flex: 1;
  padding-right: 1rem;
}

.ti-title {
  font-weight: 700;
  color: var(--blue-900);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.ti-desc {
  font-size: 0.85rem;
  color: var(--blue-600);
  line-height: 1.4;
}

.ti-location {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.ti-date {
  flex: 0 0 150px;
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
  background-color: var(--bg-light);
  padding: 4rem 2rem 2rem 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--blue-600);
  font-size: 0.9rem;
  max-width: 300px;
  margin-top: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--blue-900);
}

.footer-logo strong {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.link-group h4 {
  font-size: 0.75rem;
  color: var(--blue-900);
  margin-bottom: 1rem;
  font-weight: 800;
}

.link-group a {
  display: block;
  text-decoration: none;
  color: var(--blue-600);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.link-group a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-badges {
  display: flex;
  gap: 1rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--border-color);
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--blue-700);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    align-items: center;
  }
  
  .stat-item {
    font-size: 0.9rem;
  }

  .stat-text strong {
    font-size: 1rem;
  }
  
  .search-form {
    /* Manteve a barra integrada e bonita mesmo no responsivo */
    flex-direction: row;
    background-color: var(--blue-800);
    border: 1px solid var(--border-dark);
    padding: 0.5rem;
    gap: 5px;
  }
  
  .search-input-wrapper {
    background: transparent;
    border: none;
    height: 48px;
    width: auto;
    flex: 1;
  }

  .cta-button {
    width: auto;
    justify-content: center;
    height: 48px;
    padding: 0 1rem;
  }
  
  .cta-button span {
    display: none; /* Esconde o texto "RASTREAR" em telas muito curtas, deixa so a setinha */
  }
  
  .light-cards-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  /* Timeline Responsive */
  .timeline-header-row {
    display: none; /* Hide table header on mobile */
  }
  
  .timeline-item {
    flex-direction: column;
    padding-left: 56px;
  }
  
  .ti-obj {
    position: absolute;
    left: 0;
    top: 0;
  }
  
  .ti-date {
    text-align: left;
    margin-top: 8px;
  }
}

/* ============================================
   TIMELINE INLINE ACTION EMBED
   ============================================ */

.action-card-embed {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.02) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 1.15rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  animation: fadeSlideIn 0.4s ease;
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.03);
}

.action-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 0.5rem;
}

.action-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #F59E0B;
  animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.action-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(245, 158, 11, 0.2);
  flex-wrap: wrap;
}

.action-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-cta);
  letter-spacing: -0.03em;
  line-height: 1;
}

.action-pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.4rem;
  min-height: 44px;
  background: var(--color-cta);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  font-family: var(--font-main);
}

.action-pay-btn:hover {
  background: var(--color-cta-hover);
  transform: translateY(-1px);
}

.action-pay-btn:active {
  transform: translateY(0) scale(0.98);
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================
   PIX MODAL — REDESIGN PRO (tema claro + credibilidade)
   ============================================ */

.pix-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn 0.2s ease;
}

@media (min-width: 520px) {
  .pix-modal {
    align-items: center;
    padding: 1rem;
  }
}

.pix-modal-content {
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  animation: slideUp 0.30s cubic-bezier(0.34, 1.2, 0.64, 1);
  font-family: var(--font-main);
}

@media (min-width: 520px) {
  .pix-modal-content {
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.06);
  }
}

/* ── Header azul ── */
.pix-modal-header {
  background: var(--color-primary);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pix-modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pix-shield-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.pix-modal-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.15rem 0;
  letter-spacing: -0.01em;
}

.pix-modal-subtitle {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  font-weight: 500;
}

.pix-modal-close {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

.pix-modal-close:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

/* ── Amount ── */
.pix-amount-block {
  text-align: center;
  padding: 1.5rem 1.5rem 0.5rem;
  border-bottom: 1px solid #F1F5F9;
}

.pix-amount-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.pix-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  letter-spacing: -0.02em;
}

.pix-currency {
  font-size: 1.1rem;
  font-weight: 600;
  color: #64748B;
  margin-right: 0.25rem;
}

.pix-amount-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1;
}

.pix-cents {
  font-size: 1.35rem;
  font-weight: 700;
  color: #64748B;
}

/* ── QR Area ── */
.pix-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1.5rem 0.75rem;
}

/* Loading skeleton */
.pix-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0;
}

.pix-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.skeleton-qr {
  width: 176px;
  height: 176px;
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  border-radius: 12px;
  animation: shimmer 1.4s infinite;
}

.skeleton-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.skeleton-line {
  height: 10px;
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  border-radius: 5px;
  animation: shimmer 1.4s infinite;
}

.skeleton-line.w80 { width: 80%; }
.skeleton-line.w60 { width: 60%; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.pix-qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
  color: var(--color-success);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 0.9rem;
  letter-spacing: 0.02em;
}

.pix-qr-wrapper {
  text-align: center;
  width: 100%;
}

.pix-qr-frame {
  background: #fff;
  padding: 0.65rem;
  border-radius: 14px;
  box-shadow: 0 0 0 1px #E2E8F0, 0 4px 16px rgba(0,0,0,0.08);
  display: inline-block;
  margin: 0 auto 0.9rem;
}

#pixQrCode {
  width: 176px;
  height: 176px;
  display: block;
  border-radius: 6px;
}

.pix-qr-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 500;
  margin-bottom: 0;
}

/* ── Divider ── */
.pix-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #CBD5E1;
}

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

.pix-divider span {
  color: #94A3B8;
  white-space: nowrap;
}

/* ── Copy Area ── */
.pix-copy-area {
  padding: 0.6rem 1.5rem 0;
}

.pix-input-group {
  display: flex;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.3rem 0.3rem 0.3rem 0.75rem;
  gap: 0.4rem;
  align-items: center;
  transition: border-color 0.2s ease;
}

.pix-input-group:focus-within {
  border-color: var(--color-primary);
  background: #fff;
}

.pix-input-group input {
  min-width: 0;
  flex: 1 1 0%;
  background: transparent;
  border: none;
  padding: 0;
  color: #475569;
  font-size: 0.72rem;
  font-family: ui-monospace, 'SF Mono', monospace;
  outline: none;
  text-overflow: ellipsis;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  border-radius: 8px;
  padding: 0 1rem;
  min-height: 40px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
  white-space: nowrap;
  font-family: var(--font-main);
  background: var(--color-cta);
  color: #fff;
}

.copy-btn:hover {
  background: var(--color-cta-hover);
  transform: translateY(-1px);
}

.copy-btn:active {
  transform: scale(0.97);
}

/* ── Footer: expiry + trust ── */
.pix-footer {
  padding: 0.75rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.pix-expiry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--color-warning);
  font-size: 0.78rem;
  font-weight: 600;
}

.pix-expiry strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pix-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid #F1F5F9;
  width: 100%;
}

.pix-trust span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Status ── */
.pix-status {
  margin: 0 1.5rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.pix-status.success {
  background: rgba(22, 163, 74, 0.08);
  color: var(--color-success);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.pix-status.error {
  background: rgba(220, 38, 38, 0.07);
  color: var(--color-danger);
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.pix-status.pending {
  background: rgba(249, 115, 22, 0.07);
  color: var(--color-cta);
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.pix-status.warning {
  background: rgba(217, 119, 6, 0.07);
  color: var(--color-warning);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile improvements */
@media (max-width: 480px) {
  #pixQrCode {
    width: 160px;
    height: 160px;
    max-width: 160px;
  }

  .pix-modal-content {
    padding: 1.5rem 1.25rem 2rem;
  }

  .action-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .action-pay-btn {
    justify-content: center;
    width: 100%;
  }

  .action-amount {
    text-align: center;
  }
}

/* Timeline status-specific icon colors */
.ti-icon.status-em-transito,
.ti-icon.status-postado,
.ti-icon.status-centro-local {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
}

.ti-icon.status-saiu-entrega,
.ti-icon.status-taxacao {
  background-color: rgba(217, 119, 6, 0.12);
  color: var(--color-warning);
}

.ti-icon.status-falha-entrega {
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--color-danger);
}

.ti-icon.status-entregue,
.ti-icon.status-pago {
  background-color: rgba(22, 163, 74, 0.1);
  color: var(--color-success);
}

.ti-icon.status-devolucao {
  background-color: rgba(100, 116, 139, 0.1);
  color: var(--color-text-muted);
}
