/* Pokkee customer web app: mirrors the phone app's look. */

body.capp {
  --lime: #b8e86a;
  --lime-soft: #eaf7d4;
  --lime-mid: #9fd44a;
  --lime-dark: #7fb82e;
  --lime-deep: #5f9620;
  --charcoal: #172018;
  --card: #f0f1f0;
  --ivory: #fefff9;
  --forest: #5a6358;
  --text2: #6b6b6b;
  --text3: #b0b0b0;
  --nav: #9a9a9a;
  --red: #ff3b5c;
  --pill: #f2f2f2;
  --hair: #17201814;
  --rail: 256px;
  background: var(--ivory);
  line-height: 1.4;
  overscroll-behavior-y: none;
}
:where(.capp) button { font: inherit; color: inherit; }
:where(.capp) a { color: inherit; text-decoration: none; }
:where(.capp) :is(h1, h2, h3) { margin: 0; letter-spacing: -.02em; }
:where(.capp) p { margin: 0; }

/* Shell */
.c-screen { min-height: 100vh; min-height: 100dvh; }
.c-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: calc(8px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom));
}
.c-app.pushed .c-inner { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.c-app.pushed.has-bar .c-inner { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.c-app.pushed .c-tabbar { display: none; }

.c-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  height: calc(70px + env(safe-area-inset-bottom));
  padding: 0 8px env(safe-area-inset-bottom);
  background: #fefff9f2;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--hair);
}
.c-tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--nav);
  -webkit-tap-highlight-color: transparent;
}
.c-tabbar a.on { color: var(--lime-dark); font-weight: 700; }
.c-tabbar img { width: 22px; height: 22px; display: block; }

.c-rail { display: none; }

@media (min-width: 960px) {
  .c-tabbar { display: none !important; }
  .c-rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: var(--rail);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 16px;
    border-right: 1px solid var(--hair);
    background: var(--ivory);
    overflow-y: auto;
  }
  .c-screen { margin-left: var(--rail); }
  .c-inner, .c-app.pushed .c-inner { max-width: 720px; padding: 28px 32px 64px; }
  .c-app.pushed.has-bar .c-inner { padding-bottom: 140px; }
  .c-home-head .c-icon-btn.menu { visibility: hidden; }
  .c-home-head .c-logo { visibility: hidden; }
}
.c-rail-logo { padding: 4px 12px 18px; }
.c-rail-logo img { width: 120px; height: auto; display: block; }
.c-rail-nav, .c-rail-more { display: flex; flex-direction: column; gap: 2px; }
.c-rail-more { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); }
.c-rail-nav a, .c-rail-more a, .c-rail-more button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--forest);
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.c-rail-nav a:hover, .c-rail-more a:hover, .c-rail-more button:hover { background: var(--card); }
.c-rail-nav a.on, .c-rail-more a.on { background: var(--lime-soft); color: var(--charcoal); font-weight: 700; }
.c-rail-nav img, .c-rail-more img { width: 22px; height: 22px; }
.c-rail-more .dot { margin-left: auto; }
.c-rail-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  height: 52px;
  border: 0;
  border-radius: 18px;
  background: var(--charcoal);
  color: #fff !important;
  font-weight: 700;
  cursor: pointer;
}
.c-rail-qr img { width: 22px; height: 22px; }
.c-rail-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--card); cursor: pointer; }
.c-rail-user b { display: block; font-size: 14px; }
.c-rail-user span { font-size: 12px; color: var(--text2); }

/* Headers */
.c-home-head, .c-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
  margin: 0 -16px 8px;
  padding: env(safe-area-inset-top) 16px 0;
  box-sizing: content-box;
  background: #fefff9f2;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
@media (min-width: 960px) {
  .c-home-head, .c-topbar { margin: -28px -32px 12px; padding: 12px 32px 0; }
}
.c-logo { height: 26px; width: auto; display: block; }
.c-icon-btn {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  cursor: pointer;
}
.c-icon-btn img { width: 22px; height: 22px; }
.c-icon-btn svg { width: 22px; height: 22px; }
.c-icon-btn.clear { background: none; }
.c-icon-btn .dot { position: absolute; top: 9px; right: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid var(--ivory); box-sizing: content-box; }
.c-topbar h1 { flex: 1; text-align: center; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-topbar .end { min-width: 44px; display: flex; justify-content: flex-end; }
.c-text-btn { border: 0; background: none; color: var(--lime-deep); font-weight: 700; font-size: 14px; cursor: pointer; padding: 8px 0; }

.c-title { font-size: 28px; font-weight: 800; margin: 18px 0 14px !important; }
.c-sub { color: var(--text2); font-size: 14px; }

/* Home */
.c-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 20px;
  border-radius: 28px;
  background: var(--lime-soft);
}
.c-hero { padding: 16px; margin-top: 4px; }
.c-hero .img { position: absolute; top: 16px; right: 16px; width: 150px; height: 150px; object-fit: contain; pointer-events: none; }
.c-hero .title { position: relative; font-size: 24px; font-weight: 700; line-height: 1.2; padding-right: 120px; }
.c-hero .sub { position: relative; font-size: 13px; color: var(--forest); margin-top: 6px; padding-right: 120px; }
.c-hero .stats { position: relative; display: flex; gap: 8px; margin-top: 14px; padding-right: 100px; }
.c-stat { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 10px 8px; border: 0; border-radius: 18px; background: #fff; text-align: left; cursor: pointer; }
.c-stat img { width: 20px; height: 20px; flex: none; }
.c-stat .v { flex: 1; min-width: 0; line-height: 1.15; }
.c-stat b { display: block; font-size: 16px; }
.c-stat small { font-size: 11px; color: var(--forest); }
.c-stat .chev { width: 12px; height: 12px; color: var(--text3); flex: none; }
@media (min-width: 600px) {
  .c-hero { padding: 24px; }
  .c-hero .img { width: 190px; height: 190px; top: 10px; right: 24px; }
  .c-hero .title { font-size: 30px; padding-right: 220px; }
  .c-hero .sub { font-size: 15px; padding-right: 220px; }
  .c-hero .stats { padding-right: 220px; max-width: 520px; }
}
.c-scan-btn { margin-top: 14px; justify-content: flex-start; padding: 0 18px; }
.c-btn .grow, .c-weekrow .grow { flex: 1; text-align: left; }
.c-btn .chev { width: 18px; height: 18px; }
.c-weekrow { display: flex; align-items: center; gap: 12px; width: 100%; height: 56px; margin-top: 18px; padding: 0 14px; border: 0; border-radius: 20px; background: var(--lime-soft); font-size: 14px; font-weight: 700; cursor: pointer; }
.c-weekrow img { width: 20px; height: 20px; }
.c-weekrow .chev, .c-row > .chev { width: 18px; height: 18px; color: var(--text3); flex: none; }
.c-ico20 { width: 20px; height: 20px; }
svg.chev { width: 16px; height: 16px; flex: none; }

.c-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 22px;
  background: var(--charcoal);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.c-btn img { width: 22px; height: 22px; }
.c-btn.full { width: 100%; }
.c-btn.lime { background: var(--lime); color: var(--charcoal) !important; }
.c-btn.green { background: var(--lime-dark); }
.c-btn.soft { background: var(--card); color: var(--charcoal) !important; }
.c-btn.small { height: 40px; padding: 0 16px; border-radius: 14px; font-size: 14px; }
.c-btn.danger { background: var(--red); }
.c-btn:disabled { opacity: .5; cursor: default; }
.c-btn:active { transform: scale(.98); }
.c-gap { height: 14px; }

.c-sec { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.c-sec h2 { font-size: 19px; font-weight: 800; }
.c-sec a, .c-sec button { border: 0; background: none; color: var(--lime-deep); font-weight: 700; font-size: 14px; cursor: pointer; }

.c-card { background: var(--card); border-radius: 22px; }
.c-list { display: flex; flex-direction: column; gap: 10px; }

.c-almost { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; text-align: left; cursor: pointer; }
.c-almost .body { flex: 1; min-width: 0; }
.c-almost .t { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-almost .s { font-size: 13px; color: var(--text2); margin-top: 2px; }
.c-almost .left { font-size: 12px; font-weight: 700; color: var(--lime-deep); margin-top: 8px; }

.c-progress { height: 6px; border-radius: 99px; background: #17201814; overflow: hidden; margin-top: 8px; }
.c-progress i { display: block; height: 100%; border-radius: 99px; background: var(--lime-dark); }

.c-strip { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.c-strip::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .c-strip { margin: 0; padding: 0 0 6px; scroll-padding-inline: 0; } }
.c-tile { flex: none; width: 168px; scroll-snap-align: start; border: 0; padding: 0; text-align: left; cursor: pointer; overflow: hidden; }
.c-tile .img { height: 112px; border-radius: 22px 22px 0 0; }
.c-tile .in { padding: 10px 12px 12px; }
.c-tile .t { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-tile .s { font-size: 12px; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-tile { padding: 10px; border-radius: 20px; }
.c-tile .img { border-radius: 14px; }
.c-tile .in { padding: 10px 2px 2px; }
.c-tile .hint { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--lime-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Images */
.c-img { background: var(--card) center / cover no-repeat; flex: none; }
.c-thumb { width: 64px; height: 64px; border-radius: 18px; }
.c-thumb.sm { width: 52px; height: 52px; border-radius: 16px; }
.c-avatar { flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--lime) center / cover no-repeat; font-weight: 800; color: var(--charcoal); }

/* Shops */
.c-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  background: var(--pill);
  color: var(--text2);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.c-search svg { width: 20px; height: 20px; flex: none; }
.c-search input { flex: 1; border: 0; background: none; padding: 0; height: 100%; font-size: 16px; outline: none; color: var(--charcoal); }
.c-search input:focus { outline: none; }

.c-chips { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px; padding: 0 16px; scrollbar-width: none; }
.c-chips::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .c-chips { margin: 14px 0; padding: 0; } }
.c-chip {
  flex: none;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  color: var(--forest);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.c-chip.on { background: var(--charcoal); color: #fff; }
.c-chip small { opacity: .7; margin-left: 4px; }

.c-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 22px;
  background: var(--card);
  text-align: left;
  cursor: pointer;
}
.c-row .body { flex: 1; min-width: 0; }
.c-row .t { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-row .s { font-size: 13px; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-row .end { flex: none; text-align: right; }
.c-row .pts { font-weight: 800; font-size: 17px; }
.c-row .pts small { display: block; font-size: 11px; font-weight: 600; color: var(--text2); }
.c-row .heart { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.c-row .s.hint { color: var(--lime-deep); font-weight: 700; margin-top: 4px; }
.c-row .togo { line-height: 1.1; }
.c-row .togo b { display: block; font-size: 22px; font-weight: 700; }
.c-row .togo span { font-size: 12px; font-weight: 700; }
.c-row.plain { cursor: default; }
.c-row.undone { opacity: .55; }

.c-meta { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; font-size: 14px; color: var(--text2); }
.c-meta button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--charcoal); font-weight: 700; cursor: pointer; padding: 6px 0; }
.c-meta img { width: 16px; height: 16px; }

.c-banner { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 14px; border-radius: 22px; background: var(--lime-soft); }
.c-banner img { width: 32px; height: 32px; }
.c-banner .body { flex: 1; font-size: 14px; }
.c-banner b { display: block; font-size: 15px; }
.c-banner .x { border: 0; background: none; font-size: 20px; color: var(--forest); cursor: pointer; padding: 4px 6px; }

.c-empty { text-align: center; padding: 40px 20px; color: var(--text2); }
.c-empty img { width: 120px; height: auto; margin-bottom: 10px; }
.c-empty h3 { color: var(--charcoal); font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.c-empty .c-btn { margin: 18px auto 0; display: inline-flex; }

/* Rewards */
.c-ready { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 22px; background: var(--lime); margin-bottom: 14px; }
.c-ready b { display: block; font-size: 17px; font-weight: 800; }
.c-ready span { font-size: 13px; color: var(--forest); }
.c-ready img { width: 40px; height: 40px; }
.c-reward { align-items: flex-start; }
.c-reward .badge { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--lime); }
.c-reward .badge.wait { background: #ffffffb3; color: var(--forest); }
.c-info { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: #f0f0f0; font-size: 13px; color: var(--text2); }
.c-info img { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* Profile */
.c-profile { display: flex; align-items: center; gap: 14px; padding: 18px; }
.c-profile .body { flex: 1; min-width: 0; }
.c-profile b { display: block; font-size: 20px; font-weight: 800; }
.c-profile span { color: var(--text2); font-size: 14px; }
.c-counts { display: flex; gap: 10px; margin-top: 10px; }
.c-counts > button { flex: 1; padding: 14px; border: 0; border-radius: 22px; background: var(--lime-soft); text-align: left; cursor: pointer; }
.c-counts b { display: block; font-size: 22px; font-weight: 800; }
.c-counts span { font-size: 13px; color: var(--forest); }
.c-menu { margin-top: 16px; padding: 6px; }
.c-menu > a, .c-menu > button, .c-menu > label {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 8px 12px;
  margin: 0;
  border: 0;
  border-radius: 16px;
  background: none;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.c-menu > a:hover, .c-menu > button:hover { background: #17201808; }
.c-menu img { width: 24px; height: 24px; flex: none; }
.c-menu .grow { flex: 1; }
.c-menu .grow small { display: block; font-weight: 400; font-size: 13px; color: var(--text2); }
.c-menu .chev { width: 18px; height: 18px; color: var(--text3); flex: none; }
.c-menu .red { color: var(--red); }
.c-menu hr { border: 0; border-top: 1px solid var(--hair); margin: 2px 12px; }
.c-menu .val { color: var(--text2); font-weight: 500; font-size: 14px; }

.c-toggle { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 50px !important; height: 30px; margin: 0; padding: 0; border: 0 !important; border-radius: 99px; background: #d6d8d4; cursor: pointer; transition: background .2s; }
.c-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px #0003; transition: transform .2s; }
.c-toggle:checked { background: var(--lime-dark); }
.c-toggle:checked::after { transform: translateX(20px); }
.c-toggle:focus { outline: none; }
.c-toggle:focus-visible { outline: 2px solid var(--charcoal); }

/* Shop detail */
.c-shop-hero { height: 210px; border-radius: 28px; margin-bottom: 16px; }
.c-shop-name { font-size: 26px; font-weight: 800; }
.c-shop-cat { color: var(--text2); font-size: 15px; margin-top: 2px; }
.c-facts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 14px 16px; }
.c-facts div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.c-facts img { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.c-facts .bonus { font-weight: 700; color: var(--lime-deep); }
.c-actions { display: flex; gap: 10px; margin-top: 12px; }
.c-actions > a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 16px; background: var(--card); font-weight: 700; font-size: 14px; }
.c-actions img { width: 20px; height: 20px; }
.c-desc { margin-top: 14px; font-size: 15px; color: var(--forest); line-height: 1.5; }
.c-rtile { flex: none; width: 200px; padding: 0; border: 0; text-align: left; cursor: pointer; overflow: hidden; scroll-snap-align: start; }
.c-rtile .img { height: 110px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: var(--lime-deep); background-color: var(--lime-soft); }
.c-rtile .in { padding: 10px 12px 14px; }
.c-rtile .t { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-rtile .s { font-size: 13px; color: var(--text2); margin-top: 2px; }
.c-rtile .badge { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--lime); }
.c-rtile .badge.wait { background: #fff; color: var(--forest); }

.c-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fefff9f2;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--hair);
}
.c-bar-in { display: flex; align-items: center; gap: 12px; max-width: 600px; margin: 0 auto; padding: 10px 10px 10px 18px; border-radius: 22px; background: var(--lime-soft); }
.c-bar-in .body { flex: 1; }
.c-bar-in span { font-size: 12px; color: var(--forest); font-weight: 600; }
.c-bar-in b { display: block; font-size: 22px; font-weight: 800; }
@media (min-width: 960px) { .c-bar { left: var(--rail); } .c-bar-in { max-width: 656px; } }

/* Scan */
.c-seg { display: flex; padding: 4px; border-radius: 18px; background: var(--card); margin: 4px 0 16px; }
.c-seg button { flex: 1; height: 44px; border: 0; border-radius: 14px; background: none; font-weight: 700; color: var(--forest); cursor: pointer; }
.c-seg button.on { background: #fff; color: var(--charcoal); box-shadow: 0 2px 8px #1720181a; }
.c-scan-hint { text-align: center; color: var(--text2); font-size: 15px; margin-bottom: 16px; }
.c-qr {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 1;
  margin: 22px auto 0;
  padding: 18px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 40px #1720181f;
}
.c-qr .box { width: 100%; height: 100%; display: grid; place-items: center; }
.c-qr .box svg { width: 100%; height: 100%; display: block; }
.c-qr .box.dim { opacity: .2; }
.c-qr .corner { position: absolute; width: 34px; height: 34px; border: 4px solid var(--lime-dark); }
.c-qr .tl { top: -6px; left: -6px; border-right: 0; border-bottom: 0; border-radius: 16px 0 0 0; }
.c-qr .tr { top: -6px; right: -6px; border-left: 0; border-bottom: 0; border-radius: 0 16px 0 0; }
.c-qr .bl { bottom: -6px; left: -6px; border-right: 0; border-top: 0; border-radius: 0 0 0 16px; }
.c-qr .br { bottom: -6px; right: -6px; border-left: 0; border-top: 0; border-radius: 0 0 16px 0; }
.c-qr .sweep { position: absolute; left: 18px; right: 18px; height: 3px; top: 18px; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--lime-mid), transparent); animation: c-sweep 2.4s ease-in-out infinite; }
@keyframes c-sweep { 0%, 100% { top: 18px; } 50% { top: calc(100% - 21px); } }
@media (prefers-reduced-motion: reduce) { .c-qr .sweep { animation: none; display: none; } }
.c-qr-status { text-align: center; font-size: 14px; color: var(--text2); margin-top: 24px; min-height: 20px; font-variant-numeric: tabular-nums; }
.c-qr-status.error { color: var(--red); }
.c-who { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 18px; }
.c-who b { display: block; font-size: 15px; }
.c-who span { font-size: 13px; color: var(--text2); }
.c-redeem-card { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 16px; border-radius: 22px; background: var(--lime-soft); }
.c-redeem-card b { display: block; }
.c-redeem-card span { display: block; font-size: 13px; color: var(--forest); }
.c-redeem-card .fine { margin-top: 2px; font-weight: 700; color: #8a5a00; }

.c-success {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--charcoal);
  color: #fff;
  text-align: center;
  animation: c-fade .25s ease-out;
}
@keyframes c-fade { from { opacity: 0; } to { opacity: 1; } }
.c-success-inner { width: 100%; max-width: 380px; }
.c-success-badge { width: 180px; height: 180px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: #b8e86a26; animation: c-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.c-success-badge span { width: 110px; height: 110px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--charcoal); }
.c-success-badge svg { width: 52px; height: 52px; }
@keyframes c-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.c-success h2 { font-size: 48px; font-weight: 800; color: var(--lime); margin-top: 8px; }
.c-success p { font-size: 16px; color: #ffffffcc; margin: 6px 0 22px; }
.c-success-balance { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 20px; background: #ffffff14; margin-bottom: 22px; font-size: 14px; color: #ffffffb3; }
.c-success-balance b { font-size: 20px; color: #fff; }
.c-link-light { margin-top: 12px; border: 0; background: none; color: #ffffffcc !important; font-weight: 700; cursor: pointer; padding: 10px; }

/* Drawer */
.c-drawer { position: fixed; inset: 0; z-index: 80; }
.c-drawer-scrim { position: absolute; inset: 0; background: #17201880; animation: c-fade .2s; }
.c-drawer-panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(320px, 86vw);
  display: flex;
  flex-direction: column;
  padding: calc(24px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
  background: var(--charcoal);
  color: #fff;
  overflow-y: auto;
  animation: c-slide .25s ease-out;
}
@keyframes c-slide { from { transform: translateX(-100%); } to { transform: none; } }
.c-drawer-panel .hi { display: flex; align-items: center; gap: 12px; }
.c-drawer-panel .hi b { display: block; font-size: 19px; font-weight: 800; }
.c-drawer-panel .hi span { font-size: 13px; color: #ffffffa6; }
.c-drawer-panel .pts { margin: 20px 0; padding: 16px; border-radius: 20px; background: var(--lime); color: var(--charcoal); }
.c-drawer-panel .pts b { display: block; font-size: 30px; font-weight: 800; }
.c-drawer-panel .pts span { font-size: 13px; font-weight: 600; }
.c-drawer-panel nav { display: flex; flex-direction: column; gap: 2px; }
.c-drawer-panel nav button, .c-drawer-panel nav a { display: flex; align-items: center; gap: 14px; padding: 14px 10px; border: 0; border-radius: 14px; background: none; color: #fff !important; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.c-drawer-panel nav button:hover, .c-drawer-panel nav a:hover { background: #ffffff10; }
.c-drawer-panel nav img { width: 24px; height: 24px; filter: invert(1) brightness(2); }
.c-drawer-panel .foot { margin-top: auto; padding-top: 20px; font-size: 13px; color: #ffffff80; border: 0; background: none; text-align: left; cursor: pointer; }

/* Notifications & history */
.c-note { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 14px; border: 0; border-radius: 22px; background: var(--card); text-align: left; cursor: pointer; }
.c-note.unread { background: var(--lime-soft); }
.c-note .ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.c-note .ico img { width: 24px; height: 24px; }
.c-note .body { flex: 1; min-width: 0; }
.c-note .t { font-weight: 700; font-size: 15px; }
.c-note .s { font-size: 14px; color: var(--forest); margin-top: 2px; }
.c-note .w { font-size: 12px; color: var(--text2); margin-top: 6px; }
.c-note .dot { flex: none; margin-top: 6px; border-color: transparent; }

.c-sum { display: flex; gap: 10px; margin-bottom: 18px; }
.c-sum > div { flex: 1; padding: 16px; border-radius: 22px; background: var(--lime-soft); }
.c-sum > div.dark { background: var(--charcoal); color: #fff; }
.c-sum b { display: block; font-size: 24px; font-weight: 800; }
.c-sum span { font-size: 13px; opacity: .75; }
.c-day { font-size: 13px; font-weight: 700; color: var(--text2); margin: 18px 4px 8px; text-transform: uppercase; letter-spacing: .04em; }
.c-txn-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.c-txn-ico img { width: 22px; height: 22px; }
.plus { color: var(--lime-deep); }
.minus { color: var(--red); }

/* Forms */
.c-form label { margin: 18px 0 6px; font-size: 13px; color: var(--forest); }
.c-form input { border-radius: 16px; border-color: transparent; background: var(--card); padding: 15px 16px; }
.c-form input:disabled { color: var(--text2); }
.c-avatar-pick { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0 6px; }
.c-avatar-pick button { border: 0; background: none; color: var(--lime-deep); font-weight: 700; cursor: pointer; }

/* Help & About */
.c-help-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c-help-tiles a { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 22px; background: var(--lime-soft); font-weight: 700; }
.c-help-tiles a span { font-size: 13px; font-weight: 500; color: var(--forest); }
.c-help-tiles a.dark { background: var(--charcoal); color: #fff; }
.c-help-tiles a.dark span { color: #ffffffb3; }
.c-faq { padding: 4px 16px; }
.c-faq details { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.c-faq details:last-child { border-bottom: 0; }
.c-faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--lime-deep); }
.c-faq details[open] summary::after { content: "\2212"; }
.c-faq p { margin-top: 8px; font-size: 14px; color: var(--forest); line-height: 1.5; }
.c-about { text-align: center; padding: 20px 0 8px; }
.c-about img { width: 150px; height: auto; }
.c-about p { color: var(--forest); margin: 14px auto 0; max-width: 420px; line-height: 1.5; }

/* Sheets (location, city, reward) */
.capp .sheet { background: var(--ivory); }
.c-sheet-art { display: block; width: 120px; height: auto; margin: 0 auto 10px; }
.c-sheet-center { text-align: center; }
.c-sheet-center h2 { margin: 0 0 6px !important; }
.c-sheet-center p { color: var(--text2); margin-bottom: 18px; }
.c-city { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--hair); background: none; font-weight: 600; font-size: 16px; text-align: left; cursor: pointer; }
.c-city.on { color: var(--lime-deep); }
.c-terms { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: #fff4d6; font-size: 14px; text-align: left; }
.c-terms b { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #8a5a00; }
.c-reward-sheet .img { height: 170px; border-radius: 22px; margin: 4px 0 16px; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: var(--lime-deep); background-color: var(--lime-soft); }

.c-skel { border-radius: 22px; background: linear-gradient(90deg, #e4e8de 0%, #eef1ea 50%, #e4e8de 100%); background-size: 200% 100%; animation: c-shimmer 1.2s linear infinite; }
@keyframes c-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.boot-fail { position: fixed; inset: 0; display: grid; place-content: center; gap: 16px; padding: 24px; text-align: center; background: var(--ivory); color: var(--charcoal); font-weight: 600; }
.boot-fail[hidden], #app:not([hidden]) ~ .boot-fail { display: none; }
.boot-fail button { justify-self: center; padding: 14px 28px; border: 0; border-radius: 999px; background: var(--charcoal); color: #fff; font: inherit; cursor: pointer; }
