:root {
  --espresso: #0a0a0a;
  --roast: #2a2a2a;
  --foam: #ffffff;
  --ink: #111111;
  --sub: #6f6f6f;
  --edge: rgba(0, 0, 0, 0.09);
  --soft: #f4f4f4;
  --accent: #111111;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
  --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.07);
  --radius: 24px;
  --radius-sm: 18px;
  --font: "Rubik", system-ui, sans-serif;
  --display: "Rubik", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  touch-action: manipulation;
}

body {
  display: flex;
  justify-content: center;
}

.surface {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chrome {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--edge);
  background: #fff;
}

.brand-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-up 0.45s ease both;
}

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(220px, 72vw);
  object-fit: contain;
  object-position: center;
}

#content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 18px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  background: #fff;
}

nav#tabs {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 12px calc(10px + env(safe-area-inset-bottom));
  padding: 8px;
  border-radius: 28px;
  background: #f3f3f3;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

nav#tabs button {
  border: 0;
  background: transparent;
  color: #3d3d3d;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 4px 6px;
  min-height: 64px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

nav#tabs .tab-icon,
nav#tabs button svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
  flex-shrink: 0;
}

nav#tabs .tab-label {
  display: block;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

nav#tabs button[aria-current="page"] {
  background: linear-gradient(180deg, var(--roast), var(--espresso));
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

nav#tabs button[aria-current="page"] .tab-label {
  color: #fff;
}

nav#tabs button:active { transform: scale(0.96); }

.panel {
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin: 0 0 16px;
  animation: fade-up 0.4s ease both;
}

.panel-hero {
  background: #fff;
  padding: 22px 18px 18px;
}

.panel-balance {
  background: linear-gradient(145deg, var(--roast) 0%, var(--espresso) 70%);
  color: #fff;
  border: 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel-balance::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
}

.panel-balance > * { position: relative; z-index: 1; }

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
  animation: fade-up 0.35s ease both;
}

.section-title h2 {
  font-family: var(--display);
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-title .title-ico {
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.section-title .title-ico svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.muted { color: var(--sub); font-size: 13px; }
.center { text-align: center; }

.logo-mark {
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: var(--accent);
  animation: pop-in 0.5s cubic-bezier(.2, .9, .3, 1.2) both;
}

.logo-mark svg {
  width: 48px;
  height: 48px;
  stroke-width: 2;
}

.barcode-wrap {
  background: #fff;
  border-radius: 20px;
  padding: 14px 10px 12px;
  margin: 0 0 10px;
  box-shadow: inset 0 0 0 1px var(--edge);
  cursor: pointer;
  transition: padding 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.barcode-wrap:active:not(.enlarged) { opacity: 0.92; }

.barcode-wrap svg#card-barcode {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

#content.scroll-locked {
  overflow: hidden !important;
  touch-action: none;
  overscroll-behavior: none;
}

body.barcode-modal-open {
  overflow: hidden;
  touch-action: none;
}

body.barcode-modal-open .surface {
  overflow: hidden;
}

.barcode-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.barcode-modal[hidden] {
  display: none !important;
}

.barcode-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.barcode-modal-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 16px 12px calc(20px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.28);
  animation: barcode-sheet-in 0.28s ease both;
}

.barcode-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.barcode-modal-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.barcode-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.barcode-modal-code {
  width: 100%;
  padding: 16px 0;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
}

.barcode-modal-code svg {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: min(42vh, 280px);
}

.barcode-modal-hint {
  margin: 14px 0 4px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--sub);
}

.barcode-modal-number {
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

@keyframes barcode-sheet-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tap-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--sub);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
}

.tap-hint svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.card-holder {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid var(--edge);
}

.card-holder-body {
  flex: 1;
  min-width: 0;
}

.card-holder-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-id {
  text-align: left;
  font-size: 15px;
  letter-spacing: 1.2px;
  font-variant-numeric: tabular-nums;
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-id small {
  color: var(--sub);
  letter-spacing: 1px;
  margin-right: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.personal-id strong {
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--espresso);
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #ddd;
  box-shadow: inset 0 0 0 1px var(--edge);
}

.avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(160deg, var(--roast), var(--espresso));
  box-shadow: none;
}

.id-chip {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  letter-spacing: 0.5px;
  border: 1px solid var(--edge);
}

.balance-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 8px;
}

.balance-label svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.big {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.balance-note {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.75;
}

.loyalty-panel {
  padding: 18px 16px 14px;
}

.loyalty-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.loyalty-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sub);
  margin-bottom: 4px;
}

.loyalty-percent {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
}

.loyalty-percent span {
  font-size: 20px;
  font-weight: 700;
}

.loyalty-next {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  max-width: 52%;
}

.charge-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink);
}

.charge-meta svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
  color: var(--accent);
}

.loyalty-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--edge);
}

.loyalty-badge svg {
  width: 14px;
  height: 14px;
}

.charge-track {
  height: 10px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--edge);
}

.charge-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--roast), var(--espresso));
  transition: width 0.35s ease;
}

.loyalty-use-banner {
  width: 100%;
  margin: 0 0 14px;
  padding: 14px 14px 14px 12px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.loyalty-use-banner:active {
  transform: scale(0.98);
}

.loyalty-use-banner-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--edge);
  flex-shrink: 0;
  color: var(--accent);
}

.loyalty-use-banner-ico svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.loyalty-use-banner-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.35;
}

.loyalty-use-banner-text strong {
  font-size: 14px;
  font-weight: 800;
}

.loyalty-use-banner-text .muted {
  font-size: 12px;
  font-weight: 600;
}

.loyalty-use-banner-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--roast), var(--espresso));
  color: #fff;
}

.loyalty-use-banner-arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.loyalty-details {
  border-top: 1px solid var(--edge);
  padding-top: 10px;
}

.loyalty-details summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 2px;
  color: var(--ink);
}

.loyalty-details summary::-webkit-details-marker {
  display: none;
}

.loyalty-details summary svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}

.loyalty-details[open] summary svg {
  transform: rotate(180deg);
}

.loyalty-details-body {
  padding: 4px 2px 8px;
  font-size: 13px;
  line-height: 1.5;
}

.loyalty-details-body h4 {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.loyalty-details-body h4:first-child {
  margin-top: 4px;
}

.level-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.level-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--sub);
  border: 1px solid var(--edge);
}

.level-pill.on {
  background: linear-gradient(180deg, var(--roast), var(--espresso));
  color: #fff;
  border-color: transparent;
}

.loyalty-warn {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--edge);
  font-size: 12px;
  color: var(--ink);
}

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

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--edge);
}

.info-item .ico {
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.info-item .ico svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.info-item .label {
  font-size: 12px;
  font-weight: 700;
  color: var(--sub);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.info-item .value {
  font-size: 16px;
  font-weight: 800;
  margin-top: 2px;
}

.info-item-birthday {
  align-items: flex-start;
}

.info-item-body {
  flex: 1;
  min-width: 0;
}

.birthday-add-hint {
  margin: 8px 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sub);
  font-weight: 500;
}

.birthday-profile-picker {
  margin-top: 8px;
}

.birthday-profile-picker .birthday-picker-preview {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--edge);
  background: var(--soft);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-align: center;
}

.birthday-profile-picker .date-fields {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.birthday-profile-picker .date-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.birthday-profile-picker .date-field span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--sub);
}

.birthday-profile-picker .date-field select {
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--edge);
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  -webkit-appearance: none;
  appearance: none;
}

.birthday-save-btn {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--roast), var(--espresso));
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.birthday-save-btn:disabled {
  opacity: 0.45;
}

.birthday-add-error {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #b42318;
}

.hidden {
  display: none !important;
}

.wallet-btn {
  width: 100%;
  margin: 18px 0 6px;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid #2a2a2a;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.wallet-btn .apple-logo {
  width: 20px;
  height: 20px;
  display: block;
}

.wallet-btn:active { transform: scale(0.98); }
.wallet-btn:disabled,
.wallet-btn.loading {
  opacity: 0.55;
}

.wallet-hint {
  margin: 0 0 8px;
  min-height: 18px;
}

.spot-card, .hist-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--edge);
  margin-bottom: 12px;
  animation: fade-up 0.4s ease both;
}

.spot-card .ico, .hist-card .ico, .cat-ico {
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
  align-self: center;
}

.spot-card .ico svg,
.hist-card .ico svg,
.cat-ico svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.spot-card h3, .hist-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.menu-page {
  margin: 0 -2px;
}

.menu-page-head .menu-sub {
  margin: -8px 0 12px;
}

.menu-cat-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -18px 14px;
  padding: 8px 18px 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge);
}

.menu-cat-nav::-webkit-scrollbar {
  display: none;
}

.menu-cat-chip {
  flex-shrink: 0;
  border: 1px solid var(--edge);
  background: #fff;
  color: var(--sub);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.menu-cat-chip.active {
  background: linear-gradient(180deg, var(--roast), var(--espresso));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.menu-cat-chip:active {
  transform: scale(0.97);
}

.menu-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 10px 12px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--edge);
  margin-bottom: 0;
  animation: fade-up 0.4s ease both;
  scroll-margin-top: 52px;
}

.menu-card .cat-head {
  position: sticky;
  top: var(--menu-nav-h, 48px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 10px;
  margin: 0 -2px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px 14px 0 0;
}

.menu-card .cat-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 0 4px;
  border-radius: 14px;
}

.menu-thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--soft);
}

.menu-thumb-fallback {
  display: grid;
  place-items: center;
  color: var(--accent);
}

.menu-thumb-fallback svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.cat-photo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.menu-row:nth-child(odd) {
  background: var(--soft);
}

.menu-row .name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

.price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.08);
  padding: 8px 12px;
  border-radius: 999px;
}

.price.plus { color: #1f7a45; background: rgba(46, 160, 90, 0.12); }
.price.minus { color: #b42318; background: rgba(180, 50, 40, 0.10); }

.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.pills button {
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--sub);
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.pills button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.pills button.active {
  background: linear-gradient(180deg, var(--roast), var(--espresso));
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pills button:active { transform: scale(0.96); }

.empty {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid var(--edge);
}

.empty .empty-ico {
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.empty .empty-ico svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.1;
}

.error {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(180, 50, 40, 0.06);
  border: 1px solid rgba(180, 50, 40, 0.12);
  margin: 12px 0;
  font-weight: 600;
}

.btn-retry {
  margin-top: 16px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--roast), var(--espresso));
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

.btn-bot-link {
  display: block;
  margin-top: 14px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--espresso);
  color: var(--espresso);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  line-height: 1.35;
}

.btn-bot-link:active {
  opacity: 0.92;
}

.empty .btn-retry {
  margin-top: 10px;
}

.loader {
  text-align: center;
  padding: 64px 20px;
  color: var(--sub);
  font-weight: 700;
}

.loader-icon {
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  animation: bob 1.2s ease-in-out infinite;
}

.loader-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.1;
}

.menu-loader {
  padding: 48px 16px;
}

.menu-retry-btn {
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, var(--roast), var(--espresso));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.menu-retry-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.menu-retry-btn:active {
  transform: scale(0.97);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
