:root {
  color-scheme: light;
  --ink: #171311;
  --ink-2: #302925;
  --paper: #f6f1e9;
  --paper-deep: #eee4d8;
  --card: #fffdf9;
  --copper: #c7612c;
  --copper-strong: #a94d24;
  --copper-soft: #f5dfcf;
  --forest: #264d3d;
  --success: #247a50;
  --success-soft: #e5f3eb;
  --warning: #a86816;
  --danger: #a73b36;
  --muted: #716861;
  --muted-2: #9b9188;
  --line: #e8ded3;
  --shadow-sm: 0 8px 22px rgba(54, 35, 21, 0.07);
  --shadow-md: 0 20px 55px rgba(48, 28, 15, 0.14);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #16110f;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(199, 97, 44, 0.25), transparent 29rem),
    radial-gradient(circle at 86% 84%, rgba(226, 169, 103, 0.13), transparent 32rem),
    #16110f;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

button:not(:disabled),
[role="button"]:not([aria-disabled="true"]) {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(199, 97, 44, 0.42);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon,
button svg,
a svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-frame {
  min-height: 100dvh;
}

.mobile-app {
  position: relative;
  width: min(100%, 470px);
  min-height: 100dvh;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(246, 241, 233, 0.98)),
    var(--paper);
  box-shadow: var(--shadow-md);
}

.mobile-app::before {
  content: "";
  position: fixed;
  inset: 0 auto auto 50%;
  z-index: -1;
  width: min(100%, 470px);
  height: 22rem;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(circle at 100% 0, rgba(211, 111, 50, 0.13), transparent 55%);
}

.app-loading {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.4rem;
  background: var(--paper);
}

.app-loading > strong {
  margin-top: 0.7rem;
  font-size: 1.65rem;
  letter-spacing: 0.18em;
}

.app-loading > small {
  color: var(--muted);
  font-size: 0.9rem;
}

.brand-orbit,
.brand-mark,
.brand-seal {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 64px;
  border: 2px solid currentColor;
  border-radius: 24px;
  color: var(--ink);
}

.brand-orbit::before,
.brand-mark::before,
.brand-seal::before {
  content: "";
  width: 30px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 48% 48%;
  clip-path: polygon(0 50%, 20% 8%, 80% 8%, 100% 50%, 80% 92%, 20% 92%);
}

.brand-orbit::after,
.brand-mark::after,
.brand-seal::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--card);
}

.brand-orbit span,
.brand-mark span,
.brand-seal span {
  position: absolute;
  width: 5px;
  height: 5px;
  top: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 40px 0 currentColor;
}

.app-loading .brand-orbit {
  color: var(--copper);
  animation: breathe 1.8s ease-in-out infinite;
}

@keyframes breathe {
  50% { transform: translateY(-4px); filter: drop-shadow(0 10px 8px rgba(199, 97, 44, 0.18)); }
}

.screen,
.app-screen,
.mobile-screen {
  min-height: 100dvh;
  padding: calc(1rem + var(--safe-top)) 1rem calc(6.6rem + var(--safe-bottom));
}

.screen.no-nav,
.app-screen.no-nav {
  padding-bottom: calc(1.5rem + var(--safe-bottom));
}

.screen-scroll {
  padding-bottom: 1.25rem;
}

.app-header,
.top-header,
.screen-header,
.mobile-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 4.2rem;
  margin-bottom: 1rem;
}

.app-header .brand-mark,
.top-header .brand-mark,
.mobile-header .brand-mark {
  width: 36px;
  height: 48px;
  border-radius: 18px;
  border-width: 1.7px;
}

.app-header .brand-mark::before,
.top-header .brand-mark::before,
.mobile-header .brand-mark::before {
  width: 22px;
  height: 13px;
  border-width: 1.6px;
}

.app-header .brand-mark::after,
.top-header .brand-mark::after,
.mobile-header .brand-mark::after {
  width: 6px;
  height: 6px;
  border-width: 1.5px;
}

.app-header .brand-mark span,
.top-header .brand-mark span,
.mobile-header .brand-mark span {
  top: 5px;
  width: 4px;
  height: 4px;
  box-shadow: 0 31px 0 currentColor;
}

.header-copy,
.greeting {
  min-width: 0;
  flex: 1;
}

.header-copy small,
.greeting small,
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 650;
}

.header-copy strong,
.greeting strong,
.screen-title {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1.25rem, 5.5vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.screen-title {
  margin-bottom: 0.25rem;
}

.icon-button,
.icon-btn,
.back-button,
.header-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 4px 14px rgba(43, 27, 18, 0.05);
}

.icon-button.has-badge,
.notification-button {
  position: relative;
}

.icon-button.has-badge::after,
.notification-button::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--copper);
}

.card,
.surface,
.panel {
  border: 1px solid rgba(232, 222, 211, 0.86);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: var(--shadow-sm);
}

.section {
  margin-top: 1.4rem;
}

.section-head,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.75rem;
}

.section-head h2,
.section-head strong,
.section-title h2,
.section-title strong {
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-head button,
.section-head a,
.section-title button,
.text-button,
.link-button {
  min-height: 44px;
  padding: 0.4rem 0;
  border: 0;
  color: var(--copper-strong);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.balance-strip,
.status-strip {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.balance-tile,
.tier-tile {
  min-width: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(232, 222, 211, 0.9);
  border-radius: 19px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.balance-tile small,
.tier-tile small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.balance-tile strong,
.tier-tile strong {
  display: block;
  margin-top: 0.16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.18rem;
  line-height: 1.18;
  white-space: nowrap;
}

.tier-progress,
.progress {
  height: 5px;
  margin-top: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-deep);
}

.tier-progress > span,
.progress > span {
  display: block;
  width: var(--progress, 55%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--copper), #e8a660);
}

.quick-actions,
.home-actions {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 0.7rem;
}

.quick-action,
.home-action {
  min-height: 8.35rem;
  padding: 1rem;
  border: 0;
  border-radius: 23px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--card);
  background:
    linear-gradient(145deg, rgba(25, 18, 15, 0.94), rgba(66, 39, 25, 0.91)),
    var(--ink);
  box-shadow: 0 14px 28px rgba(40, 25, 17, 0.18);
}

.quick-action.secondary,
.home-action.secondary {
  color: var(--ink);
  background: linear-gradient(145deg, #f1d9c8, #f7e9dd);
  box-shadow: var(--shadow-sm);
}

.quick-action .icon,
.home-action .icon {
  width: 1.7rem;
  height: 1.7rem;
}

.quick-action strong,
.home-action strong {
  max-width: 9rem;
  font-size: 1.04rem;
  line-height: 1.18;
}

.quick-action small,
.home-action small {
  color: inherit;
  opacity: 0.72;
  font-size: 0.76rem;
}

.order-status,
.active-order {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 4.8rem;
  padding: 0.9rem;
  border: 1px solid #cce5d6;
  border-radius: 21px;
  text-align: left;
  background: linear-gradient(135deg, #edf8f2, #fffdf9);
}

.order-status .status-icon,
.active-order .status-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: var(--success);
  background: #d7eee1;
}

.order-status strong,
.active-order strong,
.list-card strong {
  display: block;
  font-size: 0.98rem;
}

.order-status small,
.active-order small,
.list-card small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.usual-order,
.reorder-card,
.branch-card,
.list-card,
.profile-row,
.transaction-row,
.notification-row,
.coupon-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 4.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: left;
  background: var(--card);
}

.usual-order + .usual-order,
.profile-row + .profile-row,
.transaction-row + .transaction-row,
.notification-row + .notification-row {
  margin-top: 0.55rem;
}

.list-card > :nth-child(2),
.branch-card > :nth-child(2),
.usual-order > :nth-child(2),
.profile-row > :nth-child(2),
.transaction-row > :nth-child(2) {
  min-width: 0;
  flex: 1;
}

.thumb,
.item-thumb,
.product-thumb,
.branch-thumb {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 17px;
  color: var(--copper-strong);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.7), transparent 26%),
    linear-gradient(145deg, #f5ded0, #e8b388);
}

.branch-thumb {
  width: 88px;
  background-image:
    linear-gradient(90deg, rgba(20, 14, 11, 0.08), rgba(20, 14, 11, 0.16)),
    url("./assets/cochem-cafe-hero.png");
  background-size: cover;
  background-position: 72% 55%;
}

.thumb .icon,
.item-thumb .icon,
.product-thumb .icon {
  width: 1.8rem;
  height: 1.8rem;
}

.price {
  color: var(--copper-strong);
  font-weight: 800;
  white-space: nowrap;
}

.campaign-card,
.photo-card,
.hero-card {
  position: relative;
  min-height: 12.5rem;
  overflow: hidden;
  border-radius: 25px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20, 13, 9, 0.88) 0%, rgba(20, 13, 9, 0.45) 55%, rgba(20, 13, 9, 0.05) 100%),
    url("./assets/cochem-cafe-hero.png") center / cover;
  box-shadow: 0 16px 30px rgba(41, 25, 15, 0.18);
}

.campaign-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.1rem;
  text-align: left;
}

.campaign-card small,
.hero-card small {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.campaign-card strong,
.hero-card h2 {
  max-width: 15rem;
  margin-top: 0.3rem;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.campaign-card span {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  opacity: 0.82;
}

.search-field,
.search-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 50px;
  margin-bottom: 0.85rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
}

.search-field input,
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.96rem;
}

.search-field input::placeholder,
.search-box input::placeholder {
  color: var(--muted-2);
}

.segment-control,
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
  padding: 0.28rem;
  border-radius: 16px;
  background: #eae1d7;
}

.segment-control button,
.segmented button {
  min-height: 42px;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  font-weight: 750;
}

.segment-control button.active,
.segmented button.active,
.segment-control button[aria-selected="true"],
.segmented button[aria-selected="true"] {
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 4px 11px rgba(48, 30, 20, 0.08);
}

.category-row,
.chip-row,
.filter-row {
  display: flex;
  gap: 0.55rem;
  margin-inline: -1rem;
  padding: 0 1rem 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-row::-webkit-scrollbar,
.chip-row::-webkit-scrollbar,
.filter-row::-webkit-scrollbar {
  display: none;
}

.chip,
.category-chip {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--card);
  font-size: 0.86rem;
  font-weight: 700;
}

.chip.active,
.category-chip.active,
.chip[aria-pressed="true"],
.category-chip[aria-pressed="true"] {
  border-color: var(--copper);
  color: #fff;
  background: var(--copper);
}

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

.product-card,
.shop-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  text-align: left;
  background: var(--card);
  box-shadow: 0 8px 20px rgba(55, 36, 23, 0.055);
}

.product-card .product-thumb,
.shop-card .product-thumb {
  width: 100%;
  height: 8.4rem;
  border-radius: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.9), transparent 20%),
    linear-gradient(145deg, #f1d8c7, #dca06c);
}

.product-card:nth-child(3n + 2) .product-thumb,
.shop-card:nth-child(3n + 2) .product-thumb {
  color: var(--forest);
  background: linear-gradient(145deg, #e6eee8, #b6ccbc);
}

.product-card:nth-child(3n) .product-thumb,
.shop-card:nth-child(3n) .product-thumb {
  color: #8c671d;
  background: linear-gradient(145deg, #f5e5bf, #e4bf6f);
}

.product-card-body,
.product-info {
  padding: 0.8rem;
}

.product-card strong,
.shop-card strong {
  display: block;
  min-height: 2.35em;
  overflow: hidden;
  font-size: 0.93rem;
  line-height: 1.18;
}

.product-meta,
.allergen-note {
  display: block;
  margin-top: 0.32rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card footer,
.shop-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.add-button,
.round-add {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--copper);
}

.cart-bar,
.sticky-action {
  position: sticky;
  z-index: 7;
  bottom: calc(5.6rem + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 58px;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 15px 28px rgba(29, 18, 12, 0.25);
}

.primary-button,
.primary-btn,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 54px;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--copper), #d47b43);
  box-shadow: 0 10px 22px rgba(173, 75, 31, 0.2);
  font-weight: 800;
}

.primary-button:active,
.primary-btn:active,
.cta-button:active {
  background: var(--copper-strong);
  transform: translateY(1px);
}

.secondary-button,
.secondary-btn,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--copper);
  border-radius: 15px;
  color: var(--copper-strong);
  background: var(--card);
  font-weight: 750;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.badge,
.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--copper-strong);
  background: var(--copper-soft);
  font-size: 0.74rem;
  font-weight: 750;
}

.badge.success,
.pill.success,
.status-pill.success {
  color: var(--success);
  background: var(--success-soft);
}

.qr-layout,
.qr-screen-content {
  display: grid;
  justify-items: center;
  padding-top: 0.25rem;
  text-align: center;
}

.qr-layout h1,
.qr-screen-content h1 {
  font-size: 1.72rem;
  letter-spacing: -0.04em;
}

.qr-layout > p,
.qr-screen-content > p {
  max-width: 20rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.qr-card,
.qr-panel {
  width: 100%;
  margin-top: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.qr-code,
.qr-visual {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  width: min(72vw, 280px);
  aspect-ratio: 1;
  margin-inline: auto;
  padding: 0.65rem;
  border: 10px solid #fff;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(35, 23, 16, 0.1);
}

.qr-code i,
.qr-visual i {
  aspect-ratio: 1;
  background: transparent;
}

.qr-code i.on,
.qr-visual i.on {
  border-radius: 1px;
  background: var(--ink);
}

.qr-timer,
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  color: var(--copper-strong);
  font-weight: 800;
}

.qr-security,
.info-note,
.security-note {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding: 0.8rem;
  border-radius: 16px;
  color: var(--muted);
  background: #f2ece4;
  text-align: left;
  font-size: 0.8rem;
}

.wallet-hero {
  position: relative;
  min-height: 15rem;
  overflow: hidden;
  padding: 1.2rem;
  border-radius: 27px;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(20, 13, 9, 0.93), rgba(20, 13, 9, 0.28)),
    url("./assets/cochem-cafe-hero.png") 69% 52% / cover;
  box-shadow: var(--shadow-md);
}

.wallet-hero small {
  display: block;
  margin-top: 3rem;
  opacity: 0.8;
}

.wallet-hero strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 2.25rem;
  letter-spacing: -0.055em;
}

.wallet-hero .primary-button,
.wallet-hero .primary-btn {
  width: auto;
  margin-top: 1rem;
  padding-inline: 1.15rem;
}

.bonus-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid #e4c9b6;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff8f1, #f6e2d3);
}

.bonus-card .bonus-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: var(--copper-strong);
  background: rgba(255, 255, 255, 0.7);
}

.transaction-row .amount {
  margin-left: auto;
  font-weight: 800;
  white-space: nowrap;
}

.transaction-row .amount.positive {
  color: var(--success);
}

.transaction-row .amount.negative {
  color: var(--danger);
}

.loyalty-card {
  overflow: hidden;
  padding: 1rem;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 85% -30%, rgba(232, 166, 96, 0.45), transparent 55%),
    linear-gradient(145deg, #1d1714, #432c20);
  box-shadow: var(--shadow-md);
}

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

.loyalty-card small {
  color: rgba(255, 255, 255, 0.7);
}

.stamp-grid,
.stamps {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.4rem;
  margin-top: 1rem;
}

.stamp,
.stamp-grid i {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 50%;
  color: rgba(255,255,255,0.55);
  font-style: normal;
  font-size: 0.7rem;
}

.stamp.active,
.stamp-grid i.active {
  border-color: #eb9c61;
  color: #1c130f;
  background: #eb9c61;
}

.profile-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: var(--copper-strong);
  background: var(--copper-soft);
  font-size: 1.1rem;
  font-weight: 850;
}

.profile-groups,
.settings-list {
  display: grid;
  gap: 0.55rem;
}

.profile-row .row-icon,
.settings-list .row-icon,
.list-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--copper-strong);
  background: #f5ece4;
}

.profile-row.danger {
  color: var(--danger);
}

.profile-row .icon:last-child,
.list-card .icon:last-child,
.branch-card .icon:last-child {
  margin-left: auto;
  color: var(--muted-2);
}

.map-card,
.branch-map {
  position: relative;
  height: 15.5rem;
  overflow: hidden;
  border: 1px solid #d8d1c7;
  border-radius: 24px;
  background:
    linear-gradient(34deg, transparent 47%, rgba(255,255,255,0.94) 48%, rgba(255,255,255,0.94) 51%, transparent 52%),
    linear-gradient(145deg, transparent 31%, rgba(255,255,255,0.9) 32%, rgba(255,255,255,0.9) 34%, transparent 35%),
    linear-gradient(24deg, #cfe6e6 0 30%, #e4ead6 30% 100%);
}

.map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 10%;
  color: #fff;
  background: var(--copper);
  box-shadow: 0 8px 18px rgba(67, 37, 20, 0.22);
  transform: rotate(-45deg);
}

.map-pin > * {
  transform: rotate(45deg);
}

.map-pin:nth-child(1) { left: 25%; top: 28%; }
.map-pin:nth-child(2) { right: 19%; top: 43%; }
.map-pin:nth-child(3) { left: 50%; bottom: 19%; }

.current-location {
  position: absolute;
  left: 46%;
  top: 42%;
  width: 16px;
  height: 16px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #2d7dff;
  box-shadow: 0 0 0 12px rgba(45, 125, 255, 0.16);
}

.form-group {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 750;
}

.text-input,
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d9cec1;
  border-radius: 15px;
  outline: 0;
  color: var(--ink);
  background: #fff;
}

.form-group textarea {
  min-height: 7rem;
  resize: vertical;
}

.phone-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d9cec1;
  border-radius: 15px;
  background: #fff;
}

.phone-input span {
  padding: 0 0.8rem;
  border-right: 1px solid var(--line);
  font-weight: 800;
}

.phone-input input {
  border: 0;
}

.otp-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
}

.otp-row input {
  width: 100%;
  aspect-ratio: 0.86;
  min-height: 48px;
  padding: 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
}

.consent-row,
.check-row,
.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.65rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.consent-row input,
.check-row input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  accent-color: var(--copper);
}

.auth-screen,
.welcome-screen,
.onboarding {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: calc(1.4rem + var(--safe-top)) 1.15rem calc(1.25rem + var(--safe-bottom));
  background:
    linear-gradient(180deg, rgba(19, 13, 10, 0.12), rgba(19, 13, 10, 0.82)),
    url("./assets/cochem-cafe-hero.png") 67% center / cover;
  color: #fff;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.auth-brand .brand-mark {
  width: 34px;
  height: 46px;
  color: #fff;
}

.auth-content,
.welcome-content {
  margin-top: auto;
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 27px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.96);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.auth-content h1,
.welcome-content h1 {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.055em;
}

.auth-content > p,
.welcome-content > p {
  margin: 0.6rem 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.demo-link {
  width: 100%;
  min-height: 46px;
  margin-top: 0.5rem;
  border: 0;
  color: var(--copper-strong);
  background: transparent;
  font-weight: 800;
}

.bottom-nav,
.app-nav,
.tab-bar {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 470px);
  min-height: calc(5.15rem + var(--safe-bottom));
  padding: 0.38rem 0.35rem var(--safe-bottom);
  transform: translateX(-50%);
  border-top: 1px solid rgba(221, 210, 198, 0.9);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 -12px 30px rgba(47, 29, 18, 0.07);
  backdrop-filter: blur(18px);
}

.bottom-nav button,
.app-nav button,
.tab-bar button,
.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  min-height: 48px;
  padding: 0.15rem;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.67rem;
  font-weight: 700;
}

.bottom-nav button.active,
.app-nav button.active,
.tab-bar button.active,
.nav-item.active,
.nav-item[aria-current="page"] {
  color: var(--copper-strong);
}

.bottom-nav .pay-button,
.app-nav .pay-button,
.tab-bar .pay-button,
.nav-item.pay {
  transform: translateY(-0.7rem);
}

.bottom-nav .pay-button .nav-icon,
.app-nav .pay-button .nav-icon,
.tab-bar .pay-button .nav-icon,
.nav-item.pay .nav-icon {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  border: 5px solid var(--card);
  border-radius: 50%;
  color: #fff;
  background: var(--copper);
  box-shadow: 0 9px 18px rgba(171, 77, 35, 0.28);
}

.bottom-nav .nav-icon,
.app-nav .nav-icon,
.tab-bar .nav-icon,
.nav-item .nav-icon {
  display: grid;
  place-items: center;
  min-height: 25px;
}

.sheet-backdrop,
.modal-backdrop,
.overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: max(2rem, var(--safe-top));
  background: rgba(18, 12, 9, 0.56);
  animation: fade-in 160ms ease-out;
}

.sheet,
.bottom-sheet,
.modal-sheet {
  width: min(100%, 470px);
  max-height: min(90dvh, 800px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.65rem 1rem calc(1rem + var(--safe-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  box-shadow: 0 -20px 55px rgba(30, 19, 13, 0.28);
  animation: sheet-up 220ms cubic-bezier(.22,.82,.36,1);
}

.sheet::before,
.bottom-sheet::before,
.modal-sheet::before {
  content: "";
  display: block;
  width: 42px;
  height: 5px;
  margin: 0 auto 0.9rem;
  border-radius: 999px;
  background: #cfc4b8;
}

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

.sheet-header h2 {
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.sheet-body {
  padding-bottom: 0.25rem;
}

.sheet-actions {
  position: sticky;
  bottom: calc(-1rem - var(--safe-bottom));
  margin: 1rem -1rem calc(-1rem - var(--safe-bottom));
  padding: 0.8rem 1rem calc(0.8rem + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(246, 241, 233, 0.96);
  backdrop-filter: blur(14px);
}

.toast-stack {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: calc(6rem + var(--safe-bottom));
  display: grid;
  gap: 0.5rem;
  width: min(calc(100% - 2rem), 438px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  border-radius: 17px;
  color: #fff;
  background: rgba(23, 19, 17, 0.96);
  box-shadow: 0 12px 28px rgba(27, 18, 13, 0.24);
  animation: toast-in 200ms ease-out;
}

.empty-state {
  padding: 2rem 1rem;
  border: 1px dashed #d8ccc0;
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255,255,255,0.45);
  text-align: center;
}

.empty-state .icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
  color: var(--copper);
}

.danger-zone {
  border-color: #ecc9c6;
  color: var(--danger);
  background: #fff8f7;
}

.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;
}

[hidden] {
  display: none !important;
}

/* COCHEM customer application */
.customer-app {
  min-height: 100dvh;
}

.screen-content {
  min-height: calc(100dvh - 5rem);
  padding: 0 1rem calc(6.9rem + var(--safe-bottom));
}

.subview-screen {
  padding-top: 0.15rem;
}

.brand-button {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 44px;
  overflow: hidden;
  border: 1.8px solid currentColor;
  border-radius: 17px;
  color: transparent;
}

.brand-glyph::before {
  content: "";
  width: 21px;
  height: 12px;
  border: 1.7px solid var(--ink);
  border-radius: 50%;
}

.brand-glyph::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 -14px 0 -1px var(--ink), 0 14px 0 -1px var(--ink);
}

.app-header {
  position: relative;
  z-index: 4;
  margin: 0;
  padding: calc(0.75rem + var(--safe-top)) 1rem 0.65rem;
  background: linear-gradient(180deg, rgba(255,253,249,0.98), rgba(255,253,249,0.82), transparent);
}

.app-header h1 {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.12rem;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.header-context {
  min-width: 0;
  flex: 1;
  line-height: 1.1;
}

.header-context > span {
  display: block;
  max-width: 13rem;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-context button {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0;
  border: 0;
  color: var(--copper-strong);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 750;
}

.header-context .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.notification-button > span {
  position: absolute;
  top: -2px;
  right: -2px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid var(--card);
  border-radius: 999px;
  color: #fff;
  background: var(--copper);
  font-size: 0.62rem;
  font-weight: 850;
}

.notification-button.has-badge::after {
  display: none;
}

.welcome-block {
  margin: 0.25rem 0 0.9rem;
}

.welcome-block h1 {
  margin-top: 0.15rem;
  font-size: clamp(1.85rem, 8vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.welcome-block p,
.screen-title p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.active-order-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 4.7rem;
  margin-bottom: 0.85rem;
  padding: 0.8rem;
  border: 1px solid #cae3d4;
  border-radius: 21px;
  text-align: left;
  background: linear-gradient(135deg, #edf8f2, #fffdf9);
  box-shadow: var(--shadow-sm);
}

.order-pulse {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--success);
  background: #d9eee2;
}

.order-pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(36, 122, 80, 0.18);
  border-radius: 20px;
  animation: status-pulse 2s ease-out infinite;
}

.active-order-card small,
.active-order-card strong,
.active-order-card em {
  display: block;
}

.active-order-card small {
  color: var(--success);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.active-order-card strong {
  margin-top: 0.08rem;
  font-size: 0.98rem;
}

.active-order-card em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
}

.campaign-hero {
  position: relative;
  min-height: 13.5rem;
  margin: 0.9rem 0;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 18px 34px rgba(46, 28, 17, 0.2);
}

.campaign-visual,
.campaign-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.campaign-visual img {
  object-fit: cover;
  object-position: 68% center;
}

.campaign-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,13,9,0.94) 2%, rgba(20,13,9,0.6) 54%, rgba(20,13,9,0.12));
}

.campaign-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 13.5rem;
  padding: 1.1rem;
}

.campaign-kicker {
  color: #efb486;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.campaign-overlay h2 {
  max-width: 14.5rem;
  margin-top: 0.28rem;
  font-size: 1.55rem;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.campaign-overlay p {
  max-width: 15rem;
  margin-top: 0.35rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
}

.campaign-overlay button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 0.65rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.12);
  font-size: 0.77rem;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.quick-actions > button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 7.6rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: left;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.quick-actions > button:first-child {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(145deg, #1c1512, #4a3022);
}

.quick-actions > button:nth-child(2) {
  border-color: #e0b99e;
  color: var(--copper-strong);
  background: linear-gradient(145deg, #fff7f1, #f4dece);
}

.quick-actions > button > span:first-child {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 12px;
  background: rgba(199,97,44,0.12);
}

.quick-actions > button:first-child > span:first-child {
  background: rgba(255,255,255,0.12);
}

.quick-actions strong,
.quick-actions small {
  display: block;
}

.quick-actions strong {
  margin-top: auto;
  font-size: 0.84rem;
  line-height: 1.08;
}

.quick-actions small {
  margin-top: 0.18rem;
  color: inherit;
  opacity: 0.68;
  font-size: 0.66rem;
}

.section-block {
  margin-top: 1.35rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.68rem;
}

.section-heading > span {
  min-width: 0;
}

.section-heading small {
  display: block;
  color: var(--copper-strong);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.section-heading h2,
.section-heading strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 1.1rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading > button {
  min-height: 38px;
  padding: 0;
  border: 0;
  color: var(--copper-strong);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 750;
}

button.loyalty-card {
  display: block;
  width: 100%;
  margin-top: 0.9rem;
  border: 0;
  text-align: left;
}

.loyalty-card .section-heading {
  align-items: center;
}

.loyalty-card .section-heading small {
  color: #eeb184;
}

.loyalty-card .section-heading > b {
  font-size: 1.05rem;
}

.stamp-row {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.3rem;
  margin-top: 0.75rem;
}

.stamp-row .stamp {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  color: rgba(255,255,255,0.62);
  font-size: 0.62rem;
}

.stamp-row .stamp .icon {
  width: 0.78rem;
  height: 0.78rem;
}

.stamp-row .stamp.is-filled {
  border-color: #e9995e;
  color: #1f140f;
  background: #e9995e;
}

.stamp-row .stamp-reward {
  border-style: dashed;
}

.stamp-row .stamp-reward.is-ready {
  border-color: #f0bd94;
  color: #1f140f;
  background: #f0bd94;
}

.card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.73rem;
  font-weight: 700;
}

.card-link .icon {
  width: 0.9rem;
}

.usual-order-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.usual-order-cups {
  display: flex;
  width: 68px;
}

.usual-order-cups span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--card);
  border-radius: 50%;
  background: var(--copper-soft);
  font-size: 1.25rem;
}

.usual-order-cups span + span {
  margin-left: -16px;
  background: #f4e5be;
}

.usual-order-card strong,
.usual-order-card p {
  display: block;
}

.usual-order-card strong {
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usual-order-card p {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.usual-order-card > button {
  min-height: 40px;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--copper);
  font-size: 0.7rem;
  font-weight: 800;
}

.branch-preview {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  text-align: left;
  background: var(--card);
}

.mini-map {
  position: relative;
  align-self: stretch;
  min-height: 78px;
  overflow: hidden;
  background:
    linear-gradient(32deg, transparent 46%, rgba(255,255,255,0.85) 47% 51%, transparent 52%),
    linear-gradient(145deg, #d1e5e1 0 40%, #e5e9d4 40%);
}

.mini-map i {
  position: absolute;
  width: 45px;
  height: 3px;
  left: -4px;
  top: 45px;
  transform: rotate(-22deg);
  background: #fff;
}

.mini-map b {
  position: absolute;
  right: 18px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--copper);
}

.mini-map b .icon {
  width: 1rem;
  height: 1rem;
}

.branch-preview strong,
.branch-preview small,
.branch-preview em {
  display: block;
}

.branch-preview strong { font-size: 0.88rem; }
.branch-preview small { margin-top: 0.15rem; color: var(--muted); font-size: 0.7rem; }
.branch-preview em { margin-top: 0.12rem; color: var(--success); font-size: 0.68rem; font-style: normal; }
.branch-preview > .icon { margin-right: 0.6rem; color: var(--muted-2); }

.impact-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 18px;
  color: var(--forest);
  background: #e7f0e8;
}

.impact-strip > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: rgba(255,255,255,0.6);
}

.impact-strip strong,
.impact-strip small {
  display: block;
}

.impact-strip strong { font-size: 0.78rem; }
.impact-strip small { margin-top: 0.12rem; font-size: 0.67rem; opacity: 0.75; }
.impact-strip button { min-height: 38px; padding: 0.4rem 0.55rem; border: 0; border-radius: 12px; color: #fff; background: var(--forest); font-size: 0.67rem; font-weight: 750; }

.screen-title {
  display: block;
  margin: 0.25rem 0 0.9rem;
}

.screen-title.centered {
  text-align: center;
}

.screen-title h1 {
  margin-top: 0.1rem;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 50px;
  margin-bottom: 0.75rem;
  padding-left: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
}

.search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-form button {
  align-self: stretch;
  min-width: 55px;
  border: 0;
  border-radius: 0 16px 16px 0;
  color: var(--copper-strong);
  background: var(--copper-soft);
  font-size: 0.76rem;
  font-weight: 800;
}

.category-scroller {
  display: flex;
  gap: 0.5rem;
  margin: 0 -1rem 0.85rem;
  padding: 0 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.category-scroller button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.48rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--card);
  font-size: 0.78rem;
  font-weight: 700;
}

.category-scroller button.is-active {
  border-color: var(--copper);
  color: #fff;
  background: var(--copper);
}

.menu-list {
  display: grid;
  gap: 0.7rem;
}

.menu-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  min-height: 7.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.menu-card-main {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  align-items: stretch;
  gap: 0.75rem;
  min-width: 0;
  min-height: 7.5rem;
  padding: 0;
  border: 0;
  text-align: left;
  background: transparent;
}

.menu-item-art,
.shop-art,
.modal-product-art {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 7.5rem;
  color: var(--copper-strong);
  background:
    radial-gradient(circle at 32% 25%, rgba(255,255,255,0.85), transparent 22%),
    linear-gradient(145deg, #f3d8c6, #dfa16f);
  font-size: 2.3rem;
}

.menu-card:nth-child(3n + 2) .menu-item-art {
  background: linear-gradient(145deg, #e7efe7, #b9d1bd);
}

.menu-card:nth-child(3n) .menu-item-art {
  background: linear-gradient(145deg, #f4e7c8, #e6bf70);
}

.menu-item-copy {
  min-width: 0;
  padding: 0.6rem 0;
}

.menu-item-copy strong,
.menu-item-copy small,
.menu-item-copy b {
  display: block;
}

.menu-item-copy strong {
  font-size: 0.9rem;
}

.menu-item-copy small {
  display: -webkit-box;
  margin-top: 0.22rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.menu-item-copy b {
  margin-top: 0.45rem;
  color: var(--copper-strong);
  font-size: 0.88rem;
}

.menu-tags {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.28rem;
}

.menu-tags em {
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-soft);
  font-size: 0.57rem;
  font-style: normal;
  font-weight: 800;
}

.menu-card .allergen-note {
  display: inline-flex;
  align-items: center;
  max-width: 13rem;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.menu-card .allergen-note .icon {
  width: 0.8rem;
  height: 0.8rem;
}

.menu-card > .add-button,
.menu-card > .quantity-stepper {
  margin-right: 0.65rem;
}

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

.quantity-stepper button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--copper-strong);
  background: var(--copper-soft);
}

.quantity-stepper b {
  min-width: 1rem;
  text-align: center;
  font-size: 0.8rem;
}

.sold-out-label {
  margin-right: 0.6rem;
  color: var(--danger);
  font-size: 0.67rem;
  font-weight: 800;
}

.menu-card.is-sold-out {
  opacity: 0.62;
}

.qr-card .qr-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
}

.qr-brand .brand-glyph {
  width: 31px;
  height: 41px;
}

.qr-brand strong,
.qr-brand small {
  display: block;
}

.qr-brand small {
  color: var(--muted);
  font-size: 0.68rem;
}

.qr-code i.is-on {
  border-radius: 1px;
  background: var(--ink);
}

.qr-card.is-expired .qr-code {
  filter: blur(6px);
  opacity: 0.45;
}

.qr-timer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
}

.qr-timer span,
.qr-timer small {
  display: block;
}

.qr-timer > div > span {
  font-size: 1rem;
}

.qr-timer small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
}

.timer-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-deep);
}

.timer-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--copper);
  transition: width 1s linear;
}

.qr-card > .secondary-button {
  width: 100%;
  margin-top: 0.85rem;
}

.wide-button {
  width: 100%;
  margin-top: 0.75rem;
}

.primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.secure-note strong,
.secure-note small {
  display: block;
}

.secure-note strong {
  color: var(--ink);
  font-size: 0.76rem;
}

.secure-note small {
  margin-top: 0.12rem;
  font-size: 0.68rem;
}

.balance-peek {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 52px;
  margin-top: 0.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.balance-peek span { flex: 1; color: var(--muted); text-align: left; font-size: 0.78rem; }
.balance-peek strong { font-size: 0.92rem; }

.wallet-hero h1 {
  margin-top: 0.2rem;
  font-size: 2.35rem;
  letter-spacing: -0.055em;
}

.wallet-hero > div {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.wallet-hero > div button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,0.12);
  font-size: 0.73rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.wallet-hero > small {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
}

.loyalty-summary {
  margin-top: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.loyalty-summary .stamp-row .stamp {
  border-color: #ddcec1;
  color: var(--muted);
}

.loyalty-summary .stamp-row .stamp.is-filled {
  border-color: var(--copper);
  color: #fff;
  background: var(--copper);
}

.loyalty-summary .stamp-row .stamp-reward.is-ready {
  color: #fff;
  background: var(--success);
}

.loyalty-summary > p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.transaction-list {
  display: grid;
  gap: 0.45rem;
}

.transaction-row {
  border-radius: 17px;
  box-shadow: none;
}

.transaction-row > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.transaction-row > span:nth-child(2) strong,
.transaction-row > span:nth-child(2) small {
  display: block;
}

.transaction-row > span:nth-child(2) strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transaction-row > span:nth-child(2) small {
  margin-top: 0.13rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.transaction-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  border-radius: 13px;
  color: var(--copper-strong);
  background: var(--copper-soft);
}

.transaction-row > b {
  margin-left: auto;
  color: var(--danger);
  font-size: 0.8rem;
  white-space: nowrap;
}

.transaction-row > b.is-positive {
  color: var(--success);
}

.wallet-feature-grid,
.profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.wallet-feature-grid button,
.profile-shortcuts button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 7.2rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 19px;
  text-align: left;
  background: var(--card);
}

.wallet-feature-grid button > span,
.profile-shortcuts button > .icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  margin-bottom: auto;
  border-radius: 12px;
  color: var(--copper-strong);
  background: var(--copper-soft);
}

.wallet-feature-grid strong,
.wallet-feature-grid small,
.profile-shortcuts strong,
.profile-shortcuts small {
  display: block;
}

.wallet-feature-grid strong,
.profile-shortcuts strong { margin-top: 0.55rem; font-size: 0.78rem; }
.wallet-feature-grid small,
.profile-shortcuts small { margin-top: 0.16rem; color: var(--muted); font-size: 0.65rem; }

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 19px;
  color: var(--copper-strong);
  background: var(--copper-soft);
  font-size: 1rem;
  font-weight: 900;
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 24px;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  color: #8a641e;
  background: #f6e8bd;
  font-size: 0.62rem;
  font-weight: 850;
}

.tier-pill .icon {
  width: 0.78rem;
  height: 0.78rem;
}

.profile-card h1 {
  margin-top: 0.3rem;
  font-size: 1.05rem;
}

.profile-card p {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.profile-card > .text-button {
  min-height: 40px;
  font-size: 0.72rem;
}

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

.profile-group {
  margin-top: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.profile-group > h2 {
  margin: 0.2rem 0.35rem 0.55rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-row {
  padding: 0.55rem;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}

.profile-row + .profile-row {
  margin-top: 0.18rem;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.profile-row > span:first-child {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--copper-strong);
  background: #f5ece4;
}

.profile-row > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.profile-row > span:nth-child(2) strong,
.profile-row > span:nth-child(2) small {
  display: block;
}

.profile-row > span:nth-child(2) strong { font-size: 0.78rem; }
.profile-row > span:nth-child(2) small { margin-top: 0.12rem; color: var(--muted); font-size: 0.66rem; }
.profile-row > .icon { color: var(--muted-2); }

.branch-map {
  margin-bottom: 1rem;
}

.branch-map .map-road {
  position: absolute;
  width: 140%;
  height: 7px;
  left: -20%;
  border: 2px solid rgba(210,202,189,0.8);
  background: #fff;
}

.branch-map .road-one { top: 42%; transform: rotate(14deg); }
.branch-map .road-two { top: 63%; transform: rotate(-29deg); }

.branch-map .map-pin {
  left: var(--x);
  top: var(--y);
  width: 38px;
  height: 38px;
  padding: 0;
  border: 3px solid #fff;
}

.branch-map .map-pin.is-active {
  color: var(--ink);
  background: #f3c185;
  transform: rotate(-45deg) scale(1.12);
}

.locate-button {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
}

.branch-list {
  display: grid;
  gap: 0.6rem;
}

.branch-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  padding: 0.65rem;
}

.branch-card.is-selected {
  border-color: var(--copper);
  box-shadow: 0 0 0 2px var(--copper-soft);
}

.branch-art {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--copper-strong);
  background: var(--copper-soft);
}

.branch-card strong,
.branch-card small,
.branch-card em {
  display: block;
}

.branch-card strong { font-size: 0.78rem; }
.branch-card small { margin-top: 0.12rem; color: var(--muted); font-size: 0.64rem; }
.branch-card em { margin-top: 0.12rem; color: var(--success); font-size: 0.62rem; font-style: normal; }
.branch-card > button:not(.icon-button) { min-height: 38px; padding: 0.35rem 0.55rem; border: 0; border-radius: 12px; color: var(--copper-strong); background: var(--copper-soft); font-size: 0.67rem; font-weight: 800; }

.order-status-hero,
.tier-hero,
.referral-hero,
.suspended-hero,
.shop-hero {
  padding: 1.15rem;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0, rgba(213,116,57,0.5), transparent 42%),
    linear-gradient(145deg, #191310, #483024);
  box-shadow: var(--shadow-md);
}

.order-status-hero {
  text-align: center;
}

.order-status-hero .order-pulse {
  margin: 0 auto 0.85rem;
}

.order-pulse.large {
  width: 62px;
  height: 62px;
}

.order-status-hero .eyebrow,
.tier-hero .eyebrow,
.referral-hero .eyebrow,
.suspended-hero .eyebrow,
.shop-hero .eyebrow {
  color: #f0ad7d;
}

.order-status-hero h1,
.tier-hero h1,
.referral-hero h1,
.suspended-hero h1,
.shop-hero h1 {
  margin-top: 0.3rem;
  font-size: 1.7rem;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.order-status-hero p,
.tier-hero p,
.referral-hero p,
.suspended-hero p,
.shop-hero p {
  margin-top: 0.4rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.76rem;
}

.order-timeline {
  display: grid;
  gap: 0;
  margin: 1rem 0;
  padding: 0.5rem 0.75rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--card);
}

.order-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  min-height: 4.1rem;
  align-items: center;
}

.order-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: calc(50% + 16px);
  bottom: calc(-50% + 16px);
  width: 2px;
  background: var(--line);
}

.order-timeline li.is-complete:not(:last-child)::after {
  background: var(--success);
}

.order-timeline li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--card);
  font-size: 0.72rem;
  font-weight: 850;
}

.order-timeline li.is-complete > span {
  border-color: var(--success);
  color: #fff;
  background: var(--success);
}

.order-timeline strong,
.order-timeline small {
  display: block;
}

.order-timeline strong { font-size: 0.8rem; }
.order-timeline small { margin-top: 0.12rem; color: var(--muted); font-size: 0.66rem; }

.order-receipt {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--card);
}

.order-receipt > div:not(.section-heading),
.price-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.order-receipt b,
.price-breakdown b {
  color: var(--ink);
  white-space: nowrap;
}

.shop-hero {
  min-height: 11rem;
  margin-bottom: 0.85rem;
  background:
    linear-gradient(90deg, rgba(20,13,9,0.86), rgba(20,13,9,0.25)),
    url("./assets/cochem-cafe-hero.png") 72% center / cover;
}

.shop-grid {
  gap: 0.65rem;
}

.shop-card {
  padding-bottom: 0.75rem;
}

.shop-art {
  position: relative;
  width: 100%;
  min-height: 7.5rem;
  border: 0;
}

.shop-art em {
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  color: #fff;
  background: var(--copper);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
}

.shop-card > div:not(.quantity-stepper) {
  padding: 0.7rem 0.7rem 0;
}

.shop-card small,
.shop-card strong,
.shop-card p,
.shop-card b {
  display: block;
}

.shop-card small { color: var(--copper-strong); font-size: 0.58rem; font-weight: 850; }
.shop-card strong { min-height: auto; margin-top: 0.2rem; font-size: 0.82rem; }
.shop-card p { display: -webkit-box; margin-top: 0.25rem; overflow: hidden; color: var(--muted); font-size: 0.66rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.shop-card b { margin-top: 0.55rem; color: var(--copper-strong); font-size: 0.86rem; }
.shop-card > .add-button,
.shop-card > .quantity-stepper { margin: 0.55rem 0.7rem 0 auto; }

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  margin-bottom: 0.8rem;
  padding: 0.28rem;
  border-radius: 16px;
  background: #e9e0d6;
}

.segmented-control button {
  min-height: 40px;
  border: 0;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 750;
}

.segmented-control button.is-active {
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 4px 12px rgba(48,30,20,0.08);
}

.orders-list,
.campaign-list,
.coupon-list,
.notification-list {
  display: grid;
  gap: 0.65rem;
}

.past-order-card,
.campaign-card,
.coupon-ticket,
.notification-row {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--card);
}

.past-order-card > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
}

.order-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: var(--copper-strong);
  background: var(--copper-soft);
}

.past-order-card strong,
.past-order-card small { display: block; }
.past-order-card strong { font-size: 0.8rem; }
.past-order-card small { color: var(--muted); font-size: 0.64rem; }
.past-order-card > p { margin: 0.7rem 0; color: var(--muted); font-size: 0.72rem; }
.past-order-card > button { min-height: 38px; margin-right: 0.35rem; padding: 0.35rem 0.65rem; border: 1px solid var(--line); border-radius: 11px; color: var(--copper-strong); background: var(--card); font-size: 0.68rem; font-weight: 750; }

.summary-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.2rem 1rem;
  margin-bottom: 0.85rem;
  padding: 1rem;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #1a1411, #4a3022);
}

.summary-banner span { font-size: 0.72rem; opacity: 0.7; }
.summary-banner strong { grid-row: 2; font-size: 1.45rem; }
.summary-banner button { grid-column: 2; grid-row: 1 / span 2; min-height: 42px; padding: 0.45rem 0.65rem; border: 1px solid rgba(255,255,255,0.25); border-radius: 13px; color: #fff; background: rgba(255,255,255,0.1); font-size: 0.68rem; font-weight: 800; }

.tier-hero > span:first-child {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.7rem;
  border-radius: 16px;
  color: #24180e;
  background: #e9b867;
}

.progress-bar {
  display: block;
  height: 6px;
  margin-top: 0.85rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}

.progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #e9b867;
}

.loyalty-card.expanded {
  margin-top: 0.85rem;
}

.loyalty-card.expanded > p {
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.75rem;
}

.benefit-list {
  margin-top: 1rem;
}

.benefit-list > h2 {
  margin-bottom: 0.65rem;
  font-size: 1rem;
}

.benefit-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 4.4rem;
  padding: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.benefit-list article > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--copper-strong);
  background: var(--copper-soft);
}

.benefit-list strong,
.benefit-list small { display: block; }
.benefit-list strong { font-size: 0.78rem; }
.benefit-list small { margin-top: 0.15rem; color: var(--muted); font-size: 0.66rem; }
.benefit-list button { min-height: 38px; padding: 0.35rem 0.55rem; border: 0; border-radius: 11px; color: var(--copper-strong); background: var(--copper-soft); font-size: 0.66rem; font-weight: 800; }

.campaign-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
}

.campaign-card-art {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--campaign-color, var(--copper-soft));
  font-size: 1.45rem;
}

.campaign-card strong,
.campaign-card small,
.campaign-card p { display: block; }
.campaign-card strong { font-size: 0.82rem; }
.campaign-card small { color: var(--copper-strong); font-size: 0.59rem; font-weight: 850; }
.campaign-card p { margin-top: 0.25rem; color: var(--muted); font-size: 0.68rem; }
.campaign-card button { align-self: center; min-height: 40px; padding: 0.4rem 0.55rem; border: 0; border-radius: 12px; color: var(--copper-strong); background: var(--copper-soft); font-size: 0.66rem; font-weight: 800; }
.campaign-card.is-muted { opacity: 0.62; }

.coupon-ticket {
  position: relative;
  overflow: hidden;
}

.coupon-ticket::before,
.coupon-ticket::after {
  content: "";
  position: absolute;
  top: 45%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
}

.coupon-ticket::before { left: -11px; }
.coupon-ticket::after { right: -11px; }
.coupon-ticket strong,
.coupon-ticket small,
.coupon-ticket p { display: block; }
.coupon-ticket strong { font-size: 0.9rem; }
.coupon-ticket small { color: var(--copper-strong); font-size: 0.62rem; font-weight: 850; }
.coupon-ticket p { margin: 0.35rem 0; color: var(--muted); font-size: 0.7rem; }
.coupon-ticket button { min-height: 40px; padding: 0.4rem 0.7rem; border: 0; border-radius: 12px; color: #fff; background: var(--copper); font-size: 0.69rem; font-weight: 800; }

.notification-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
}

.notification-row.is-unread {
  border-color: #dfb99e;
  background: #fff8f3;
}

.notification-row > span:first-child {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--copper-strong);
  background: var(--copper-soft);
}

.notification-row strong,
.notification-row small,
.notification-row p { display: block; }
.notification-row strong { font-size: 0.78rem; }
.notification-row small { margin-top: 0.12rem; color: var(--muted); font-size: 0.62rem; }
.notification-row p { margin-top: 0.25rem; color: var(--muted); font-size: 0.7rem; }

.referral-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 0.9rem 0;
  padding: 0.75rem;
  border: 1px dashed #d8b18f;
  border-radius: 16px;
  background: #fff8f2;
}

.referral-code strong {
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.referral-code button { min-height: 40px; padding: 0.4rem 0.65rem; border: 0; border-radius: 12px; color: #fff; background: var(--copper); font-size: 0.7rem; font-weight: 800; }

.referral-stats,
.impact-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.referral-stats > div,
.impact-numbers > div {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  text-align: center;
}

.referral-stats strong,
.referral-stats small,
.impact-numbers strong,
.impact-numbers small { display: block; }
.referral-stats strong,
.impact-numbers strong { font-size: 1.25rem; }
.referral-stats small,
.impact-numbers small { margin-top: 0.15rem; color: var(--muted); font-size: 0.65rem; }

.suspended-hero > span:first-child {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 2.4rem;
}

.legal-content > section:first-child {
  padding: 1rem;
  border-radius: 21px;
  background: var(--card);
}

.legal-content > section:first-child h1 {
  margin-top: 0.25rem;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.legal-content > section:first-child p,
.danger-zone p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.legal-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.legal-list button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 4.6rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 17px;
  text-align: left;
  background: var(--card);
}

.legal-list button > span:first-child {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--copper-strong);
  background: var(--copper-soft);
}

.legal-list strong,
.legal-list small { display: block; }
.legal-list strong { font-size: 0.78rem; }
.legal-list small { margin-top: 0.15rem; color: var(--muted); font-size: 0.66rem; }

.danger-zone {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid #ebcbc8;
  border-radius: 18px;
}

.danger-zone h2 { font-size: 0.92rem; }
.danger-zone button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  margin-top: 0.7rem;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--danger);
  font-weight: 800;
}

.cart-dock {
  position: fixed;
  z-index: 24;
  left: 50%;
  bottom: calc(5.35rem + var(--safe-bottom));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  width: min(calc(100% - 1.5rem), 446px);
  min-height: 58px;
  padding: 0.6rem 0.75rem;
  transform: translateX(-50%);
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 15px 32px rgba(29,18,12,0.28);
  text-align: left;
}

.cart-dock.inline-dock {
  position: sticky;
  left: auto;
  bottom: calc(5.7rem + var(--safe-bottom));
  width: 100%;
  margin-top: 0.9rem;
  transform: none;
}

.cart-count {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--ink);
  background: #efb184;
  font-size: 0.78rem;
  font-weight: 900;
}

.cart-dock b,
.cart-dock small {
  display: block;
}

.cart-dock b { font-size: 0.8rem; }
.cart-dock small { color: rgba(255,255,255,0.65); font-size: 0.65rem; }
.cart-dock > strong { display: flex; align-items: center; gap: 0.25rem; font-size: 0.84rem; }

.bottom-nav button.is-active {
  color: var(--copper-strong);
}

.bottom-nav button:nth-child(3) {
  transform: translateY(-0.72rem);
}

.bottom-nav button:nth-child(3) > .icon {
  width: 50px;
  height: 50px;
  padding: 13px;
  border: 5px solid var(--card);
  border-radius: 50%;
  color: #fff;
  background: var(--copper);
  box-shadow: 0 9px 20px rgba(171,77,35,0.28);
}

.auth-screen {
  display: grid;
  grid-template-rows: minmax(15rem, 43dvh) auto;
  min-height: 100dvh;
  padding: 0;
  color: inherit;
  background: var(--paper);
}

.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 17rem;
  padding: calc(1.2rem + var(--safe-top)) 1.1rem 1.5rem;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(18,12,9,0.12), rgba(18,12,9,0.8)),
    url("./assets/cochem-cafe-hero.png") 67% center / cover;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.11em;
}

.auth-brand .brand-glyph {
  border-color: #fff;
}

.auth-brand .brand-glyph::before,
.auth-brand .brand-glyph::after {
  border-color: #fff;
}

.auth-brand .brand-glyph::after {
  box-shadow: 0 -14px 0 -1px #fff, 0 14px 0 -1px #fff;
}

.auth-copy {
  max-width: 19rem;
}

.auth-copy .eyebrow {
  color: #f1b78c;
}

.auth-copy h1 {
  margin-top: 0.4rem;
  font-size: 2.25rem;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.auth-copy p {
  margin-top: 0.6rem;
  color: rgba(255,255,255,0.76);
  font-size: 0.86rem;
}

.auth-panel {
  position: relative;
  z-index: 2;
  margin-top: -1.4rem;
  padding: 1.15rem 1rem calc(1.2rem + var(--safe-bottom));
  border-radius: 27px 27px 0 0;
  background: var(--paper);
}

.auth-form h2 {
  margin-top: 0.2rem;
  font-size: 1.4rem;
  letter-spacing: -0.035em;
}

.auth-form > p {
  margin: 0.35rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.auth-form > label,
.modal-form > label:not(.check-row):not(.radio-card) {
  display: block;
  margin: 0.65rem 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 800;
}

.auth-form > input,
.modal-form > input,
.modal-form > select,
.modal-form > textarea,
.money-input {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d8cdc1;
  border-radius: 15px;
  outline: 0;
  color: var(--ink);
  background: #fff;
}

.auth-form > .primary-button {
  margin-top: 0.85rem;
}

.auth-divider {
  position: relative;
  margin: 0.8rem 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.68rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--line);
}

.auth-divider span {
  position: relative;
  padding: 0 0.5rem;
  background: var(--paper);
}

.auth-legal {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.66rem;
  text-align: center;
}

.auth-legal button,
.back-link {
  min-height: 38px;
  padding: 0;
  border: 0;
  color: var(--copper-strong);
  background: transparent;
  font-size: inherit;
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.modal-backdrop {
  padding-top: max(2.3rem, var(--safe-top));
}

.customer-modal {
  position: relative;
  width: min(100%, 470px);
  max-height: 91dvh;
  overflow: auto;
  padding: 1.1rem 1rem calc(1rem + var(--safe-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  box-shadow: 0 -24px 60px rgba(27,17,12,0.3);
  animation: sheet-up 220ms cubic-bezier(.22,.82,.36,1);
}

.customer-modal::before {
  content: "";
  display: block;
  width: 42px;
  height: 5px;
  margin: -0.4rem auto 0.9rem;
  border-radius: 999px;
  background: #cfc3b7;
}

.modal-close {
  position: absolute;
  right: 0.9rem;
  top: 0.8rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e9e0d7;
}

.customer-modal > .eyebrow {
  padding-right: 3rem;
}

.customer-modal > h2 {
  max-width: 19rem;
  margin-top: 0.25rem;
  padding-right: 2.5rem;
  font-size: 1.42rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.customer-modal > p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.modal-product-art {
  min-height: 10rem;
  margin: -1.1rem -1rem 1rem;
  border-radius: 28px 28px 20px 20px;
  font-size: 4rem;
}

.modal-emoji,
.modal-danger-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 0.7rem;
  border-radius: 19px;
  background: var(--copper-soft);
  font-size: 1.8rem;
}

.modal-danger-icon {
  color: var(--danger);
  background: #f8dfdc;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin: 0.9rem 0;
}

.product-facts > div {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.product-facts dt {
  color: var(--muted);
  font-size: 0.6rem;
}

.product-facts dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
  font-size: 0.67rem;
  font-weight: 750;
}

.modal-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.8rem;
  border-radius: 15px;
  background: #ece4db;
}

.modal-total span { color: var(--muted); font-size: 0.74rem; }
.modal-total strong { font-size: 1rem; }

.modal-cart-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.modal-cart-list > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
}

.cart-thumb {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: var(--copper-soft);
  font-size: 1.35rem;
}

.modal-cart-list strong,
.modal-cart-list small { display: block; }
.modal-cart-list strong { font-size: 0.76rem; }
.modal-cart-list small { color: var(--muted); font-size: 0.65rem; }

.modal-form {
  margin-top: 0.85rem;
}

.modal-form select,
.modal-form textarea {
  appearance: none;
}

.modal-form fieldset {
  margin: 0.85rem 0 0;
  padding: 0;
  border: 0;
}

.modal-form legend {
  margin-bottom: 0.4rem;
  font-size: 0.74rem;
  font-weight: 800;
}

.radio-card {
  display: flex;
  align-items: center;
  min-height: 54px;
  gap: 0.55rem;
  margin-top: 0.4rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
}

.radio-card input {
  accent-color: var(--copper);
}

.radio-card > span {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 0.45rem;
  width: 100%;
}

.radio-card > span .icon { grid-row: 1 / span 2; }
.radio-card strong,
.radio-card small { display: block; }
.radio-card strong { font-size: 0.76rem; }
.radio-card small { color: var(--muted); font-size: 0.65rem; }

.check-row {
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
}

.check-row > span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.45rem;
}

.check-row > span .icon { grid-row: 1 / span 2; }
.check-row strong,
.check-row small { display: block; }
.check-row strong { font-size: 0.74rem; }
.check-row small { color: var(--muted); font-size: 0.64rem; }

.coupon-picker,
.applied-coupon {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 50px;
  margin-top: 0.65rem;
  padding: 0.65rem;
  border: 1px dashed #d9b494;
  border-radius: 15px;
  color: var(--copper-strong);
  background: #fff8f2;
  font-size: 0.72rem;
  font-weight: 800;
}

.coupon-picker .icon:last-child,
.applied-coupon button { margin-left: auto; }
.applied-coupon span { flex: 1; }
.applied-coupon strong,
.applied-coupon small { display: block; }
.applied-coupon small { color: var(--muted); font-size: 0.62rem; }
.applied-coupon button { border: 0; color: var(--danger); background: transparent; font-size: 0.65rem; font-weight: 800; }

.price-breakdown {
  margin-top: 0.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: 15px;
  background: #ece4db;
}

.price-breakdown > div:last-child {
  margin-top: 0.25rem;
  padding-top: 0.55rem;
  border-top: 1px solid #d8cdc1;
  color: var(--ink);
  font-size: 0.86rem;
}

.price-breakdown .discount {
  color: var(--success);
}

.money-input {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-block: 0;
}

.money-input span {
  color: var(--muted);
  font-weight: 850;
}

.money-input input {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
}

.topup-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.topup-options button {
  min-height: 4.5rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  background: var(--card);
}

.topup-options strong,
.topup-options small { display: block; }
.topup-options strong { font-size: 0.9rem; }
.topup-options small { margin-top: 0.2rem; color: var(--success); font-size: 0.66rem; font-weight: 750; }

.modal-info-box {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
  padding: 0.7rem;
  border-radius: 15px;
  color: var(--muted);
  background: #ece4db;
}

.modal-info-box strong,
.modal-info-box small { display: block; }
.modal-info-box strong { color: var(--ink); font-size: 0.74rem; }
.modal-info-box small { margin-top: 0.15rem; font-size: 0.65rem; }

.legal-modal-copy {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.customer-toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: calc(6.1rem + var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: min(calc(100% - 2rem), 438px);
  min-height: 52px;
  padding: 0.75rem 0.85rem;
  transform: translateX(-50%);
  border-radius: 16px;
  color: #fff;
  background: rgba(23,19,17,0.97);
  box-shadow: 0 14px 30px rgba(27,18,13,0.25);
  font-size: 0.75rem;
  font-weight: 700;
  animation: toast-in 200ms ease-out;
}

.customer-toast.is-error {
  background: var(--danger);
}

@keyframes status-pulse {
  70%, 100% { transform: scale(1.14); opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes sheet-up {
  from { transform: translateY(24px); opacity: 0; }
}

@keyframes toast-in {
  from { transform: translateY(10px) scale(0.98); opacity: 0; }
}

@media (min-width: 700px) {
  .site-frame {
    padding-block: 1.25rem;
  }

  .mobile-app {
    min-height: calc(100dvh - 2.5rem);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 34px;
  }

  .bottom-nav,
  .app-nav,
  .tab-bar {
    bottom: 1.25rem;
    border: 1px solid rgba(221,210,198,0.9);
    border-radius: 0 0 34px 34px;
  }
}

@media (max-width: 370px) {
  .screen,
  .app-screen,
  .mobile-screen {
    padding-inline: 0.75rem;
  }

  .category-row,
  .chip-row,
  .filter-row {
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
  }

  .product-grid,
  .shop-grid {
    gap: 0.55rem;
  }

  .product-card .product-thumb,
  .shop-card .product-thumb {
    height: 7rem;
  }

  .quick-action,
  .home-action {
    min-height: 7.6rem;
    padding: 0.85rem;
  }
}

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