/* ==========================================================================
   EcoRastro Caçambas - Design System & App Styles
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #090D16;
  --bg-card: rgba(18, 24, 38, 0.85);
  --bg-card-hover: rgba(28, 36, 56, 0.9);
  --bg-input: #131B2E;
  
  --primary: #FF6B00;
  --primary-hover: #FF852E;
  --primary-glow: rgba(255, 107, 0, 0.35);
  
  --secondary: #3B82F6;
  --secondary-glow: rgba(59, 130, 246, 0.3);
  
  --success: #10B981;
  --success-glow: rgba(16, 185, 129, 0.3);
  
  --warning: #F59E0B;
  --danger: #EF4444;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 107, 0, 0.5);

  /* Typography */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-orange: 0 8px 24px var(--primary-glow);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 107, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(59, 130, 246, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.5;
}

/* App Container (Phone Frame on Desktop) */
.app-wrapper {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background: var(--bg-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  transition: max-width 0.3s ease;
}

@media (min-width: 768px) {
  .app-wrapper {
    min-height: 880px;
    height: 90vh;
    max-height: 920px;
    border-radius: 36px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
    overflow: hidden;
  }
  
  .app-wrapper.expanded {
    max-width: 900px;
  }
}

/* Top App Bar */
.app-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), #D95200);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-orange);
  font-size: 1.2rem;
}

.brand-logo span span {
  color: var(--primary);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  color: var(--text-main);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

/* Main Content Views */
.app-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Hide scrollbar for smooth app feel */
.app-body::-webkit-scrollbar {
  width: 6px;
}
.app-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.view-section {
  display: none;
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-direction: column;
  gap: 20px;
}

.view-section.active {
  display: flex;
}

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

/* --------------------------------------------------------------------------
   Search View (Tela Inicial)
   -------------------------------------------------------------------------- */
.search-hero {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.search-hero h1 {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}

.search-hero p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.input-wrapper i {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.input-control {
  width: 100%;
  padding: 14px 14px 14px 44px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.98rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.input-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-control:focus + i,
.input-wrapper:focus-within i {
  color: var(--primary);
}

.auto-address-preview {
  font-size: 0.8rem;
  color: var(--success);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), #E05800);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-orange);
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 107, 0, 0.45);
  background: linear-gradient(135deg, var(--primary-hover), #E05800);
}

.btn-primary:active {
  transform: translateY(0);
}

.demo-box {
  margin-top: 14px;
  text-align: center;
  border-top: 1px dashed var(--border-color);
  padding-top: 14px;
}

.btn-demo {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-demo:hover {
  background: rgba(255, 107, 0, 0.1);
  color: var(--primary);
  border-color: var(--primary-glow);
}

/* Quick Features Info Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.15);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.73rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Status View (Resultado do Rastreio)
   -------------------------------------------------------------------------- */

/* Top Order Summary Card */
.order-header-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.order-code-group h2 {
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-code-group p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.status-badge.in-transit {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.delivered {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.scheduled {
  background: rgba(59, 130, 246, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Timeline Indicator */
.timeline-container {
  position: relative;
  margin: 10px 0;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: var(--bg-input);
  z-index: 1;
  border-radius: 2px;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: 2px;
  transition: width 0.5s ease;
  width: 66%; /* Dynamic */
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
  text-align: center;
}

.step-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.step-item.completed .step-icon-bubble {
  background: var(--success);
  border-color: var(--success);
  color: white;
  box-shadow: var(--success-glow);
}

.step-item.current .step-icon-bubble {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-orange);
  transform: scale(1.15);
}

.step-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-item.completed .step-title,
.step-item.current .step-title {
  color: var(--text-main);
  font-weight: 700;
}

.step-time {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* Map Display Container */
.map-card-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: #111827;
}

#map {
  width: 100%;
  height: 220px;
  z-index: 1;
}

.map-overlay-info {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eta-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eta-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 107, 0, 0.2);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.eta-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.eta-text strong {
  font-size: 0.92rem;
  color: var(--text-main);
}

/* Driver & Vehicle Details Card */
.driver-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.driver-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.driver-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.driver-avatar-box {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  border: 2px solid #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
}

.driver-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.driver-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.driver-meta p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.vehicle-plate {
  background: #ffffff;
  color: #000000;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-family: monospace;
  font-size: 0.78rem;
  border: 2px solid #000000;
  display: inline-block;
  margin-top: 4px;
}

.btn-contact {
  background: #25D366;
  color: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
  text-decoration: none;
}

.btn-contact:hover {
  transform: scale(1.1);
}

/* Location Details Card */
.details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.detail-row i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 2px;
}

.detail-text label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.detail-text p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Action Buttons Bar */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  color: var(--primary);
}

.btn-secondary.full-width {
  grid-column: span 2;
}

.btn-secondary.btn-danger-action {
  color: var(--text-muted);
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-secondary.btn-danger-action:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.45);
  color: #EF4444;
}

/* --------------------------------------------------------------------------
   Modal Components
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background: #0F172A;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.ctr-certificate {
  background: #ffffff;
  color: #1e293b;
  padding: 20px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  border: 2px dashed #CBD5E1;
  margin-bottom: 16px;
}

.ctr-header {
  text-align: center;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.ctr-header h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #0F172A;
}

.ctr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.ctr-field strong {
  display: block;
  font-size: 0.7rem;
  color: #64748B;
  text-transform: uppercase;
}

.ctr-field span {
  font-weight: 700;
  color: #0F172A;
}

.ctr-footer {
  text-align: center;
  font-size: 0.7rem;
  color: #10B981;
  font-weight: 700;
  padding-top: 8px;
  border-top: 1px solid #E2E8F0;
}

/* Footer Copyright */
.app-footer {
  text-align: center;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.4);
  margin-top: auto;
}

.app-footer p {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: 90%;
  max-width: 420px;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 107, 0, 0.4);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.toast.success i { color: var(--success); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--primary); }

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

/* ==========================================================================
   TELA DE BLOQUEIO PARA DISPOSITIVOS APPLE (iOS / iPhone / iPad)
   ========================================================================== */
.ios-block-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(30, 41, 59, 0.95) 0%, rgba(9, 13, 22, 0.99) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.ios-block-card {
  background: rgba(18, 24, 38, 0.96);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(239, 68, 68, 0.12);
  position: relative;
  overflow: hidden;
}

.ios-block-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.ios-block-icon-box {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 2px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-icon-apple {
  font-size: 34px;
  color: #f8fafc;
}

.ios-icon-slash {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  background: #ef4444;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 2px solid #0f172a;
}

.ios-tag-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.ios-block-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.ios-block-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.ios-block-desc strong {
  color: #fff;
}

.ios-instruction-box {
  background: rgba(11, 17, 32, 0.7);
  border: 1px dashed rgba(255, 107, 0, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
  margin-bottom: 20px;
}

.ios-instruction-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.ios-instruction-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ios-instruction-text strong {
  color: #fff;
}

.ios-compat-status {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.compat-item {
  flex: 1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.74rem;
}

.compat-item.active {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.compat-item.blocked {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.ios-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ios-btn-copy {
  width: 100%;
  padding: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  justify-content: center;
}

.ios-btn-wa {
  width: 100%;
  padding: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  justify-content: center;
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.3);
  text-decoration: none;
}

.ios-btn-wa:hover {
  background: #25D366;
  color: #fff;
}

/* ==========================================================================
   MODAL DE CANCELAMENTO DE PEDIDO & PAGAMENTO TAXA CTR (R$ 19,99)
   ========================================================================== */
.modal-cancel-box {
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
}

.cancel-notice-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
}

.cancel-notice-icon {
  color: var(--warning);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.cancel-notice-text h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FBBF24;
  margin-bottom: 4px;
}

.cancel-notice-text p {
  font-size: 0.78rem;
  color: #E2E8F0;
  line-height: 1.45;
}

.cancel-summary-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.cancel-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

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

.cancel-summary-row.highlight {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 700;
}

.cancel-amount-tag {
  color: #EF4444;
  font-size: 1.2rem;
  font-weight: 800;
}

.cancel-pix-container {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
}

.cancel-pix-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.cancel-pix-loading i {
  font-size: 2.2rem;
  color: var(--primary);
}

.cancel-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.cancel-qr-canvas {
  background: #FFFFFF;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  min-width: 180px;
  min-height: 180px;
}

.cancel-qr-canvas img {
  max-width: 160px;
  height: auto;
  display: block;
}

.cancel-scan-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.cancel-live-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--warning);
  font-weight: 600;
  margin-bottom: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-full);
  padding: 6px 12px;
}

.cancel-copy-section {
  margin-bottom: 10px;
  text-align: left;
}

.cancel-copy-section label {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.cancel-input-copy-group {
  display: flex;
  gap: 6px;
}

.cancel-input-copy-group input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: monospace;
  font-size: 0.78rem;
  padding: 8px 10px;
  outline: none;
}

.cancel-input-copy-group input:focus {
  border-color: var(--primary);
}

.btn-copy-pix {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.cancel-timer-badge {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.cancel-timer-badge strong {
  color: var(--warning);
}

/* Estado de Sucesso */
.cancel-success-box {
  text-align: center;
  padding: 10px 0 6px 0;
}

.cancel-success-icon {
  font-size: 3.8rem;
  color: var(--success);
  margin-bottom: 8px;
  display: inline-block;
  animation: pulseScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pulseScale {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.cancel-success-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.cancel-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.cancel-success-message {
  font-size: 0.9rem;
  color: #E2E8F0;
  line-height: 1.55;
  margin-bottom: 18px;
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid var(--success);
  padding: 12px 14px;
  text-align: left;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cancel-protocol-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
  text-align: left;
}

.protocol-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

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

.protocol-row strong {
  color: var(--text-main);
}

.text-warning {
  color: #F59E0B !important;
}

.status-badge.cancelling {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Aviso de Estorno Automático em até 6h */
.cancel-refund-notice-box {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
}

.cancel-refund-icon {
  color: #60A5FA;
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.cancel-refund-text strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: #93C5FD;
  display: block;
  margin-bottom: 3px;
}

.cancel-refund-text p {
  font-size: 0.78rem;
  color: #E2E8F0;
  line-height: 1.45;
  margin: 0;
}

.cancel-refund-status-card {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}

.cancel-refund-status-icon {
  width: 34px;
  height: 34px;
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.cancel-refund-status-content strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: #93C5FD;
  display: block;
  margin-bottom: 3px;
}

.cancel-refund-status-content p {
  font-size: 0.78rem;
  color: #E2E8F0;
  line-height: 1.45;
  margin: 0;
}



