:root {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.header {
  text-align: center;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.payment-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timer-section {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.timer-section span {
  font-size: 0.85rem;
  opacity: 0.9;
}

.countdown {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.amount-section {
  text-align: center;
}

.amount-section .label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
}

.unique-code-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
}

.note {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 2px;
}

.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.qrcode-container {
  background-color: white;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qrcode-container img {
  display: block;
}

.merchant-name {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.details-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.row span:first-child {
  color: var(--text-muted);
}

.value {
  font-weight: 500;
}

.uppercase {
  text-transform: uppercase;
}

.status-pending {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.status-paid,
.status-done {
  color: var(--accent); /* Green */
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.status-expired,
.status-canceled {
  color: var(--danger); /* Red */
  background: rgba(239, 68, 68, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.hidden {
  display: none !important;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-muted);
  border: none;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px;
  cursor: pointer;
}

.btn-secondary:hover {
  color: var(--text-main);
}

.loading-skeleton {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: transparent !important;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
