/* Reset and base styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.container {
  max-width: 1200px;
  padding: 0 24px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  position: relative;
  height: 400px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
}

.map-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle at 60% 20%, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 120px 120px;
}

.route-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, #84cc16, #22c55e);
  transform: translateY(-50%);
  border-radius: 1px;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.site-header {
  position: absolute;
  top: 32px;
  left: 32px;
}

.site-header img{
  max-width: 120px;
  max-height: 60px;
  border-radius:10px;
}

.logo {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

.hero-text {
  margin-top: 40px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.9;
}

/* Tracking Section */
.tracking-section {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.tracking-section .container {
  position: relative;
}

.tracking-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.card-header-text {
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}

.card-header-icon {
  color: #9ca3af;
  font-size: 16px;
  cursor: help;
}

.card-body {
  position: relative;
  margin-bottom: 16px;
}

.tracking-textarea {
  width: 100%;
  min-height: 140px;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
  line-height: 1.5;
  display: block;
}

.tracking-textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.tracking-textarea::placeholder {
  color: #9ca3af;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.delete-all {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #9ca3af;
  font-size: 14px;
}

.delete-all input[type="checkbox"] {
  margin: 0;
}

.track-button {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.track-button:hover {
  background: #2563eb;
}

/* Content Section */
.content-section {
  padding: 80px 0;
  background: white;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.content-left {
  padding-right: 32px;
}

.content-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: #111827;
}

.content-right {
  padding-left: 32px;
}

.accent-line {
  width: 48px;
  height: 4px;
  background: #3b82f6;
  margin-bottom: 24px;
  border-radius: 2px;
}

.content-subtitle {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #111827;
}

.content-text {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 24px;
}

.content-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.content-link:hover {
  text-decoration: underline;
}

/* Merchants Section */
.merchants-section {
  padding: 64px 0;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.merchants-caption {
  text-align: center;
  color: #6b7280;
  font-size: 16px;
  margin-bottom: 32px;
}

.merchants-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.merchant-logo {
  padding: 20px;
  text-align: center;
  font-weight: 600;
  min-width: 100px;
  transition: transform 0.2s;
}

.merchant-logo:hover {
  transform: translateY(-2px);
}

.merchant-logo img{
  max-width: 100px;
  max-height: 100px;
}

/* Original styles for results section */
.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hidden { display: none; }
.muted { color: #6b7280; }

.summary { display: grid; grid-template-columns: 140px 1fr; gap: 12px 16px; }
.summary-row { display: contents; }
.summary-label { color: #6b7280; font-weight: 500; }
.summary-value { font-weight: 600; color: #111827; }

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: #f3f4f6;
  color: #374151;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-item {
  position: relative;
  padding-left: 32px;
  margin: 16px 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: -16px;
  width: 2px;
  background: #e5e7eb;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #e5e7eb;
}

.timeline-item.current .timeline-dot { background: #3b82f6; box-shadow: 0 0 0 2px #3b82f6; }
.timeline-item.done .timeline-dot { background: #10b981; box-shadow: 0 0 0 2px #10b981; }
.timeline-item.failed .timeline-dot { background: #ef4444; box-shadow: 0 0 0 2px #ef4444; }

.timeline-item .title { font-weight: 600; color: #111827; }
.timeline-item .meta { color: #6b7280; font-size: 14px; margin-top: 4px; }

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.evidence-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: white;
}

.evidence-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.evidence-card a { display: block; color: #374151; text-decoration: none; padding: 12px; font-size: 13px; }

.feedback-text { color: #f59e0b; font-weight: 500; }

.site-footer { padding: 32px 0; text-align: center; background: #f9fafb; border-top: 1px solid #e5e7eb; }

/* Floating Multi-Results Styles */
.floating-results {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  max-width: 1200px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  padding: 24px;
  z-index: 100;
  margin-top: 16px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.results-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.2s;
}

.close-button:hover {
  background: #f3f4f6;
  color: #374151;
}

.results-summary {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

.results-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.result-tab {
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: white;
  color: #374151;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  font-family: inherit;
}

.result-tab:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.result-tab.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.result-tab.success {
  border-color: #10b981;
  color: #10b981;
}

.result-tab.success.active {
  background: #10b981;
  color: white;
}

.result-tab.error {
  border-color: #ef4444;
  color: #ef4444;
}

.results-content {
  background: white;
  border-radius: 8px;
  min-height: 200px;
}

.result-item {
  display: none;
}

.result-item.active {
  display: block;
}

.result-detail {
  padding: 16px 0;
}

.info-row {
  margin-bottom: 16px;
}

.info-label {
  color: #6b7280;
  font-size: 14px;
  min-width: 80px;
  margin-right: 16px;
  display: inline-block;
}

.info-value {
  color: #111827;
  font-size: 14px;
}

.status-badge {
  background: #f3f4f6;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  line-height: 1.4;
  display: inline-block;
}

.timeline-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
}

.timeline-list {
  border-left: 2px solid #e5e7eb;
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 16px;
}

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

.timeline-dot {
  position: absolute;
  left: -29px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid white;
  box-shadow: 0 0 0 2px #3b82f6;
}

.timeline-title {
  font-size: 14px;
  color: #111827;
  margin-bottom: 4px;
}

.timeline-time {
  font-size: 12px;
  color: #6b7280;
}

.evidence-section {
  margin-top: 24px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.evidence-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.evidence-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.error-content {
  padding: 16px 0;
}

.result-item {
  display: none;
}

.result-item.active {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero { height: 300px; }
  .hero-title { font-size: 36px; }
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .content-left, .content-right { padding: 0; }
  .content-title { font-size: 36px; }
  .merchants-grid { grid-template-columns: repeat(2, 1fr); }
  .tracking-card { padding: 24px; }
}