/* ========================
   CSS Variables & Reset
   ======================== */
:root {
  /* ========================
     Primary Brand Colors
     ======================== */
  --primary: #6366f1;
  /* Indigo 500 - Primary actions */
  --primary-hover: #4f46e5;
  /* Indigo 600 - Hover state */
  --primary-active: #4338ca;
  /* Indigo 700 - Active/pressed */
  --primary-dark: #4f46e5;
  /* Legacy support */
  --secondary: #8b5cf6;
  /* Purple 500 - Secondary accent */

  /* ========================
     Sidebar Colors (Professional Blue)
     ======================== */
  --sidebar-bg: #1e40af;
  /* Blue 700 - Professional corporate */
  --sidebar-hover: #1d4ed8;
  /* Blue 600 - Hover state */
  --sidebar-active: #2563eb;
  /* Blue 500 - Active item */

  /* ========================
     Status Colors (Semantic)
     ======================== */
  --status-pending: #9ca3af;
  /* Gray 400 */
  --status-deposito: #3b82f6;
  /* Blue 500 */
  --status-transito: #f59e0b;
  /* Amber 500 */
  --status-proceso: #f97316;
  /* Orange 500 */
  --status-procesando: #a855f7;
  /* Purple 500 */
  --status-disponible: #06b6d4;
  /* Cyan 500 */
  --status-preparando: #22c55e;
  /* Green 500 */
  --status-retirado: #6b7280;
  /* Gray 500 */

  /* Success, Warning, Error, Info (Universal) */
  --success: #10b981;
  /* Green 500 */
  --success-light: #d1fae5;
  /* Green 100 */
  --warning: #f59e0b;
  /* Amber 500 */
  --warning-light: #fef3c7;
  /* Amber 100 */
  --error: #ef4444;
  /* Red 500 */
  --error-light: #fee2e2;
  /* Red 100 */
  --info: #3b82f6;
  /* Blue 500 */
  --info-light: #dbeafe;
  /* Blue 100 */

  /* ========================
     Backgrounds (Slate - Better Contrast)
     ======================== */
  --bg-primary: #0f172a;
  /* Slate 900 - Main background */
  --bg-secondary: #1e293b;
  /* Slate 800 - Cards, elevated surfaces */
  --bg-card: #334155;
  /* Slate 700 - Interactive elements */
  --bg-input: #1e293b;
  /* Slate 800 - Form inputs */
  --bg-tertiary: #334155;
  /* Slate 700 - Hover states */

  /* ========================
     Text Colors (WCAG AAA Compliant)
     ======================== */
  --text-primary: #f8fafc;
  /* Slate 50 - Main text, 14.6:1 contrast */
  --text-secondary: #cbd5e1;
  /* Slate 300 - Secondary text, 8.4:1 contrast */
  --text-tertiary: #94a3b8;
  /* Slate 400 - Tertiary/disabled, 5.2:1 contrast */
  --text-muted: #94a3b8;
  /* Legacy support */

  /* ========================
     Typography Scale
     ======================== */
  --font-display: 2rem;
  /* 32px - Page headers */
  --font-heading: 1.5rem;
  /* 24px - Section headers */
  --font-subheading: 1.125rem;
  /* 18px - Card headers */
  --font-body: 0.938rem;
  /* 15px - Body text */
  --font-caption: 0.813rem;
  /* 13px - Small text */

  /* ========================
     Borders
     ======================== */
  --border-color: #475569;
  /* Slate 600 */
  --border-light: rgba(255, 255, 255, 0.1);
  /* Subtle borders */
  --border-radius: 12px;
  --border-radius-sm: 8px;

  /* ========================
     Shadows (Enhanced Depth)
     ======================== */
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);

  /* ========================
     Transitions
     ======================== */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a2e 100%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* ========================
   Typography
   ======================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.3;
}

h1 {
  font-size: var(--font-display);
  font-weight: 700;
}

h2 {
  font-size: var(--font-heading);
  font-weight: 600;
}

h3 {
  font-size: var(--font-subheading);
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  line-height: 1.6;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

/* ========================
   Layout
   ======================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================
   Header
   ======================== */
.header {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name {
  color: var(--text-secondary);
}

/* ========================
   Auth Pages
   ======================== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-secondary);
}

/* ========================
   Forms
   ======================== */
/* ========================
   Forms
   ======================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--font-body);
}

.form-input,
.form-select,
select.form-input,
textarea.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-tertiary);
  border: 2px solid transparent;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: var(--font-body);
  font-family: inherit;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.form-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-input:disabled {
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Select dropdowns */
select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Textarea */
textarea.form-input {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

/* ========================
   Buttons
   ======================== */
/* ========================
   Buttons
   ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: var(--font-body);
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-danger {
  background: var(--error);
  color: white;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

.btn-danger:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ========================
   Cards
   ======================== */
/* ========================
   Cards
   ======================== */
.card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-fast);
}

.card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.card-body {
  padding: 1.5rem;
}

/* ========================
   Status Cards (Dashboard)
   ======================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.25rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card.pending {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.stat-card.deposito {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-card.transito {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card.proceso {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.stat-card.procesando {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.stat-card.disponible {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.stat-card.preparando {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.stat-card.retirado {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ========================
   Package List
   ======================== */
.package-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.package-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.package-item:hover {
  border-color: var(--primary);
}

.package-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.package-status.pending {
  background: var(--status-pending);
}

.package-status.deposito {
  background: var(--status-deposito);
}

.package-status.transito {
  background: var(--status-transito);
}

.package-status.proceso {
  background: var(--status-proceso);
}

.package-status.procesando {
  background: var(--status-procesando);
  animation: pulse 2s infinite;
}

.package-status.disponible {
  background: var(--status-disponible);
  animation: pulse 2s infinite;
}

.package-status.preparando {
  background: var(--status-preparando);
  animation: pulse 2s infinite;
}

.package-status.retirado {
  background: var(--status-retirado);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.package-info {
  flex: 1;
  min-width: 0;
}

.package-tracking {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.875rem;
  color: var(--text-primary);
  word-break: break-all;
}

.package-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.package-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.package-actions {
  display: flex;
  gap: 0.5rem;
}

/* ========================
   Status Badge
   ======================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid;
  transition: var(--transition-fast);
}

.status-badge.pending {
  background: rgba(156, 163, 175, 0.15);
  color: #d1d5db;
  border-color: rgba(156, 163, 175, 0.4);
}

.status-badge.deposito {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.4);
}

.status-badge.transito {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.4);
}

.status-badge.proceso {
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.4);
}

.status-badge.procesando {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}

.status-badge.disponible {
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  border-color: rgba(6, 182, 212, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}

.status-badge.preparando {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}

.status-badge.retirado {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border-color: rgba(107, 114, 128, 0.4);
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 8px currentColor;
  }

  50% {
    box-shadow: 0 0 16px currentColor;
  }
}

/* ========================
   Modal
   ======================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* ========================
   Alerts & Messages
   ======================== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ========================
   Empty State
   ======================== */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  margin-bottom: 1.5rem;
}

/* ========================
   Help Tooltip
   ======================== */
.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--text-muted);
  color: var(--bg-primary);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.help-btn:hover {
  background: var(--primary);
  color: white;
}

/* ========================
   Tabs
   ======================== */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.tab {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.tab:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.tab.active {
  background: var(--primary);
  color: white;
}

/* ========================
   Tables (Admin)
   ======================== */
.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td {
  font-size: 0.875rem;
}

.table tr:hover td {
  background: rgba(99, 102, 241, 0.05);
}

/* ========================
   Loading Spinner
   ======================== */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* ========================
   Utilities
   ======================== */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.hidden {
  display: none !important;
}

/* ========================
   External Tracking Panel
   ======================== */
.package-item-wrapper {
  display: flex;
  flex-direction: column;
}

.external-tracking-panel {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-top: none;
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
  padding: 1rem 1.25rem;
  margin-top: -1px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.external-tracking-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.external-tracking-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.spinner-large {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.external-tracking-success {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.external-tracking-success .external-icon {
  font-size: 1.25rem;
}

.external-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.external-status {
  font-weight: 500;
  color: var(--text-primary);
}

.external-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.external-tracking-warning {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fbbf24;
}

.external-tracking-warning .external-icon {
  font-size: 1.25rem;
}

.external-tracking-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #f87171;
}

.external-tracking-error .external-icon {
  font-size: 1.25rem;
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .package-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .package-actions {
    width: 100%;
    margin-top: 0.75rem;
  }

  .package-actions .btn {
    flex: 1;
  }
}

/* ========================
   Alternate Trackings
   ======================== */
.alternate-trackings {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.alt-tracking-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: var(--transition);
}

.alt-tracking-item:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.alt-carrier-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.alt-tracking-number {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.75rem;
  color: var(--text-primary);
  flex: 1;
  word-break: break-all;
}

.btn-copy {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-copy:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: var(--primary);
  transform: scale(1.05);
}

.btn-copy:active {
  transform: scale(0.95);
}