@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f6f8;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.amz-header {
  background: linear-gradient(135deg, #131921 0%, #1a2533 100%);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.amz-header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.amz-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.amz-logo span { color: #ff9900; }
.amz-tagline { color: #8899aa; font-size: 13px; font-weight: 500; }

/* Container */
.container {
  max-width: 640px;
  margin: 40px auto;
  padding: 0 20px;
  flex: 1;
  width: 100%;
}

/* Card */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
}

/* Steps */
.step { display: none; opacity: 0; transform: translateY(12px); }
.step.active {
  display: block;
  animation: fadeIn 0.35s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Typography */
h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; color: #1a1a2e; }
h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; color: #1a1a2e; }
p { margin-bottom: 12px; line-height: 1.6; color: #555; font-size: 15px; }
.subtitle { font-size: 14px; color: #888; margin-bottom: 20px; }

/* Progress */
.progress-wrapper {
  margin-bottom: 28px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
  font-weight: 500;
}
.progress {
  height: 4px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff9900, #ffb84d);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Voucher preview */
.voucher-preview {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  justify-content: center;
}
.voucher-card {
  padding: 20px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s;
}
.voucher-card:hover { transform: translateY(-2px); }
.v25 { background: linear-gradient(135deg, #fff8e1, #fff3cd); border: 1.5px solid #ffc107; color: #7c6608; }
.v50 { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); border: 1.5px solid #4caf50; color: #2e7d32; }

/* Buttons */
.btn-primary {
  background: linear-gradient(180deg, #ffd814 0%, #ffca28 100%);
  border: 1px solid #e6b800;
  border-radius: 8px;
  padding: 13px 44px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: #1a1a2e;
  transition: all 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: linear-gradient(180deg, #ffca28 0%, #ffc107 100%); box-shadow: 0 2px 8px rgba(255,202,40,0.4); }
.btn-primary:active { transform: scale(0.98); }

/* Option buttons */
.option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.option-btn {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  font-family: inherit;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
}
.option-btn .icon { font-size: 20px; flex-shrink: 0; }
.option-btn .label { flex: 1; }
.option-btn .label small { display: block; font-size: 12px; color: #999; margin-top: 2px; font-weight: 400; }
.option-btn:hover {
  border-color: #ff9900;
  background: #fffaf0;
  box-shadow: 0 2px 8px rgba(255,153,0,0.08);
}
.option-btn.selected {
  border-color: #ff9900;
  background: linear-gradient(135deg, #fff8e1, #fff3e0);
  box-shadow: 0 0 0 1px #ff9900;
}
.option-btn.selected::after {
  content: '✓';
  font-weight: 700;
  color: #ff9900;
  font-size: 18px;
}

/* Multi-select */
.option-btn.multi.selected { }
.multi-hint { font-size: 12px; color: #999; margin-top: 4px; font-style: italic; }
.multi-next {
  margin-top: 16px;
  text-align: right;
}

/* Result */
.result-card { text-align: center; }
.result-card h2 { font-size: 24px; margin-bottom: 16px; }
.code-box {
  background: #fafafa;
  border: 2px dashed #ff9900;
  border-radius: 12px;
  padding: 28px;
  margin: 24px 0;
}
.code-box p { color: #888; font-size: 13px; margin-bottom: 8px; }
.code {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 10px;
  color: #ff9900;
  font-family: 'Courier New', monospace;
}

/* Welcome illustration */
.welcome-visual {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 28px 0;
  font-size: 48px;
}

/* Hint */
.hint { color: #999; font-size: 13px; }

/* Footer */
.amz-footer {
  background: #232f3e;
  color: #8899aa;
  text-align: center;
  padding: 20px;
  font-size: 12px;
}

/* Admin styles */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th, .admin-table td {
  border: 1px solid #e8e8e8;
  padding: 10px 12px;
  text-align: left;
}
.admin-table th { background: #232f3e; color: #fff; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table tr:nth-child(even) { background: #fafafa; }
.admin-table tr:hover { background: #fff8e1; }
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-bar input, .filter-bar select {
  padding: 9px 14px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-click { background: #e3f2fd; color: #1565c0; }
.badge-change { background: #fff3e0; color: #e65100; }
.badge-start { background: #e8f5e9; color: #2e7d32; }
.badge-complete { background: #f3e5f5; color: #6a1b9a; }

@media (max-width: 600px) {
  .card { padding: 24px 20px; }
  .voucher-preview { flex-direction: column; align-items: center; }
  .welcome-visual { font-size: 36px; gap: 16px; }
}
