:root {
  --primary: #ef4444; /* Red from the GPN logo/design */
  --primary-dark: #dc2626;
  --background: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.05);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background Decorations */
.background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: #ffd1d1;
  top: -50px;
  left: -50px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: #e0f2fe;
  bottom: -100px;
  right: -100px;
}

/* Container & Card */
.container {
  width: 100%;
  max-width: 400px; /* Mobile focused max-width */
  padding: 20px;
}

.payment-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
}

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

.qris-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.qris-subtitle {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Merchant Info */
.merchant-info {
  text-align: center;
  padding: 24px 24px 8px;
}

.merchant-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.nmid-text {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8fafc;
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px;
  display: flex;
  transition: color 0.2s;
}

.copy-btn:hover {
  color: var(--primary);
}

/* QR Section */
.qr-container {
  padding: 16px 24px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-wrapper {
  background: white;
  padding: 8px;
  border-radius: var(--radius-md);
  /* box-shadow: var(--shadow-icon); */
  margin-bottom: 16px;
  width: 250px; /* Fixed size for QR */
  height: 250px;
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* OR cover, depending on the image */
  mix-blend-mode: multiply; /* Helps integrate if white bg isn't perfect */
  display: block;
}

.scan-instruction {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.supported-apps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.app-pill {
  font-size: 12px;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* Footer */
.card-footer {
  background: #fafafa;
  padding: 16px 24px;
  text-align: center;
  border-top: 1px solid #f1f5f9;
}

.card-footer p {
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.download-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s, background-color 0.2s;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.download-btn:active {
  transform: scale(0.98);
}

.download-btn:hover {
  background: var(--primary-dark);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive tweaks */
@media (max-width: 380px) {
  .qr-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
  .merchant-name {
    font-size: 20px;
  }
}
