@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Mono:wght@400;600&display=swap");

:root {
  --bg: #fbf8ef;
  --surface: #fffdf8;
  --ink: #1f2937;
  --muted: #667085;
  --brand: #006d77;
  --brand-strong: #00545c;
  --accent: #ee9b00;
  --danger: #c1121f;
  --ok: #1d8348;
  --border: #e7dcc9;
  --shadow: 0 10px 30px rgba(40, 44, 52, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(238, 155, 0, 0.25), transparent 35%),
    radial-gradient(circle at 85% 0%, rgba(0, 109, 119, 0.2), transparent 30%),
    var(--bg);
  min-height: 100vh;
}

a {
  color: var(--brand);
}

.site-shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 1rem auto 3rem;
  animation: fadeUp 0.5s ease-out;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: #ffffff;
  box-shadow: var(--shadow);
}

@media (min-width: 901px) {
  .brand-logo {
    width: 44px;
    height: 44px;
  }
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.menu-item {
  display: block;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  text-decoration: none;
  background: #fff9ef;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.menu-item h3 {
  margin-bottom: 0.4rem;
}

.menu-item p {
  margin: 0;
  color: var(--muted);
}

.menu-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.step {
  background: #f6efe1;
  border: 1px solid var(--border);
  padding: 0.9rem;
  border-radius: 12px;
  font-size: 0.92rem;
}

.step strong {
  display: block;
  color: var(--brand-strong);
  margin-bottom: 0.2rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

.input,
.select,
.btn {
  width: 100%;
  border-radius: 11px;
  border: 1px solid var(--border);
  padding: 0.78rem 0.9rem;
  font: inherit;
}

.btn {
  cursor: pointer;
  font-weight: 600;
  border: none;
  background: var(--brand);
  color: white;
  transition: transform 0.12s ease, background 0.2s ease;
}

.btn:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.btn.secondary {
  background: #f2f4f7;
  border: 1px solid var(--border);
  color: var(--ink);
}

.btn.warn {
  background: var(--accent);
  color: #2d1c00;
}

.notice {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid;
}

.notice.error {
  border-color: #f2b8bf;
  background: #fff0f1;
  color: #931621;
}

.notice.ok {
  border-color: #b8e8c8;
  background: #f0fff5;
  color: #175f33;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0.45rem;
  vertical-align: top;
}

.badge {
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  display: inline-block;
  font-size: 0.82rem;
  border: 1px solid;
}

.badge.pending_payment {
  background: #fff6e8;
  color: #8a5d00;
  border-color: #ffd59c;
}

.badge.active {
  background: #edf7ff;
  color: #114c75;
  border-color: #b7deff;
}

.badge.redeem_queued,
.badge.queued,
.badge.processing {
  background: #fff4ef;
  color: #8c3d00;
  border-color: #ffd0b6;
}

.badge.redeemed,
.badge.completed {
  background: #ecfff0;
  color: #1c6b3a;
  border-color: #b6ecc6;
}

.voucher-theme-ocean .card {
  border-color: #b9dff2;
  background: linear-gradient(180deg, #f8fcff 0%, #eef7fc 100%);
}

.voucher-theme-ocean .btn {
  background: #0a5b87;
}

.voucher-theme-ocean .btn:hover {
  background: #084968;
}

.voucher-theme-sunset .card {
  border-color: #f2d1b2;
  background: linear-gradient(180deg, #fff9f2 0%, #fff2e6 100%);
}

.voucher-theme-sunset .btn {
  background: #9a3412;
}

.voucher-theme-sunset .btn:hover {
  background: #7c2d12;
}

.voucher-theme-idul-adha {
  position: relative;
}

.voucher-theme-idul-adha::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 8%, rgba(30, 83, 46, 0.2), transparent 26%),
    radial-gradient(circle at 78% 10%, rgba(20, 68, 42, 0.18), transparent 24%),
    radial-gradient(circle at 50% 92%, rgba(180, 137, 52, 0.18), transparent 36%);
  z-index: -1;
}

.voucher-theme-idul-adha .card {
  border-color: #d8bf84;
  background:
    linear-gradient(165deg, rgba(255, 251, 241, 0.96), rgba(246, 237, 214, 0.94)),
    repeating-linear-gradient(
      -45deg,
      rgba(176, 134, 52, 0.08) 0,
      rgba(176, 134, 52, 0.08) 6px,
      rgba(255, 251, 241, 0.08) 6px,
      rgba(255, 251, 241, 0.08) 12px
    );
  box-shadow: 0 16px 34px rgba(78, 61, 25, 0.16);
}

.voucher-theme-idul-adha .kicker {
  color: #4f5f2a;
}

.voucher-theme-idul-adha h1,
.voucher-theme-idul-adha h3 {
  color: #1f4b2e;
}

.voucher-theme-idul-adha .btn {
  background: linear-gradient(135deg, #1d6d42, #145233);
  color: #fff6dd;
}

.voucher-theme-idul-adha .btn:hover {
  background: linear-gradient(135deg, #165736, #0f4128);
}

.voucher-theme-idul-adha .badge {
  border-color: #d1b06a;
}

.voucher-theme-idul-adha .badge.pending_payment {
  background: #fff4d8;
  color: #7e5208;
}

.voucher-theme-idul-adha .badge.active {
  background: #edf7e9;
  color: #255837;
}

.voucher-theme-idul-adha .badge.redeemed,
.voucher-theme-idul-adha .badge.completed {
  background: #e8f6ea;
  color: #215535;
}

.eid-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: -0.15rem 0 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #9b6a17;
}

.eid-kicker::before,
.eid-kicker::after {
  content: "✦";
  color: #c5983b;
  font-size: 0.78rem;
}

.qris-mock {
  border: 2px dashed var(--brand);
  border-radius: 16px;
  padding: 1.2rem;
  background: linear-gradient(145deg, #f5fffe, #fbf8ef);
}

.amount {
  font-size: 1.7rem;
  font-weight: 700;
}

.actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.kicker {
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.info-list {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.info-list li {
  margin-bottom: 0.4rem;
}

.site-footer {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.site-footer p {
  margin: 0.3rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.2rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.prose-card h3 {
  margin: 1.2rem 0 0.4rem;
  font-size: 1rem;
}

.prose-card p,
.prose-card ul,
.prose-card ol {
  margin: 0.3rem 0 0;
  line-height: 1.65;
  color: var(--ink);
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.contact-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

.contact-table td:first-child {
  font-weight: 500;
  width: 50%;
}

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

@media (max-width: 900px) {
  .grid-2,
  .steps,
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .site-shell {
    width: min(1080px, calc(100% - 1rem));
  }
}
