* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--hop-cream);
  color: var(--hop-charcoal);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(239, 226, 200, 0.8), transparent 32%),
    radial-gradient(circle at 94% 78%, rgba(46, 155, 105, 0.11), transparent 34%),
    var(--hop-cream);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--hop-focus);
  outline-offset: 2px;
}

button:active {
  transform: scale(0.985);
}

[hidden] {
  display: none !important;
}

.network-banner {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
  background: var(--hop-warning);
  color: white;
  text-align: center;
  font-size: 0.79rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0;
  color: var(--hop-green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.login-screen {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    calc(30px + env(safe-area-inset-top))
    var(--page-gutter)
    calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
}

.login-brand {
  width: 190px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-light);
}

.login-brand img {
  display: block;
  width: 100%;
}

.login-copy h1 {
  max-width: 440px;
  margin: 8px 0 12px;
  color: var(--hop-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 13vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.93;
}

.login-copy > p:last-child {
  max-width: 410px;
  margin: 0;
  color: var(--hop-muted);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label,
.field {
  display: grid;
  gap: 7px;
}

.login-form label > span,
.field > span {
  color: var(--hop-green);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-form input,
.field input,
.field textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--hop-divider);
  border-radius: var(--radius-md);
  padding: 0 16px;
  background: var(--hop-surface);
  color: var(--hop-charcoal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
  padding-block: 14px;
}

.button {
  min-height: var(--button-height);
  border-radius: 14px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, #c72c31, var(--hop-red));
  color: white;
  box-shadow: 0 12px 24px rgba(176, 42, 42, 0.2);
}

.button.primary:active {
  background: var(--hop-red-pressed);
}

.button.secondary {
  border: 1px solid var(--hop-divider);
  background: var(--hop-surface);
  color: var(--hop-green);
}

.button.ghost {
  background: transparent;
  color: var(--hop-green);
}

.button.danger {
  border: 1px solid rgba(169, 48, 42, 0.2);
  background: #fff1ee;
  color: var(--hop-error);
}

.button[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--hop-error);
  font-size: 0.84rem;
  font-weight: 750;
}

.preview-notice {
  display: grid;
  gap: 3px;
  padding: 16px;
  border: 1px solid rgba(201, 154, 46, 0.25);
  border-radius: var(--radius-md);
  background: rgba(239, 226, 200, 0.46);
}

.preview-notice strong {
  color: var(--hop-green);
}

.preview-notice span {
  color: var(--hop-muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.current-app-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--hop-green);
  font-size: 0.85rem;
  font-weight: 800;
}

.app-shell {
  width: min(100%, var(--content-width));
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
}

.safe-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 50%;
  width: min(100%, var(--content-width));
  height: calc(var(--header-height) + env(safe-area-inset-top));
  padding:
    env(safe-area-inset-top)
    var(--page-gutter)
    0;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(248, 243, 232, 0.98) 72%, rgba(248, 243, 232, 0));
}

.header-brand {
  justify-self: center;
  width: 158px;
  min-height: 44px;
  display: grid;
  place-items: center;
}

.header-brand img {
  display: block;
  width: 100%;
  max-height: 46px;
}

.icon-button,
.drawer-close {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hop-divider);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--hop-green);
  cursor: pointer;
  position: relative;
}

.icon-button svg,
.drawer-close svg,
.bottom-nav svg,
.inline-icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--hop-cream);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--hop-red);
  color: white;
  font-size: 0.67rem;
  font-weight: 900;
}

.page-content {
  min-height: 100dvh;
  padding:
    calc(var(--header-height) + env(safe-area-inset-top) + 10px)
    var(--page-gutter)
    calc(var(--nav-height) + env(safe-area-inset-bottom) + 34px);
}

.page {
  width: 100%;
  animation: page-in 190ms ease both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.page-heading {
  margin: 7px 0 20px;
}

.page-heading h1,
.display-heading {
  margin: 5px 0 0;
  color: var(--hop-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--font-title);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.page-heading p {
  margin: 9px 0 0;
  color: var(--hop-muted);
  line-height: 1.5;
}

.greeting {
  margin: 6px 0 18px;
}

.greeting p {
  margin: 0;
  color: var(--hop-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.greeting h1 {
  margin: 4px 0 0;
  color: var(--hop-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 11vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.home-grid {
  display: grid;
  gap: 16px;
}

.hero-card {
  min-height: 252px;
  padding: 28px 24px;
  border-radius: var(--radius-hero);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.06), transparent 42%),
    linear-gradient(145deg, var(--hop-green-dark), #17523e);
  color: white;
  box-shadow: var(--shadow-elevated);
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -105px;
  bottom: -130px;
  border: 34px solid rgba(239, 226, 200, 0.12);
  border-radius: 50%;
}

.hero-card .eyebrow {
  color: #f1dfba;
}

.hero-card h2 {
  max-width: 330px;
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 10vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.hero-balance {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.hero-balance strong {
  display: block;
  font-size: clamp(2.5rem, 12vw, 4.5rem);
  line-height: 0.88;
}

.hero-balance span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-card .button {
  min-width: 130px;
  min-height: 46px;
  position: relative;
  z-index: 1;
  background: var(--hop-surface);
  color: var(--hop-green);
  box-shadow: none;
}

.status-row,
.summary-card,
.surface-card,
.activity-row,
.reward-card,
.member-card-shell,
.state-card {
  border: 1px solid var(--hop-divider);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-light);
}

.status-row {
  min-height: 76px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-main {
  display: flex;
  align-items: center;
  gap: 11px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--hop-success);
  box-shadow: 0 0 0 6px rgba(46, 155, 105, 0.12);
}

.status-row strong,
.status-row small {
  display: block;
}

.status-row strong {
  color: var(--hop-green-dark);
}

.status-row small {
  margin-top: 3px;
  color: var(--hop-muted);
  font-size: 0.76rem;
}

.status-value {
  padding-left: 16px;
  border-left: 1px solid var(--hop-divider);
  text-align: right;
}

.status-value strong {
  font-size: 1.08rem;
}

.section-title {
  margin: 22px 2px 11px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-title h2 {
  margin: 0;
  color: var(--hop-green-dark);
  font-size: 1.02rem;
}

.section-title button,
.text-link {
  min-height: 44px;
  padding: 0 5px;
  background: transparent;
  color: var(--hop-green);
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.reward-preview {
  padding: 18px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  background: linear-gradient(145deg, #fff8e9, var(--hop-beige));
  border: 1px solid rgba(201, 154, 46, 0.25);
}

.reward-preview-icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--hop-green);
  color: white;
}

.reward-preview-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.reward-preview h3 {
  margin: 3px 0 5px;
  color: var(--hop-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1;
}

.reward-preview p {
  margin: 0;
  color: var(--hop-muted);
  font-size: 0.83rem;
  line-height: 1.4;
}

.reward-preview .button {
  min-height: 44px;
  margin-top: 12px;
  padding: 0 14px;
  width: 100%;
}

.promotion-card {
  min-height: 128px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #c83032, var(--hop-red));
  color: white;
  overflow: hidden;
  position: relative;
}

.promotion-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  right: -72px;
  top: -74px;
  border: 26px solid rgba(255, 255, 255, 0.08);
}

.promotion-card h3 {
  max-width: 280px;
  margin: 6px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
}

.promotion-card p {
  max-width: 310px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
}

.activity-list,
.reward-list,
.account-list {
  display: grid;
  gap: 10px;
}

.activity-row {
  min-height: 72px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.activity-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #e9f3ee;
  color: var(--hop-green);
}

.activity-icon.reward {
  background: #fff0cf;
  color: var(--hop-warning);
}

.activity-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.activity-row strong,
.activity-row small {
  display: block;
}

.activity-row strong {
  color: var(--hop-green-dark);
  font-size: 0.9rem;
}

.activity-row small {
  margin-top: 4px;
  color: var(--hop-muted);
  font-size: 0.72rem;
}

.activity-amount {
  color: var(--hop-green);
  font-weight: 900;
}

.activity-amount.negative {
  color: var(--hop-red);
}

.rewards-balance {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--hop-green);
  color: white;
}

.rewards-balance > span {
  color: #f0dfba;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rewards-balance strong {
  display: block;
  margin-top: 5px;
  font-size: 3.6rem;
  line-height: 0.95;
}

.rewards-balance small {
  color: rgba(255, 255, 255, 0.72);
}

.reward-card {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.reward-art {
  width: 92px;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--hop-beige);
}

.reward-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reward-art svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--hop-green);
  stroke-width: 1.5;
}

.reward-card.locked {
  background: rgba(255, 253, 248, 0.65);
  box-shadow: none;
}

.reward-card.locked .reward-art {
  filter: grayscale(1);
  opacity: 0.58;
}

.reward-copy {
  min-width: 0;
}

.reward-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pill {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #e8f4ee;
  color: var(--hop-green);
  font-size: 0.68rem;
  font-weight: 900;
}

.pill.gold {
  background: #fff1d0;
  color: var(--hop-warning);
}

.pill.muted {
  background: #efede8;
  color: var(--hop-muted);
}

.reward-copy h3 {
  margin: 9px 0 5px;
  color: var(--hop-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.23rem;
  line-height: 1.02;
}

.reward-copy p {
  margin: 0;
  color: var(--hop-muted);
  font-size: 0.77rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.progress-track {
  height: 7px;
  margin-top: 11px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(18, 60, 46, 0.1);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hop-green), var(--hop-gold));
}

.reward-progress-label {
  display: block;
  margin-top: 6px;
  color: var(--hop-muted);
  font-size: 0.69rem;
  font-weight: 800;
}

.detail-hero {
  border-radius: var(--radius-hero);
  overflow: hidden;
  background: var(--hop-surface);
  box-shadow: var(--shadow-elevated);
}

.detail-art {
  height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--hop-beige), #fff8ea);
}

.detail-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-art svg {
  width: 80px;
  height: 80px;
  fill: none;
  stroke: var(--hop-green);
  stroke-width: 1.3;
}

.detail-copy {
  padding: 22px;
}

.detail-copy h1 {
  margin: 7px 0 9px;
  color: var(--hop-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.detail-copy > p {
  margin: 0;
  color: var(--hop-muted);
  line-height: 1.5;
}

.rule-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.rule-list li {
  padding-left: 22px;
  position: relative;
  color: var(--hop-charcoal);
  font-size: 0.83rem;
  line-height: 1.4;
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hop-gold);
}

.sticky-action {
  position: sticky;
  z-index: 12;
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 8px);
  margin: 18px -2px 0;
  padding: 10px 2px 2px;
  background: linear-gradient(180deg, transparent, var(--hop-cream) 30%);
}

.sticky-action .button {
  width: 100%;
}

.redemption-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--hop-surface);
  border: 1px solid var(--hop-divider);
  box-shadow: var(--shadow-light);
}

.redemption-card h2 {
  margin: 6px 0 8px;
  color: var(--hop-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.redemption-card p {
  margin: 0;
  color: var(--hop-muted);
  line-height: 1.5;
}

.qr-frame {
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 18px auto;
  padding: 14px;
  border: 1px solid var(--hop-divider);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: white;
}

.qr-frame svg {
  width: 100%;
  height: 100%;
}

.redemption-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.meta-cell {
  min-height: 68px;
  padding: 12px;
  border-radius: 13px;
  background: #f4eee1;
}

.meta-cell span,
.meta-cell strong {
  display: block;
}

.meta-cell span {
  color: var(--hop-muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-cell strong {
  margin-top: 5px;
  color: var(--hop-green-dark);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.status-banner {
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff1cf;
  color: var(--hop-warning);
  font-size: 0.82rem;
  font-weight: 850;
}

.status-banner.success {
  background: #e5f4ed;
  color: var(--hop-green);
}

.status-banner.error {
  background: #ffebe7;
  color: var(--hop-error);
}

.member-card-shell {
  border-radius: var(--radius-hero);
  overflow: hidden;
}

.member-card {
  min-height: 330px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 50%),
    linear-gradient(145deg, #0d3c2d, #176148);
  color: white;
}

.member-card::after {
  content: "";
  position: absolute;
  inset: auto -100px -150px auto;
  width: 270px;
  height: 270px;
  border: 40px solid rgba(239, 226, 200, 0.08);
  border-radius: 50%;
}

.member-card-logo {
  width: 170px;
  padding: 10px 13px;
  border-radius: 14px;
  background: var(--hop-surface);
}

.member-card-logo img {
  display: block;
  width: 100%;
}

.member-name {
  margin-top: 34px;
}

.member-name span {
  color: #eadbbf;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.member-name h2 {
  margin: 4px 0 0;
  font-size: 2.2rem;
  letter-spacing: -0.04em;
}

.member-code {
  display: inline-flex;
  margin-top: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  font-size: 0.75rem;
  font-weight: 850;
}

.member-stats {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  position: relative;
  z-index: 1;
}

.member-stat {
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.member-stat + .member-stat {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.member-stat span,
.member-stat strong {
  display: block;
}

.member-stat span {
  color: #eadbbf;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.member-stat strong {
  margin-top: 4px;
  font-size: 2.3rem;
}

.member-qr-section {
  padding: 20px;
  text-align: center;
}

.member-qr-section h3 {
  margin: 0;
  color: var(--hop-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.member-qr-section p {
  margin: 7px auto 0;
  max-width: 350px;
  color: var(--hop-muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.account-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: var(--hop-surface);
  border: 1px solid var(--hop-divider);
}

.account-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hop-green);
  color: white;
  font-size: 1.15rem;
  font-weight: 900;
}

.account-card h2 {
  margin: 0;
  color: var(--hop-green-dark);
  font-size: 1.15rem;
}

.account-card p {
  margin: 5px 0 0;
  color: var(--hop-muted);
  font-size: 0.8rem;
}

.account-row {
  min-height: 58px;
  padding: 0 15px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--hop-surface);
  border: 1px solid var(--hop-divider);
  color: var(--hop-green-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.account-row span:last-child {
  color: var(--hop-muted);
  font-weight: 700;
  text-align: right;
}

.state-card {
  min-height: 250px;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.state-card svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--hop-green);
  stroke-width: 1.4;
}

.state-card h2 {
  margin: 5px 0 0;
  color: var(--hop-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.state-card p {
  max-width: 330px;
  margin: 0;
  color: var(--hop-muted);
  line-height: 1.5;
}

.skeleton {
  border-radius: 14px;
  background: linear-gradient(90deg, #eee6d8 20%, #f9f3e7 45%, #eee6d8 70%);
  background-size: 220% 100%;
  animation: shimmer 1.2s infinite linear;
}

@keyframes shimmer {
  to { background-position: -220% 0; }
}

.loading-layout {
  display: grid;
  gap: 14px;
}

.loading-layout .skeleton:first-child {
  height: 46px;
  width: 64%;
}

.loading-layout .skeleton:nth-child(2) {
  height: 250px;
}

.loading-layout .skeleton:nth-child(n + 3) {
  height: 86px;
}

.bottom-nav {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: 0;
  width: min(100%, var(--content-width));
  height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  padding: 7px max(10px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(10px, env(safe-area-inset-right));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 3px;
  border-top: 1px solid rgba(18, 60, 46, 0.08);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 -12px 34px rgba(18, 42, 34, 0.09);
  backdrop-filter: blur(20px);
}

.bottom-nav button {
  min-width: 0;
  min-height: 58px;
  padding: 5px 2px;
  border-radius: 14px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  background: transparent;
  color: var(--hop-muted);
  cursor: pointer;
}

.bottom-nav button span {
  font-size: 0.64rem;
  font-weight: 850;
}

.bottom-nav button.active {
  background: #e8f2ed;
  color: var(--hop-green);
}

.bottom-nav .nav-card {
  color: var(--hop-red);
}

.bottom-nav .nav-card.active {
  background: transparent;
}

.nav-card-icon {
  width: 44px;
  height: 44px;
  margin-top: -24px;
  border: 4px solid var(--hop-surface);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hop-red);
  color: white;
  box-shadow: 0 8px 18px rgba(176, 42, 42, 0.25);
}

.bottom-nav .nav-card > span:last-child {
  margin-top: -3px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(10, 30, 23, 0.52);
  backdrop-filter: blur(4px);
}

.app-drawer {
  position: fixed;
  z-index: 75;
  inset: 0 auto 0 0;
  width: min(86vw, 360px);
  padding:
    calc(22px + env(safe-area-inset-top))
    20px
    calc(22px + env(safe-area-inset-bottom));
  transform: translateX(-104%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
  background: var(--hop-surface);
  box-shadow: 24px 0 60px rgba(8, 27, 20, 0.24);
}

.app-drawer.open {
  transform: none;
}

.app-drawer > header {
  min-height: 82px;
  margin: -22px -20px 18px;
  padding: calc(20px + env(safe-area-inset-top)) 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--hop-green);
}

.app-drawer > header img {
  width: 170px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--hop-surface);
}

.drawer-close {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.app-drawer nav {
  display: grid;
  gap: 5px;
}

.app-drawer nav button,
.drawer-logout {
  min-height: 50px;
  border-radius: 12px;
  padding: 0 14px;
  background: transparent;
  color: var(--hop-green-dark);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.app-drawer nav button.active {
  background: #e7f2ec;
}

.drawer-logout {
  margin-top: auto;
  color: var(--hop-red);
}

.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 18px);
  width: min(calc(100% - 32px), 480px);
  min-height: 48px;
  padding: 13px 16px;
  transform: translateX(-50%);
  border-radius: 14px;
  background: var(--hop-green-dark);
  color: white;
  box-shadow: var(--shadow-elevated);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 370px) {
  :root {
    --page-gutter: 15px;
  }

  .header-brand {
    width: 142px;
  }

  .hero-card {
    padding: 24px 20px;
  }

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

  .reward-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .reward-art {
    width: 82px;
  }
}

@media (min-width: 768px) {
  body {
    background:
      linear-gradient(90deg, rgba(18, 60, 46, 0.04) 1px, transparent 1px),
      linear-gradient(rgba(18, 60, 46, 0.04) 1px, transparent 1px),
      var(--hop-cream);
    background-size: 42px 42px;
  }

  .app-shell {
    padding-inline: 14px;
  }

  .safe-header,
  .bottom-nav {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .safe-header {
    border-radius: 0 0 24px 24px;
    background: rgba(248, 243, 232, 0.95);
  }

  .page-content {
    max-width: 920px;
    margin: 0 auto;
  }

  .home-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    align-items: start;
  }

  .home-primary,
  .home-secondary {
    display: grid;
    gap: 16px;
    align-content: start;
  }

  .section-title {
    margin-top: 25px;
  }

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

  .reward-card {
    min-height: 154px;
  }

  .detail-hero {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  }

  .detail-art {
    height: 100%;
    min-height: 430px;
  }

  .detail-copy {
    padding: 32px;
  }

  .member-card-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  }

  .member-card {
    min-height: 520px;
  }

  .member-qr-section {
    display: grid;
    place-items: center;
    align-content: center;
  }

  .bottom-nav {
    max-width: 720px;
    bottom: 14px;
    border: 1px solid var(--hop-divider);
    border-radius: 22px;
    padding-bottom: 7px;
  }

  .page-content {
    padding-bottom: calc(var(--nav-height) + 56px);
  }

  .sticky-action {
    bottom: calc(var(--nav-height) + 32px);
  }
}

@media (min-width: 1024px) {
  .page-content {
    padding-top: calc(var(--header-height) + 26px);
  }

  .hero-card {
    min-height: 320px;
  }

  .rewards-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .rewards-layout .rewards-balance {
    position: sticky;
    top: calc(var(--header-height) + 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* HOP Club V3: compact restaurant-app presentation */
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(239, 226, 200, 0.55), transparent 28%),
    radial-gradient(circle at 94% 88%, rgba(46, 155, 105, 0.08), transparent 30%),
    var(--hop-cream);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.safe-header {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  border-bottom: 1px solid rgba(18, 60, 46, 0.07);
  background: rgba(248, 243, 232, 0.97);
  backdrop-filter: blur(18px);
}

.header-brand {
  width: 146px;
}

.header-brand img {
  max-height: 42px;
}

.icon-button,
.drawer-close {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 4px 14px rgba(18, 42, 34, 0.05);
}

.page-content {
  padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 14px);
}

.page-heading,
.greeting {
  margin-top: 0;
}

.page-heading h1,
.display-heading,
.greeting h1,
.login-copy h1,
.promotion-card h3,
.reward-preview h3,
.reward-copy h3,
.detail-copy h1,
.redemption-card h2,
.member-qr-section h3,
.state-card h2 {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.compact-heading {
  margin-bottom: 16px;
}

.compact-heading h1 {
  margin-top: 6px;
}

.compact-heading p:last-child {
  max-width: 580px;
  margin-top: 7px;
  font-size: 0.9rem;
}

.greeting {
  margin-bottom: 15px;
}

.greeting p {
  color: var(--hop-green);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.greeting h1 {
  max-width: 520px;
  margin-top: 5px;
  font-size: clamp(1.8rem, 7.6vw, 2.65rem);
  line-height: 1.05;
}

.home-grid,
.home-primary,
.home-secondary {
  gap: 14px;
  min-width: 0;
  width: 100%;
}

.pickup-banner {
  min-height: 154px;
  padding: 21px;
  border-radius: var(--radius-hero);
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.11) 0 26%, transparent 26.5%),
    linear-gradient(135deg, #8f171c, #ce2530);
  color: white;
  box-shadow: 0 14px 32px rgba(176, 42, 42, 0.18);
}

.pickup-banner .eyebrow {
  color: #f8dcad;
}

.pickup-banner h2 {
  margin: 5px 0 6px;
  max-width: 330px;
  font-size: 1.55rem;
  line-height: 1.05;
}

.pickup-banner p:last-child {
  margin: 0;
  max-width: 330px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
  line-height: 1.4;
}

.pickup-banner .button {
  width: 100%;
  background: white;
  color: var(--hop-red);
  box-shadow: none;
}

.hero-card {
  min-height: 190px;
  padding: 20px;
  border-radius: var(--radius-hero);
  justify-content: flex-start;
  background: linear-gradient(145deg, #0d3c2d, #176148);
  box-shadow: 0 14px 30px rgba(18, 60, 46, 0.16);
}

.hero-card::after,
.promotion-card::after {
  display: none;
}

.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-card h2 {
  margin: 14px 0 4px;
  font-family: inherit;
  font-size: clamp(2.4rem, 12vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.hero-card h2 small {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-card > p {
  max-width: 420px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero-actions {
  margin-top: auto;
  padding-top: 15px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.button.light {
  min-height: 43px;
  padding-inline: 14px;
  background: white;
  color: var(--hop-green);
}

.text-button {
  min-height: 43px;
  padding: 0 10px;
  border-radius: 11px;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
}

.light-text {
  color: rgba(255, 255, 255, 0.86);
}

.status-row {
  min-height: 74px;
  padding: 14px;
}

.status-main small,
.status-value small {
  font-size: 0.69rem;
}

.status-main strong,
.status-value strong {
  font-size: 0.84rem;
}

.section-title {
  margin-top: 20px;
}

.section-title h2 {
  font-size: 1.02rem;
}

.featured-scroller {
  max-width: calc(100vw - (var(--page-gutter) * 2));
  margin-inline: calc(var(--page-gutter) * -1);
  padding: 0 var(--page-gutter) 4px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 76vw);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.featured-scroller::-webkit-scrollbar {
  display: none;
}

.menu-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  background: var(--hop-surface);
  border: 1px solid rgba(18, 60, 46, 0.1);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(21, 42, 33, 0.07);
}

.menu-card.compact {
  grid-template-columns: 1fr;
  scroll-snap-align: start;
}

.menu-card-image {
  min-height: 142px;
  overflow: hidden;
  background: #efe5d4;
}

.menu-card.compact .menu-card-image {
  height: 146px;
  min-height: 0;
}

.menu-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-card-image .menu-fallback {
  padding: 26px 16px;
  object-fit: contain;
  opacity: 0.72;
}

.menu-card-copy {
  min-width: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.menu-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}

.menu-card-title h3 {
  min-width: 0;
  margin: 0;
  color: var(--hop-green-dark);
  font-size: 0.98rem;
  line-height: 1.15;
}

.menu-card-title strong {
  flex: none;
  color: var(--hop-red);
  font-size: 0.86rem;
}

.menu-card-copy > p {
  margin: 7px 0 10px;
  color: var(--hop-muted);
  font-size: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--hop-muted);
  font-size: 0.64rem;
  font-weight: 800;
}

.menu-card-footer span:last-child {
  color: var(--hop-green);
}

.menu-search {
  min-height: 54px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--hop-divider);
  border-radius: 16px;
  background: var(--hop-surface);
  box-shadow: var(--shadow-light);
}

.menu-search svg {
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: var(--hop-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.menu-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hop-charcoal);
  font-size: 0.9rem;
}

.category-scroller {
  margin: 13px calc(var(--page-gutter) * -1) 0;
  padding: 0 var(--page-gutter) 5px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-scroller::-webkit-scrollbar {
  display: none;
}

.category-scroller button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--hop-divider);
  border-radius: 999px;
  flex: none;
  background: var(--hop-surface);
  color: var(--hop-muted);
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.category-scroller button.active {
  border-color: var(--hop-red);
  background: var(--hop-red);
  color: white;
}

.menu-count {
  margin: 12px 2px;
  color: var(--hop-green-dark);
  font-size: 0.78rem;
}

.menu-count span {
  margin-left: 5px;
  color: var(--hop-muted);
}

.menu-grid {
  display: grid;
  gap: 12px;
}

.inline-notice,
.install-guide {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #fff2d8;
  color: #78500f;
  font-size: 0.8rem;
  line-height: 1.45;
}

.order-page {
  min-height: calc(100dvh - var(--header-height) - var(--nav-height) - 50px);
  display: grid;
  align-items: center;
}

.order-coming-card {
  padding: 28px 22px;
  border-radius: var(--radius-hero);
  background: var(--hop-surface);
  border: 1px solid var(--hop-divider);
  box-shadow: var(--shadow-elevated);
  text-align: center;
}

.order-icon,
.notification-hero-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: #e6f1eb;
  color: var(--hop-green);
}

.order-icon svg,
.notification-hero-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.order-coming-card h1 {
  margin: 8px auto 10px;
  max-width: 420px;
  color: var(--hop-green-dark);
  font-size: clamp(1.85rem, 8vw, 2.65rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.order-coming-card > p:not(.eyebrow) {
  max-width: 500px;
  margin: 0 auto;
  color: var(--hop-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.order-coming-card .button {
  width: 100%;
  margin-top: 22px;
}

.order-coming-card small {
  display: block;
  margin-top: 13px;
  color: var(--hop-muted);
  font-size: 0.69rem;
}

.notification-hero {
  padding: 22px;
  border-radius: var(--radius-hero);
  display: grid;
  gap: 4px;
  background: linear-gradient(145deg, #0d3c2d, #176148);
  color: white;
}

.notification-hero-icon {
  margin: 0 0 12px;
  background: rgba(255, 255, 255, 0.13);
  color: white;
}

.notification-hero h2 {
  margin: 10px 0 7px;
  font-size: 1.45rem;
  line-height: 1.08;
}

.notification-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.83rem;
  line-height: 1.45;
}

.notification-settings {
  min-height: 84px;
  margin-top: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.notification-settings h3 {
  margin: 0;
  color: var(--hop-green-dark);
  font-size: 0.92rem;
}

.notification-settings p {
  margin: 5px 0 0;
  color: var(--hop-muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.status-switch {
  width: 48px;
  height: 28px;
  padding: 3px;
  border-radius: 999px;
  flex: none;
  display: flex;
  background: #d7d5cf;
}

.status-switch i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.17);
  transition: transform 180ms ease;
}

.status-switch.on {
  background: var(--hop-success);
}

.status-switch.on i {
  transform: translateX(20px);
}

.notification-actions {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.notification-actions .button {
  width: 100%;
}

.danger-text {
  color: var(--hop-error) !important;
}

.privacy-note {
  margin: 14px 8px 0;
  color: var(--hop-muted);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}

.install-guide {
  margin: 14px 0 0;
}

.install-guide strong {
  display: block;
  color: var(--hop-green-dark);
}

.install-guide ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

.reward-card::before,
.reward-card::after {
  display: none !important;
}

.reward-card {
  min-height: 128px;
  grid-template-columns: 82px minmax(0, 1fr);
  border-radius: 18px;
}

.reward-art {
  width: 82px;
  border-radius: 16px;
}

.reward-copy h3 {
  font-size: 1.02rem;
  line-height: 1.15;
}

.rewards-balance {
  padding: 20px;
  border-radius: 20px;
}

.rewards-balance strong {
  font-size: 2.8rem;
}

.bottom-nav {
  border-radius: 20px 20px 0 0;
}

.bottom-nav button.active {
  background: #e7f2ec;
}

.bottom-nav .nav-card.active {
  background: transparent;
}

.drawer-note {
  float: right;
  color: var(--hop-muted);
  font-size: 0.68rem;
  font-weight: 750;
}

@media (min-width: 520px) {
  .pickup-banner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pickup-banner .button {
    width: auto;
    min-width: 140px;
  }

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

  .menu-card {
    grid-template-columns: 1fr;
  }

  .menu-card-image {
    height: 180px;
    min-height: 0;
  }
}

@media (min-width: 768px) {
  body {
    background:
      radial-gradient(circle at 10% 10%, rgba(239, 226, 200, 0.58), transparent 28%),
      radial-gradient(circle at 90% 85%, rgba(46, 155, 105, 0.09), transparent 30%),
      var(--hop-cream);
  }

  .safe-header {
    border-radius: 0 0 20px 20px;
  }

  .home-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.8fr);
    gap: 18px;
  }

  .home-secondary .status-row {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 8px 11px;
  }

  .home-secondary .status-main {
    display: block;
  }

  .home-secondary .status-main small {
    margin-top: 3px;
  }

  .home-secondary .status-value {
    grid-column: 2;
    padding-top: 8px;
    border-top: 1px solid var(--hop-divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .featured-scroller {
    margin-inline: 0;
    padding-inline: 0;
    grid-auto-columns: minmax(220px, 46%);
  }

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

  .menu-card-image {
    height: 190px;
  }

  .order-coming-card,
  .notification-hero,
  .notification-settings,
  .notification-actions,
  .privacy-note,
  .install-guide {
    width: min(100%, 660px);
    margin-inline: auto;
  }

  .notification-hero {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }

  .notification-hero-icon {
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* V184: contain reward progress on Safari */
.reward-copy h3,
.reward-title {
  display: block;
  margin: 9px 0 5px;
  color: var(--hop-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.15;
}

.reward-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--hop-muted);
  font-size: 0.77rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.reward-copy { display: block; position: relative; min-width: 0; background: none !important; }
.reward-card { overflow: hidden; isolation: isolate; }
.progress-track { display: block; width: 100%; height: 7px; overflow: hidden; }
.progress-track > span { display: block; max-width: 100%; height: 100%; }

/* V5 connected pickup ordering */
.menu-add-button {
  min-height: 38px;
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--hop-green-dark);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.floating-cart-button {
  position: sticky;
  z-index: 12;
  top: 76px;
  display: flex;
  width: min(100%, 680px);
  margin: 0 auto 18px;
  padding: 13px 18px;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 16px;
  background: var(--hop-red);
  box-shadow: 0 12px 30px rgba(98, 20, 20, .2);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.ordering-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 22px; align-items: start; }
.order-cart { padding: 22px; }
.cart-lines { display: grid; gap: 0; border-block: 1px solid rgba(18, 60, 46, .12); }
.cart-line { display: flex; padding: 16px 0; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(18, 60, 46, .1); }
.cart-line:last-child { border-bottom: 0; }
.cart-line > div { min-width: 0; }
.cart-line small { display: block; margin-top: 4px; color: var(--hop-muted); line-height: 1.4; }
.cart-line > span { display: grid; justify-items: end; gap: 9px; white-space: nowrap; }
.cart-quantity { display: grid; grid-template-columns: 32px 24px 32px; align-items: center; text-align: center; }
.cart-quantity button { width: 32px; height: 32px; border: 1px solid rgba(18, 60, 46, .18); border-radius: 50%; background: #fff; color: var(--hop-green-dark); font-size: 1.15rem; cursor: pointer; }
.checkout-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.checkout-fields label, .modifier-notes { display: grid; gap: 7px; color: var(--hop-green-dark); font-size: .82rem; font-weight: 800; }
.checkout-fields .full { grid-column: 1 / -1; }
.checkout-fields select, .checkout-fields input, .checkout-fields textarea, .modifier-notes textarea { width: 100%; padding: 12px 13px; border: 1px solid rgba(18, 60, 46, .18); border-radius: 12px; background: #fff; color: var(--hop-ink); font: inherit; }
.checkout-fields textarea, .modifier-notes textarea { min-height: 82px; resize: vertical; }
.checkout-totals { display: grid; gap: 9px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(18, 60, 46, .14); }
.checkout-totals > div { display: flex; justify-content: space-between; gap: 15px; }
.checkout-totals .total { margin-top: 4px; padding-top: 13px; border-top: 2px solid var(--hop-green-dark); color: var(--hop-green-dark); font-size: 1.05rem; }
.order-submit { width: 100%; margin-top: 18px; }
.checkout-note { margin: 10px 0 0; color: var(--hop-muted); font-size: .78rem; line-height: 1.45; text-align: center; }
.empty-cart { display: grid; min-height: 320px; place-items: center; align-content: center; gap: 10px; text-align: center; }
.empty-cart > span { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 18px; background: var(--hop-cream); color: var(--hop-green-dark); }
.empty-cart svg { width: 29px; }
.empty-cart h2, .empty-cart p { margin: 0; }
.order-history { display: grid; gap: 13px; }
.order-history .section-title { margin: 6px 0 0; }
.order-status-card { padding: 17px; }
.order-status-card header, .order-status-card footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.order-status-card h3 { margin: 3px 0 0; color: var(--hop-green-dark); }
.order-status-card ul { display: grid; gap: 7px; margin: 14px 0; padding: 0; list-style: none; }
.order-status-card ul li { display: flex; justify-content: space-between; gap: 10px; color: var(--hop-muted); font-size: .82rem; }
.order-status-card footer { padding-top: 12px; border-top: 1px solid rgba(18, 60, 46, .12); font-size: .78rem; }
.order-status-card > p { margin: 12px 0 0; padding: 10px; border-radius: 10px; background: #fff6da; color: #72530e; font-size: .78rem; }
.order-status { padding: 6px 9px; border-radius: 999px; background: #fff3cc; color: #72530e; font-size: .7rem; font-weight: 900; text-transform: capitalize; }
.order-status.accepted, .order-status.ready, .order-status.completed { background: #dff4e8; color: #17623e; }
.order-status.denied, .order-status.cancelled { background: #fde7e5; color: #8b2824; }
.order-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 14px 0; padding: 0; list-style: none; }
.order-steps li { padding-top: 7px; border-top: 4px solid #deded6; color: var(--hop-muted); font-size: .66rem; font-weight: 800; text-align: center; }
.order-steps li.done { border-color: var(--hop-green); color: var(--hop-green-dark); }

.order-modal-open { overflow: hidden; }
.order-modal-backdrop { position: fixed; z-index: 90; inset: 0; background: rgba(8, 24, 18, .58); backdrop-filter: blur(3px); }
.order-modal { position: fixed; z-index: 91; inset: max(16px, env(safe-area-inset-top)) max(16px, calc((100vw - 780px) / 2)) max(16px, env(safe-area-inset-bottom)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border-radius: 24px; background: #fffdf8; box-shadow: 0 28px 80px rgba(0, 0, 0, .32); }
.order-modal > header { display: flex; padding: 20px 22px 17px; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(18, 60, 46, .12); }
.order-modal > header h2, .order-modal > header p { margin: 3px 0 0; }
.order-modal > header p:last-child { color: var(--hop-muted); font-size: .83rem; }
.modal-close { width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--hop-cream); color: var(--hop-green-dark); font-size: 1.6rem; cursor: pointer; }
.order-modal-body { overflow-y: auto; padding: 4px 22px 24px; }
.modifier-field { margin: 20px 0 0; padding: 0; border: 0; }
.modifier-field legend { width: 100%; margin-bottom: 10px; color: var(--hop-green-dark); font-size: 1rem; font-weight: 900; }
.modifier-field legend small { float: right; color: var(--hop-red); font-size: .7rem; text-transform: uppercase; }
.modifier-options { display: grid; gap: 8px; }
.modifier-option-wrap { display: grid; gap: 6px; }
.modifier-option { display: flex; width: 100%; min-height: 48px; padding: 10px 13px; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid rgba(18, 60, 46, .18); border-radius: 13px; background: #fff; color: var(--hop-ink); font: inherit; text-align: left; cursor: pointer; }
.modifier-option.selected { border: 2px solid var(--hop-green); background: #edf8f1; color: var(--hop-green-dark); }
.modifier-option strong { font-size: .78rem; }
.mini-options { display: flex; padding: 0 8px 6px; gap: 6px; flex-wrap: wrap; }
.mini-options button { padding: 6px 10px; border: 1px solid rgba(18, 60, 46, .16); border-radius: 999px; background: #fff; color: var(--hop-muted); font: inherit; font-size: .7rem; text-transform: capitalize; cursor: pointer; }
.mini-options button.selected { border-color: var(--hop-green); background: var(--hop-green); color: #fff; }
.modifier-notes { margin-top: 20px; }
.order-modal > footer { display: grid; grid-template-columns: 1fr auto; padding: 15px 22px max(15px, env(safe-area-inset-bottom)); gap: 12px; align-items: center; border-top: 1px solid rgba(18, 60, 46, .13); background: #fff; }
.order-modal > footer span { display: grid; }
.order-modal > footer p { grid-column: 1 / -1; margin: 0; color: var(--hop-red); font-size: .75rem; }

@media (max-width: 820px) {
  .ordering-layout { grid-template-columns: 1fr; }
  .order-history { margin-top: 4px; }
}

@media (max-width: 560px) {
  .order-cart { padding: 16px; }
  .checkout-fields { grid-template-columns: 1fr; }
  .checkout-fields .full { grid-column: auto; }
  .cart-line { align-items: flex-start; }
  .cart-line > span { min-width: 92px; }
  .order-modal { inset: max(8px, env(safe-area-inset-top)) 0 0; border-radius: 22px 22px 0 0; }
  .order-modal > header, .order-modal-body, .order-modal > footer { padding-inline: 16px; }
  .floating-cart-button { top: 68px; }
}
