
:root {
  --hc-red: #b51f2e;
  --hc-red-dark: #8f1522;
  --hc-cream: #f7f0e7;
  --hc-paper: #fffaf4;
  --hc-ink: #211a18;
  --hc-muted: #796f69;
  --hc-line: rgba(53, 35, 30, .10);
  --hc-shadow: 0 20px 55px rgba(75, 30, 30, .13);
  --hc-radius: 24px;
  --hc-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { background: var(--hc-cream); }
body.holycup-app-body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 100% 0%, rgba(181,31,46,.08), transparent 34%),
    var(--hc-cream);
  color: var(--hc-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
body.admin-bar .hc-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .hc-header { top: 46px; } }

.hc-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--hc-red);
  color: #fff8ef;
  transition: opacity .5s ease, visibility .5s ease;
}
.hc-splash.is-hidden { opacity: 0; visibility: hidden; }
.hc-splash-mark {
  width: 104px;
  height: 104px;
  border: 2px solid rgba(255,255,255,.78);
  border-radius: 34px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  margin-bottom: 32px;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.08);
}
.hc-splash-cup {
  transform: rotate(-45deg);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -3px;
}
.hc-splash-title { font-family: Georgia, serif; font-size: 30px; letter-spacing: 4px; }
.hc-splash-subtitle { margin-top: 12px; opacity: .72; font-size: 13px; letter-spacing: .3px; }

.hc-app {
  min-height: 100dvh;
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: calc(92px + var(--hc-safe-bottom));
  position: relative;
}
.hc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 78px;
  padding: 14px 18px 10px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  background: rgba(247,240,231,.90);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(60,43,37,.05);
}
.hc-icon-button {
  border: 0;
  background: rgba(255,255,255,.72);
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(80,40,30,.07);
  color: var(--hc-ink);
  cursor: pointer;
}
.hc-avatar, .hc-profile-avatar {
  display: grid;
  place-items: center;
  color: white;
  background: var(--hc-red);
  font-weight: 800;
}
.hc-avatar { width: 31px; height: 31px; border-radius: 11px; }
.hc-notification-button { font-size: 25px; position: relative; transform: rotate(45deg); }
.hc-notification-button i {
  position: absolute; right: 8px; top: 8px; width: 8px; height: 8px;
  background: var(--hc-red); border: 2px solid white; border-radius: 99px;
}
.hc-branch-button {
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0 22px 0 2px;
  position: relative;
  cursor: pointer;
}
.hc-branch-caption { display: block; font-size: 10px; color: var(--hc-muted); text-transform: uppercase; letter-spacing: 1.3px; margin-bottom: 3px; }
.hc-branch-button strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.hc-chevron { position: absolute; right: 2px; top: 11px; font-size: 18px; }

.hc-main { padding: 8px 18px 26px; }
.hc-view { display: none; animation: hcFade .25s ease; }
.hc-view.is-active { display: block; }
@keyframes hcFade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.hc-greeting { padding: 16px 2px 18px; }
.hc-greeting p { margin: 0 0 7px; color: var(--hc-muted); font-size: 14px; }
.hc-greeting h1, .hc-page-title h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 8vw, 39px);
  line-height: 1.05;
  letter-spacing: -.8px;
  margin: 0;
}
.hc-eyebrow { color: var(--hc-red); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }

.hc-loyalty-card {
  color: #fff9f1;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 5%, rgba(255,255,255,.17), transparent 30%),
    linear-gradient(140deg, var(--hc-red), var(--hc-red-dark));
  box-shadow: 0 22px 55px rgba(148,23,36,.25);
}
.hc-loyalty-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.hc-loyalty-card .hc-eyebrow { color: rgba(255,255,255,.68); }
.hc-loyalty-card h2 { margin: 5px 0 3px; font-size: 25px; }
.hc-loyalty-card p { margin: 0; font-size: 13px; opacity: .75; }
.hc-mini-logo {
  width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.55);
  display: grid; place-items: center; border-radius: 17px;
  font-family: Georgia, serif; font-weight: 800;
}
.hc-progress-track { height: 7px; background: rgba(255,255,255,.18); border-radius: 99px; overflow: hidden; margin: 23px 0 9px; }
.hc-progress-track span { display: block; height: 100%; border-radius: inherit; background: #fff8ec; }
.hc-loyalty-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.hc-loyalty-bottom button, .hc-section-head button {
  border: 0; background: transparent; color: inherit; font-weight: 800; padding: 5px; cursor: pointer;
}

.hc-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 15px 0 28px; }
.hc-quick-card {
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.64);
  border-radius: 22px;
  text-align: left;
  padding: 16px;
  color: var(--hc-ink);
  box-shadow: 0 10px 32px rgba(68,42,33,.06);
  cursor: pointer;
}
.hc-quick-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--hc-red); background: rgba(181,31,46,.09); border-radius: 14px; font-size: 20px; margin-bottom: 13px; }
.hc-quick-card strong, .hc-quick-card small { display: block; }
.hc-quick-card strong { font-size: 14px; }
.hc-quick-card small { color: var(--hc-muted); font-size: 11px; margin-top: 4px; }

.hc-section { margin: 28px 0; }
.hc-section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.hc-section-head h2, .hc-subheading { font-family: Georgia, serif; margin: 4px 0 0; font-size: 24px; }
.hc-section-head button { color: var(--hc-red); font-size: 12px; }

.hc-campaign-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 82%); overflow-x: auto; gap: 12px; padding: 0 1px 8px; scrollbar-width: none; }
.hc-campaign-scroll::-webkit-scrollbar { display: none; }
.hc-campaign { min-height: 168px; border-radius: 26px; padding: 21px; box-shadow: 0 14px 34px rgba(76,41,35,.09); overflow: hidden; position: relative; }
.hc-campaign::after { content: "HC"; position: absolute; right: -14px; bottom: -26px; font-family: Georgia, serif; font-size: 105px; font-weight: 900; opacity: .08; }
.hc-campaign span { font-size: 9px; letter-spacing: 1.5px; font-weight: 900; }
.hc-campaign h3 { font-family: Georgia, serif; font-size: 24px; line-height: 1.05; margin: 14px 0 9px; }
.hc-campaign p { margin: 0; font-size: 12px; opacity: .74; }
.hc-campaign-red { background: var(--hc-red); color: white; }
.hc-campaign-cream { background: #e9dac9; color: #4d302b; }

.hc-product-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(158px, 45%);
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.hc-product-row::-webkit-scrollbar { display: none; }
.hc-product-card {
  border: 0;
  background: rgba(255,255,255,.68);
  border-radius: 22px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  color: var(--hc-ink);
  box-shadow: 0 10px 26px rgba(68,42,33,.07);
  cursor: pointer;
}
.hc-product-card-image {
  aspect-ratio: 1 / 1.02;
  background: #eadfd2;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hc-product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.hc-product-fallback { font-family: Georgia, serif; font-size: 36px; color: rgba(181,31,46,.55); }
.hc-product-card-body { padding: 13px 14px 15px; }
.hc-product-card-body strong { display: block; font-size: 13px; line-height: 1.25; }
.hc-product-card-body span { display: block; margin-top: 7px; color: var(--hc-red); font-size: 12px; font-weight: 800; }
.hc-loading-card { height: 220px; border-radius: 22px; background: linear-gradient(90deg, rgba(255,255,255,.48), rgba(255,255,255,.88), rgba(255,255,255,.48)); background-size: 200% 100%; animation: hcShimmer 1.4s infinite; }
@keyframes hcShimmer { to { background-position: -200% 0; } }

.hc-page-title { padding: 17px 2px 20px; }
.hc-page-title p { color: var(--hc-muted); font-size: 13px; line-height: 1.5; }
.hc-centered-title { text-align: center; padding-top: 30px; }

.hc-search {
  height: 52px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 18px;
  padding: 0 16px;
  box-shadow: 0 8px 25px rgba(68,42,33,.05);
}
.hc-search span { font-size: 24px; color: var(--hc-muted); }
.hc-search input { border: 0; outline: 0; background: transparent; width: 100%; color: var(--hc-ink); font-size: 14px; }
.hc-category-chips { display: flex; overflow-x: auto; gap: 8px; padding: 16px 0 12px; scrollbar-width: none; }
.hc-category-chips::-webkit-scrollbar { display: none; }
.hc-category-chips button {
  flex: 0 0 auto;
  border: 1px solid var(--hc-line);
  background: rgba(255,255,255,.54);
  color: var(--hc-muted);
  padding: 10px 15px;
  border-radius: 99px;
  font-size: 12px;
  cursor: pointer;
}
.hc-category-chips button.is-active { background: var(--hc-red); border-color: var(--hc-red); color: white; }
.hc-menu-section { margin: 18px 0 30px; }
.hc-menu-section h2 { font-family: Georgia, serif; font-size: 23px; margin: 0 0 12px 2px; }
.hc-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.hc-menu-loading { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 10px; }
.hc-menu-loading div { height: 225px; border-radius: 22px; background: rgba(255,255,255,.6); }
.hc-empty {
  text-align: center; padding: 55px 22px; color: var(--hc-muted);
  background: rgba(255,255,255,.55); border-radius: 24px; margin-top: 12px;
}
.hc-empty strong { display: block; color: var(--hc-ink); margin-bottom: 6px; }

.hc-qr-card {
  max-width: 390px;
  margin: 4px auto 20px;
  padding: 21px;
  background: white;
  border-radius: 30px;
  box-shadow: var(--hc-shadow);
}
.hc-qr-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--hc-line); }
.hc-mini-logo-red { color: white; background: var(--hc-red); border: 0; flex: 0 0 auto; }
.hc-qr-top strong, .hc-qr-top span { display: block; }
.hc-qr-top span { color: var(--hc-muted); font-size: 11px; margin-top: 3px; }
.hc-demo-qr { width: min(72vw, 260px); aspect-ratio: 1; margin: 25px auto 14px; display: grid; grid-template-columns: repeat(21, 1fr); background: white; padding: 8px; border: 1px solid var(--hc-line); }
.hc-demo-qr i { background: transparent; }
.hc-demo-qr i.on { background: #171313; }
.hc-qr-code { text-align: center; letter-spacing: 2px; font-size: 11px; font-weight: 900; }
.hc-qr-note { font-size: 10px; line-height: 1.45; color: var(--hc-muted); text-align: center; margin-top: 15px; background: var(--hc-cream); padding: 12px; border-radius: 14px; }
.hc-primary-button {
  width: min(390px, 100%); margin: 0 auto; display: block;
  border: 0; background: var(--hc-red); color: white;
  min-height: 54px; border-radius: 18px; font-weight: 800; cursor: pointer;
}

.hc-reward-summary {
  background: var(--hc-red); color: white; border-radius: 26px; padding: 20px;
  display: grid; grid-template-columns: 78px 1fr; gap: 16px; align-items: center;
  box-shadow: 0 17px 40px rgba(150,25,40,.2);
}
.hc-reward-circle { width: 78px; height: 78px; border: 6px solid rgba(255,255,255,.22); border-top-color: white; border-radius: 50%; display: grid; place-content: center; text-align: center; }
.hc-reward-circle strong { font-size: 25px; line-height: 1; }
.hc-reward-circle span { font-size: 10px; opacity: .7; }
.hc-reward-summary h2 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 21px; }
.hc-reward-summary p { margin: 0; font-size: 12px; opacity: .74; line-height: 1.5; }
.hc-subheading { margin: 28px 2px 13px; }
.hc-reward-list { display: grid; gap: 10px; }
.hc-reward-list article {
  display: grid; grid-template-columns: 45px 1fr auto; gap: 12px; align-items: center;
  background: rgba(255,255,255,.7); border-radius: 21px; padding: 15px;
}
.hc-reward-icon { width: 45px; height: 45px; display: grid; place-items: center; background: rgba(181,31,46,.09); border-radius: 15px; }
.hc-reward-list strong { font-size: 13px; }
.hc-reward-list p { margin: 4px 0 0; font-size: 10px; color: var(--hc-muted); }
.hc-reward-list .hc-progress-track { margin: 8px 0 0; height: 4px; background: rgba(181,31,46,.12); }
.hc-reward-list .hc-progress-track span { background: var(--hc-red); }
.hc-reward-list b { color: var(--hc-red); font-size: 11px; }

.hc-profile-hero { text-align: center; padding: 27px 0 24px; }
.hc-profile-avatar { width: 78px; height: 78px; border-radius: 28px; margin: 0 auto 13px; font-size: 27px; box-shadow: 0 14px 34px rgba(151,24,38,.2); }
.hc-profile-hero h1 { font-family: Georgia, serif; margin: 0; font-size: 29px; }
.hc-profile-hero p { color: var(--hc-muted); margin: 6px 0 0; font-size: 12px; }
.hc-settings-card { background: rgba(255,255,255,.72); border-radius: 24px; overflow: hidden; }
.hc-settings-card button {
  width: 100%; min-height: 58px; border: 0; border-bottom: 1px solid var(--hc-line); background: transparent; padding: 0 17px;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.hc-settings-card button:last-child { border-bottom: 0; }
.hc-settings-card span { color: var(--hc-muted); font-size: 12px; }
.hc-settings-card strong { font-size: 12px; }
.hc-prototype-notice { margin-top: 16px; border: 1px dashed rgba(181,31,46,.25); border-radius: 20px; padding: 16px; color: var(--hc-muted); }
.hc-prototype-notice strong { color: var(--hc-red); font-size: 12px; }
.hc-prototype-notice p { font-size: 11px; line-height: 1.5; margin: 5px 0 0; }

.hc-bottom-nav {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 10px 9px calc(9px + var(--hc-safe-bottom));
  background: rgba(255,250,244,.94);
  border-top: 1px solid rgba(63,42,34,.08);
  backdrop-filter: blur(20px);
  box-shadow: 0 -12px 38px rgba(72,41,32,.09);
}
.hc-bottom-nav button {
  border: 0; background: transparent; color: #938781; min-height: 54px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 21px; cursor: pointer; position: relative;
}
.hc-bottom-nav small { font-size: 9px; font-weight: 700; }
.hc-bottom-nav button.is-active { color: var(--hc-red); }
.hc-bottom-nav .hc-nav-qr span {
  width: 49px; height: 49px; border-radius: 17px; color: white; background: var(--hc-red);
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(181,31,46,.28); margin-top: -27px;
}
.hc-bottom-nav .hc-nav-qr small { margin-top: -2px; }

.hc-sheet { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.hc-sheet.is-open { visibility: visible; pointer-events: auto; }
.hc-sheet-backdrop { position: absolute; inset: 0; border: 0; background: rgba(35,22,19,.45); opacity: 0; transition: opacity .25s; }
.hc-sheet.is-open .hc-sheet-backdrop { opacity: 1; }
.hc-sheet-panel {
  position: absolute; left: 50%; bottom: 0; width: min(680px,100%); max-height: 88dvh;
  transform: translate(-50%, 105%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  background: var(--hc-paper); border-radius: 30px 30px 0 0; padding: 10px 18px calc(22px + var(--hc-safe-bottom)); overflow-y: auto;
}
.hc-sheet.is-open .hc-sheet-panel { transform: translate(-50%, 0); }
.hc-sheet-handle { width: 44px; height: 5px; border-radius: 99px; background: #d7cec8; margin: 0 auto 18px; }
.hc-sheet-head { display: flex; justify-content: space-between; align-items: center; }
.hc-sheet-head h2 { font-family: Georgia, serif; margin: 4px 0 0; font-size: 27px; }
.hc-sheet-head button, .hc-product-close {
  width: 38px; height: 38px; border: 0; border-radius: 14px; background: var(--hc-cream); font-size: 24px; cursor: pointer;
}
.hc-branch-list { display: grid; gap: 9px; margin-top: 18px; }
.hc-branch-item {
  border: 1px solid var(--hc-line); border-radius: 18px; background: white; padding: 15px;
  display: grid; grid-template-columns: 1fr auto; gap: 10px; text-align: left; color: var(--hc-ink); cursor: pointer;
}
.hc-branch-item strong, .hc-branch-item span { display: block; }
.hc-branch-item span { font-size: 10px; color: var(--hc-muted); margin-top: 4px; }
.hc-branch-item i { width: 22px; height: 22px; border: 2px solid #d8cfca; border-radius: 50%; align-self: center; }
.hc-branch-item.is-selected i { border: 6px solid var(--hc-red); }
.hc-sheet-loading { color: var(--hc-muted); padding: 20px 0; }

.hc-product-sheet .hc-sheet-panel { padding-left: 0; padding-right: 0; }
.hc-product-close { position: absolute; z-index: 2; top: 20px; right: 18px; background: rgba(255,255,255,.88); }
.hc-detail-image { aspect-ratio: 1.4 / 1; background: #eadfd2; overflow: hidden; margin-top: -33px; }
.hc-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.hc-detail-content { padding: 21px 19px 5px; }
.hc-detail-content h2 { font-family: Georgia, serif; font-size: 30px; margin: 0 0 9px; }
.hc-detail-content > p { color: var(--hc-muted); font-size: 12px; line-height: 1.6; }
.hc-size-label { display: block; margin: 22px 0 10px; font-size: 11px; font-weight: 900; letter-spacing: 1px; }
.hc-size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hc-size-grid button { border: 1px solid var(--hc-line); border-radius: 15px; background: white; padding: 12px 7px; cursor: pointer; }
.hc-size-grid button.is-active { border-color: var(--hc-red); background: rgba(181,31,46,.06); color: var(--hc-red); }
.hc-size-grid strong, .hc-size-grid small { display: block; }
.hc-size-grid small { font-size: 9px; margin-top: 4px; }
.hc-detail-action { margin-top: 18px; width: 100%; border: 0; border-radius: 18px; background: var(--hc-red); color: white; min-height: 55px; font-weight: 800; cursor: pointer; }

.hc-toast {
  position: fixed; z-index: 150; left: 50%; bottom: calc(102px + var(--hc-safe-bottom)); transform: translate(-50%, 25px);
  width: min(360px, calc(100% - 36px)); color: white; background: #2c2421; border-radius: 16px; padding: 13px 15px;
  font-size: 12px; text-align: center; opacity: 0; visibility: hidden; transition: .25s;
}
.hc-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%,0); }

@media (min-width: 681px) {
  body.holycup-app-body { padding: 20px 0; }
  .hc-app { min-height: calc(100dvh - 40px); background: rgba(247,240,231,.86); border-radius: 34px; overflow: hidden; box-shadow: 0 30px 90px rgba(73,39,31,.16); }
  .hc-bottom-nav { bottom: 20px; border-radius: 0 0 34px 34px; }
  .hc-header { border-radius: 34px 34px 0 0; }
}
