:root {
  color: #14201a;
  background: #f7faf8;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(145deg, rgba(6, 199, 85, 0.18), transparent 38%),
    linear-gradient(20deg, rgba(255, 211, 91, 0.2), transparent 34%),
    #f7faf8;
}

button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: #06c755;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(6, 199, 85, 0.18);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
  box-shadow: none;
}

.app-shell {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.topbar,
.profile-panel,
.qr-panel,
.menu-card,
.info-panel {
  border: 1px solid rgba(20, 32, 26, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(20, 32, 26, 0.08);
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 4px;
  color: #06a848;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.7rem;
  line-height: 1.12;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.status-badge {
  flex: 0 0 auto;
  min-width: 78px;
  border-radius: 999px;
  padding: 7px 10px;
  background: #eef1ef;
  color: #4d5b53;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.status-badge[data-type="success"] {
  background: #dff8e9;
  color: #057231;
}

.status-badge[data-type="warning"] {
  background: #fff3ca;
  color: #846000;
}

.status-badge[data-type="error"] {
  background: #ffe1df;
  color: #a42018;
}

.profile-panel {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
}

.avatar-frame {
  width: 74px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #dfeee5;
}

.avatar-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  margin-bottom: 4px;
  font-size: 1.15rem;
  font-weight: 800;
}

.profile-message,
.menu-card p {
  margin-bottom: 0;
  color: #5e6b63;
}

.profile-page {
  display: grid;
  align-content: start;
  gap: 14px;
}

.qr-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 0;
  padding: 22px 18px 18px;
}

.qr-code {
  display: grid;
  place-items: center;
  width: min(100%, 232px);
  min-height: 232px;
  border: 1px solid rgba(20, 32, 26, 0.08);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  color: #5e6b63;
  overflow-wrap: anywhere;
  text-align: center;
}

.qr-code img,
.qr-code canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.qr-caption {
  margin-bottom: 0;
  color: #5e6b63;
  font-size: 0.9rem;
  font-weight: 700;
}

.profile-details {
  margin-top: 0;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-top: 14px;
}

.menu-card,
.info-panel {
  padding: 18px;
}

.menu-card {
  display: grid;
  gap: 24px;
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(6, 199, 85, 0.14), transparent 52%),
    #ffffff;
}

.secondary-button {
  align-self: end;
  background: #14201a;
}

dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(20, 32, 26, 0.08);
  padding-bottom: 8px;
}

dt {
  color: #68736d;
  font-size: 0.84rem;
}

dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 18px;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 8px;
  padding: 12px 14px;
  background: #14201a;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 620px) {
  .app-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .quick-actions,
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-badge {
    width: 100%;
  }
}
