:root {
  --primary: #2196F3;
  --secondary: #2f3542;
  --background: #f1f2f6;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--background);
}

.navbar {
  background: var(--white);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 80px;
  margin-right: 1.5rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-img:hover {
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.3));
  transform: scale(1.1);
}

.logo-text {
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.payment-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
}

.payment-title {
  text-align: center;
  color: var(--secondary);
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.payment-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.payment-icon {
  width: 80px;
  height: 90px;
  margin-bottom: 1rem;
  object-fit: contain;
  border-radius: 8px;
}

.payment-card:nth-child(3) .payment-icon {
  border: 2px solid #e74c3c;
  padding: 5px;
}

.cash-icon {
  width: 80px;
  height: 90px;
  margin-bottom: 1rem;
  background: #4CAF50;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  align-self: center;
}

.cash-icon::before {
  content: '$';
  color: white;
  font-size: 3rem;
  font-weight: bold;
}

.qr-code-container {
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 5px;
  overflow: hidden;
}

.qr-code {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 2rem 0;
}

.qr-overlay.active {
  display: flex;
  animation: fadeIn 0.4s ease;
}

.qr-overlay-content {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  position: relative;
  max-width: 95%;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  margin: auto;
}

.qr-overlay.active .qr-overlay-content {
  transform: scale(1);
}

.qr-overlay img.qr-code {
  width: 90%;
  max-width: 800px;
  height: auto;
  margin: 2rem auto;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.qr-overlay img.qr-code:hover {
  transform: scale(1.02);
}

.close-overlay {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-overlay:hover {
  background: #1976D2;
  transform: rotate(90deg) scale(1.1);
}

.instructions {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  margin-top: 2rem;
  box-shadow: var(--shadow);
}

.instructions h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.back-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.back-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  background: #1976D2;
}

.back-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .logo-img {
    height: 60px;
  }
  
  .logo-text {
    font-size: 2rem;
  }
  
  .payment-container {
    padding: 1rem;
  }
  
  .payment-title {
    font-size: 2rem;
  }
  
  .back-button {
    bottom: 1rem;
    right: 1rem;
    padding: 0.8rem 1.5rem;
  }
  
  .qr-overlay-content {
    padding: 2rem 1rem;
    margin: 1rem;
  }
  
  .qr-overlay img.qr-code {
    width: 100%;
    max-width: none;
  }
  
  .close-overlay {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    top: 1rem;
    right: 1rem;
  }
}