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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animated particles background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  pointer-events: none;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

.app-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .app-wrapper {
    padding: 1.5rem;
  }
}

/* Header styles */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  animation: slideDown 0.5s ease;
}

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

.logo-area {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.ed-logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.6));
  }
}

@media (min-width: 768px) {
  .ed-logo {
    font-size: 2rem;
  }
}

.logo-icon svg {
  width: 28px;
  height: 28px;
  stroke: #10b981;
}

.logo-badge {
  background: rgba(16, 185, 129, 0.2);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.pulse-badge {
  animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
}

.hamburger {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 46px;
  height: 46px;
  border-radius: 60px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.hamburger:hover {
  background: rgba(16, 185, 129, 0.2);
  transform: scale(0.95) rotate(90deg);
  border-color: rgba(16, 185, 129, 0.5);
}

/* ==================== */
/* ENHANCED HAMBURGER MENU STYLES */
/* ==================== */

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

.menu-overlay.active {
  visibility: visible;
  opacity: 1;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 350px;
  height: 100%;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.6);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  transform: translateX(100%);
  border-left: 2px solid rgba(16, 185, 129, 0.3);
  overflow-y: auto;
}

.menu-overlay.active .menu-panel {
  transform: translateX(0);
  animation: slideGlow 0.4s ease;
}

@keyframes slideGlow {
  0% {
    transform: translateX(100%);
    border-left-color: transparent;
  }
  100% {
    transform: translateX(0);
    border-left-color: rgba(16, 185, 129, 0.6);
  }
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid rgba(16, 185, 129, 0.3);
  animation: fadeInRight 0.4s ease;
}

.menu-logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-logo-icon {
  color: #10b981;
  font-size: 1.8rem;
  animation: rotateIcon 2s ease-in-out infinite;
}

@keyframes rotateIcon {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(15deg);
  }
}

.close-menu {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-menu:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: rotate(90deg) scale(1.1);
  border-color: #ef4444;
  color: #ef4444;
}

.menu-links {
  list-style: none;
  flex: 1;
  margin: 1rem 0;
}

.menu-links li {
  font-size: 1rem;
  font-weight: 500;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 12px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  animation: slideInFromRight 0.3s ease backwards;
}

.menu-links li:nth-child(1) { animation-delay: 0.05s; }
.menu-links li:nth-child(2) { animation-delay: 0.1s; }
.menu-links li:nth-child(3) { animation-delay: 0.15s; }
.menu-links li:nth-child(4) { animation-delay: 0.2s; }
.menu-links li:nth-child(5) { animation-delay: 0.25s; }
.menu-links li:nth-child(6) { animation-delay: 0.3s; }
.menu-links li:nth-child(7) { animation-delay: 0.35s; }

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-links li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), transparent);
  transition: width 0.3s ease;
  z-index: -1;
}

.menu-links li:hover::before {
  width: 100%;
}

.menu-links li:hover {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), transparent);
  color: #10b981;
  transform: translateX(8px);
  padding-left: 20px;
}

.menu-links li i {
  width: 28px;
  font-size: 1.2rem;
  color: #10b981;
  transition: all 0.3s ease;
}

.menu-links li:hover i {
  transform: scale(1.15) rotate(5deg);
  color: #34d399;
}

.menu-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 30px;
  margin-left: auto;
  animation: badgePulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.menu-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
  margin-top: auto;
  text-align: center;
  animation: fadeInUp 0.4s ease;
}

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

.menu-footer p {
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.menu-version {
  font-size: 0.65rem;
  margin-top: 6px;
  color: #64748b;
  font-family: monospace;
}

/* Scrollbar styling for menu */
.menu-panel::-webkit-scrollbar {
  width: 4px;
}

.menu-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.menu-panel::-webkit-scrollbar-thumb {
  background: #10b981;
  border-radius: 10px;
}

/* Live banner */
.live-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.1));
  border-radius: 40px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {
  0%, 100% {
    border-color: rgba(16, 185, 129, 0.3);
  }
  50% {
    border-color: rgba(16, 185, 129, 0.8);
  }
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: blink 1s infinite;
}

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

.live-time {
  font-family: monospace;
  color: #10b981;
}

/* Tracking card */
.tracking-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 1.2rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  transition: all 0.3s;
  animation: fadeInUp 0.6s ease;
}

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

.tracking-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
}

/* Tracking ID section */
.tracking-id-section {
  background: rgba(15, 23, 42, 0.6);
  padding: 0.8rem 1rem;
  border-radius: 1.2rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

@media (min-width: 768px) {
  .tracking-id-section {
    padding: 1rem 1.2rem;
  }
}

.tracking-label {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tracking-number {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 1px;
  color: #f1f5f9;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 768px) {
  .tracking-number {
    font-size: 1.6rem;
  }
}

.copy-btn {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 12px;
  border-radius: 30px;
  cursor: pointer;
  color: #10b981;
  transition: all 0.2s;
  font-size: 0.8rem;
}

.copy-btn:hover {
  background: rgba(16, 185, 129, 0.3);
  transform: scale(1.05);
}

/* Route row */
.route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 1.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.location {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
  min-width: 180px;
}

.loc-icon {
  font-size: 1.2rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 60px;
}

.loc-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loc-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.loc-details strong {
  font-size: 0.9rem;
}

.event-status {
  font-size: 0.7rem;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  width: fit-content;
  color: #10b981;
}

.timestamp {
  font-size: 0.65rem;
  color: #94a3b8;
}

.route-arrow {
  font-size: 1rem;
  color: #10b981;
  display: flex;
  gap: 6px;
  align-items: center;
}

.animated-arrow i {
  animation: bounceX 1s ease-in-out infinite;
}

.animated-arrow i:nth-child(1) { animation-delay: 0s; }
.animated-arrow i:nth-child(2) { animation-delay: 0.3s; }
.animated-arrow i:nth-child(3) { animation-delay: 0.6s; }

@keyframes bounceX {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

/* Progress timeline */
.progress-timeline {
  margin: 1.5rem 0;
  padding-left: 0.5rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  position: relative;
  transition: all 0.3s;
}

.step:hover {
  transform: translateX(5px);
}

.step-dot {
  width: 12px;
  height: 12px;
  background: #334155;
  border-radius: 50%;
  margin-top: 5px;
  position: relative;
  transition: all 0.3s;
}

.step.completed .step-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
  animation: scaleDot 0.5s ease;
}

@keyframes scaleDot {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

.step.active .step-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.step.active .step-dot.pulse {
  animation: pulseGlow 1.4s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.step-info .step-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #f1f5f9;
}

.step-info .step-sub {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Live progress bar */
.live-progress {
  margin: 1.2rem 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
  color: #94a3b8;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  border-radius: 10px;
  width: 0%;
  transition: width 0.5s ease;
  animation: shimmer 2s infinite;
  background-size: 200% 100%;
}

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

/* Map preview */
.map-preview {
  margin: 1.2rem 0;
}

.map-placeholder {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 1.2rem;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(16, 185, 129, 0.2);
  transition: all 0.3s;
}

.map-placeholder:hover {
  transform: scale(1.02);
  border-color: rgba(16, 185, 129, 0.5);
}

.route-line-animated {
  position: relative;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #10b981, #3b82f6, #10b981);
  margin: 15px 0;
  border-radius: 2px;
  overflow: hidden;
}

.moving-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #f59e0b;
  border-radius: 50%;
  top: -3px;
  animation: moveDot 3s linear infinite;
}

@keyframes moveDot {
  0% {
    left: 0%;
  }
  100% {
    left: 100%;
  }
}

.location-tags {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #10b981;
  margin-top: 10px;
}

/* Accordion */
.accordion-container {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #cbd5e1;
  transition: all 0.2s;
}

.accordion-header:hover {
  color: #10b981;
}

.accordion-icon {
  transition: transform 0.25s ease;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  background: rgba(15, 23, 42, 0.5);
  border-radius: 16px;
}

.accordion-content.open {
  max-height: 500px;
  padding: 0.8rem;
}

/* Travel history */
.travel-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.history-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.8rem;
  border-left: 2px solid #10b981;
  padding-left: 12px;
  animation: slideInLeft 0.3s ease;
  opacity: 0;
  animation-fill-mode: forwards;
}

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

.history-time {
  font-weight: 600;
  color: #10b981;
  min-width: 95px;
  font-size: 0.7rem;
}

.history-desc {
  color: #cbd5e1;
}

/* Facts grid */
.facts-grid {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}

.fact-label {
  font-weight: 600;
  color: #94a3b8;
}

/* Image strip */
.image-strip {
  display: flex;
  gap: 10px;
  margin-top: 1.8rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.strip-card {
  flex: 1;
  min-width: 100px;
  text-align: center;
  animation: fadeScale 0.5s ease;
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.strip-card img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  height: 90px;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 2px solid rgba(16, 185, 129, 0.3);
}

.strip-card img:hover {
  transform: scale(1.05) rotate(1deg);
  border-color: #10b981;
}

.strip-card span {
  display: block;
  font-size: 0.7rem;
  margin-top: 6px;
  color: #94a3b8;
}

/* Delivery banner */
.delivery-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.1));
  border-radius: 1rem;
  padding: 0.8rem 1rem;
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation: fadeInUp 0.5s ease;
}

.banner-text {
  flex: 1;
  text-align: center;
}

.banner-text strong {
  display: block;
  font-size: 0.8rem;
  color: #f1f5f9;
}

.banner-text span {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Footer */
.app-footer {
  text-align: center;
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 1.5rem;
  animation: fadeIn 1s ease;
}

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

/* Responsive */
@media (max-width: 640px) {
  .route-arrow {
    display: none;
  }
  
  .location {
    min-width: 100%;
  }
  
  .history-item {
    flex-direction: column;
    gap: 4px;
  }
  
  .history-time {
    min-width: auto;
  }
  
  .menu-panel {
    width: 100%;
    max-width: 100%;
  }
}