/* Bump It local rebuild — slice 1 styles. Dark theme, phone-first. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #0b0d0f;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* App background pictures (2026-11-18): a cast picture fixed behind
   everything; the content scrolls over it, the picture never moves.
   Faded over the near-black base inside the app; stronger on the
   sign-in screen (body.auth-shown), which carries little text.
   Panels keep their own solid backgrounds, so text stays readable. */
#appBg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1;
  transform: translateZ(0);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0.19; pointer-events: none;
}
body.auth-shown #appBg { opacity: 0.55; }
.app { max-width: 520px; margin: 0 auto; padding: 16px 16px 180px; }
.topbar { display: flex; align-items: center; gap: 12px; }
.gear-btn {
  margin-left: auto; background: #242b31; border: none; color: #fff;
  font-size: 22px; line-height: 1; width: 44px; height: 44px; border-radius: 12px;
  cursor: pointer; flex: 0 0 auto;
}
.settings-back {
  background: none; border: none; color: #2ee6a8; font-size: 15px;
  font-weight: 700; cursor: pointer; padding: 0; margin: 0 0 4px;
}
.logo {
  font-weight: 900; letter-spacing: 0.08em; font-size: 28px;
  background: #f5f0e1; color: #111; padding: 6px 14px; border-radius: 10px;
}
.beta {
  background: #ff5a4f; color: #111; font-weight: 800; font-size: 12px;
  letter-spacing: 0.12em; padding: 5px 10px; border-radius: 999px;
}
.tagline { color: #2ee6a8; letter-spacing: 0.18em; font-size: 12px; font-weight: 700; margin: 14px 0 4px; }
.slice-note { color: #9aa3ab; font-size: 13px; margin: 0 0 18px; }
.screen-title { font-size: 26px; margin: 8px 0 14px; }

/* ---------- Live header block (My Card) ---------- */
.hero-heading { font-size: 40px; font-weight: 900; line-height: 1.08; letter-spacing: -0.01em; margin: 20px 0 12px; }
.hero-subtext { color: #c8cfd5; font-size: 17px; line-height: 1.5; margin: 0 0 22px; }
.sample-card-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  border-top: 1px solid #2a3138; border-bottom: 1px solid #2a3138;
  padding: 14px 0; margin: 0 0 44px; font-size: 14px;
}
.sample-card-label { color: #ff5a4f; font-weight: 700; flex: 0 0 auto; }
.sample-card-note { color: #9aa3ab; text-align: right; }
.section-title { font-size: 18px; margin: 22px 0 10px; }
.section-note { font-size: 12px; color: #9aa3ab; font-weight: 400; margin-left: 6px; }
.hint { color: #9aa3ab; font-size: 13px; margin: 8px 0 0; }

/* ---------- Card preview ---------- */
.card-preview {
  border-radius: 20px; padding: 22px 20px; min-height: 210px;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45); overflow: hidden; position: relative;
}
.card-photo {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: #ff5a4f; color: #111; font-weight: 900; font-size: 30px;
  display: flex; align-items: center; justify-content: center; margin-bottom: auto;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-name { font-size: 30px; font-weight: 900; line-height: 1.1; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.card-field { font-size: 14px; opacity: 0.95; text-shadow: 0 1px 6px rgba(0,0,0,0.6); margin-top: 3px; }
.receiver-back { border-top: 1px solid rgba(127,127,127,0.45); margin-top: 10px; padding-top: 8px; }
.receiver-back .back-title { font-size: 13px; opacity: 0.8; }
.card-field span { opacity: 0.75; }
/* Card text color toggle: black text for light backgrounds. The photo
   placeholder keeps its own style; only name + field text flip (plus the
   bump timestamp, which is card text too). The Bump-back tag pill is untouched. */
.text-black .card-name, .text-black .card-field { color: #111; text-shadow: 0 1px 6px rgba(255,255,255,0.5); }
.text-black .bump-when { color: #333; text-shadow: 0 1px 6px rgba(255,255,255,0.5); }
/* Design quote (2026-10-31): a saying that belongs to the artwork, set in
   serif italic above the name. Part of the design, not card info. */
.card-quote {
  font-family: Georgia, 'Times New Roman', serif; font-style: italic;
  font-size: 17px; line-height: 1.3; text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  margin-bottom: 6px;
}
.text-black .card-quote { color: #111; text-shadow: 0 1px 6px rgba(255,255,255,0.5); }
/* Minimize / background view (2026-10-31): the eye button rides the card
   corner; the .card-min class hides photo, fields, and bump-back block,
   leaving the name (and any design quote) on the full background. The
   button itself stays visible so the view is always reversible. */
.card-min-btn {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px;
  border-radius: 50%; border: none; background: rgba(0,0,0,0.35); color: #fff;
  font-size: 17px; line-height: 1; cursor: pointer; z-index: 2;
}
.card-min-btn:hover { background: rgba(0,0,0,0.55); }
.card-preview.card-min .card-field, .card-preview.card-min .card-photo,
.card-preview.card-min .receiver-back { display: none; }

/* ---------- Design picker ---------- */
.design-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; }
.design-tile {
  flex: 0 0 104px; height: 78px; border-radius: 14px; border: 2px solid transparent;
  color: #fff; font-weight: 700; font-size: 13px; cursor: pointer;
  display: flex; align-items: flex-end; padding: 8px; text-align: left;
  text-shadow: 0 1px 5px rgba(0,0,0,0.7);
}
.design-tile.selected { border-color: #2ee6a8; outline: 2px solid #2ee6a8; outline-offset: 1px; }
/* Text color toggle: segmented White | Black, next to the design picker */
.text-toggle-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.text-toggle-label { font-size: 13px; color: #9aa3ab; }
.seg-toggle { display: flex; border: 1px solid #242b31; border-radius: 999px; overflow: hidden; }
.seg-btn { background: #171c20; color: #d3dade; border: none; padding: 7px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.seg-btn.selected { background: #2ee6a8; color: #111; }

/* Card info layer (2026-11-24): the name, photo, fields and meta
 * sit ABOVE the Bumpy sticker (z-index 1) and below the fx
 * canvases (z-index 3) \u2014 Bumpy peeks from behind the info,
 * never over it. */
.card-photo, .card-name, .card-field, .card-quote,
.flip-toprow, .bump-card-top, .flip-fields, .flip-meta { position: relative; z-index: 2; }

/* My designs (slice 6): saved upload tiles with a remove button, plus Upload tile */
.my-tile-wrap { position: relative; flex: 0 0 104px; }
.my-tile-wrap .design-tile { width: 100%; }
.my-tile-del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border-radius: 50%; border: none; background: rgba(0,0,0,0.6); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer;
}
.design-upload-tile {
  flex: 0 0 104px; height: 78px; border-radius: 14px;
  border: 2px dashed #3a434b; background: #171c20; color: #fff;
  font-weight: 700; font-size: 13px; cursor: pointer;
}

/* Seasonal design group */
.design-group-head { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; }
.design-group-title { font-size: 16px; margin: 0; }
.new-pack {
  background: #ff5a4f; color: #111; font-weight: 800; font-size: 11px;
  letter-spacing: 0.1em; padding: 4px 8px; border-radius: 999px;
}

/* ---------- Editor ---------- */
.name-input {
  width: 100%; background: #171c20; border: 1px solid #2a3138; color: #fff;
  font-size: 26px; font-weight: 800; border-radius: 12px; padding: 12px 14px;
}
.editor-section { margin-top: 8px; }
.editor-section-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; color: #fff; cursor: pointer; padding: 0;
}
.editor-section-head h2 { margin: 22px 0 10px; }
.chev { color: #2ee6a8; font-size: 27px; font-weight: 700; line-height: 1; margin-top: 8px; padding: 2px 8px; }
.bump-stats { font-size: 12px; opacity: .85; margin-top: 2px; }
.field-row { background: #171c20; border: 1px solid #242b31; border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.field-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.badge {
  flex: 0 0 auto; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 7px;
  background: #242b31; color: #2ee6a8; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.field-label { flex: 1; font-weight: 600; font-size: 14px; }
.info-btn {
  flex: 0 0 auto; width: 22px; height: 22px; padding: 0;
  background: none; border: none; color: #9aa3ab; font-size: 16px;
  line-height: 1; cursor: pointer;
}
.info-btn:hover { color: #2ee6a8; }
.find-btn {
  flex: 0 0 auto; width: 22px; height: 22px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #9aa3ab; font-size: 12px; line-height: 1; text-decoration: none;
  cursor: pointer;
}
.find-btn:hover { color: #2ee6a8; }
.field-input, .cf-label, .cf-value {
  width: 100%; background: #0b0d0f; border: 1px solid #2a3138; color: #fff;
  border-radius: 9px; padding: 9px 10px; font-size: 14px; min-width: 0;
}
.custom-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.custom-row .cf-label { flex: 1.1; }
.custom-row .cf-value { flex: 1.4; }
.cf-remove {
  flex: 0 0 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer;
  background: #2a3138; color: #fff; font-size: 18px; line-height: 1;
}
.cf-remove:hover { background: #ff5a4f; color: #111; }
.custom-blank-note { color: #9aa3ab; font-size: 12px; margin: -4px 0 10px; }

/* Filled custom rows match the built-in field layout: badge + label + × + toggle
   on top, full-width value below. (Blank creator rows stay side-by-side.) */
.custom-row[data-cf-id] {
  display: block; background: #171c20; border: 1px solid #242b31;
  border-radius: 14px; padding: 10px 12px; margin-bottom: 10px;
}
.custom-row[data-cf-id] .cf-label { flex: 1; }
.custom-row[data-cf-id] .cf-value { width: 100%; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; background: #2a3138; border-radius: 999px; cursor: pointer;
  transition: background 0.15s;
}
.slider:before {
  content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform 0.15s;
}
.switch input:checked + .slider { background: #2ee6a8; }
.switch input:checked + .slider:before { transform: translateX(18px); }

/* Photo */
.photo-row { display: flex; align-items: center; gap: 14px; }
.photo-thumb {
  width: 72px; height: 72px; border-radius: 18px; overflow: hidden; flex: 0 0 auto;
  background: #ff5a4f; color: #111; font-weight: 900; font-size: 34px;
  display: flex; align-items: center; justify-content: center;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.btn-primary {
  background: #ff5a4f; color: #111; font-weight: 800; border: none; cursor: pointer;
  border-radius: 999px; padding: 12px 20px; font-size: 15px;
}
.btn-green {
  display: inline-block; text-decoration: none;
  background: #2ee6a8; color: #111; font-weight: 800; border: none; cursor: pointer;
  border-radius: 999px; padding: 12px 20px; font-size: 15px;
}
.photo-btn { display: inline-block; }

/* Placeholders */
.placeholder { background: #171c20; border: 1px dashed #2a3138; border-radius: 14px; padding: 20px; color: #c8cfd5; }

/* ---------- Bottom dock + tab bar (medium gray, pinned) ---------- */
/* One fixed wrapper for both bars: separately-fixed bars drifted
   apart whenever the phone browser's address bar hid or showed. */
.bottomdock {
  position: fixed; left: 50%; transform: translateX(-50%) translateZ(0); bottom: 14px; z-index: 10;
  width: min(520px, calc(100% - 24px));
  display: flex; flex-direction: column; gap: 8px;
}
.tabbar {
  width: 100%; background: #3b434b; border-radius: 20px;
  display: flex; padding: 6px; gap: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.tab {
  flex: 1; background: transparent; border: none; color: #d3dade; cursor: pointer;
  border-radius: 14px; padding: 12px 2px; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.tab .tab-num { opacity: 0.7; font-size: 10px; margin-right: 3px; }
.tab.active { background: #fff; color: #111; }
.tab.active .tab-num { opacity: 0.6; }

/* Self-test output (only with ?selftest=1) */
#selftest-output { background: #10161a; border: 1px solid #2ee6a8; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 13px; }
#selftest-output p { margin: 4px 0; }
#selftest-output .pass { color: #2ee6a8; }
#selftest-output .fail { color: #ff5a4f; font-weight: 800; }

/* ---------- Share tab (slice 2) ---------- */
.share-intro { color: #c8cfd5; font-size: 15px; line-height: 1.5; margin: 0 0 6px; }
.preset-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.preset-card {
  width: 100%; background: #171c20; border: 2px solid #242b31; border-radius: 14px;
  padding: 12px 14px; cursor: pointer; text-align: left; color: #fff;
}
.preset-card.selected { border-color: #2ee6a8; outline: 2px solid #2ee6a8; outline-offset: 1px; }
.preset-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preset-card-name { font-weight: 800; font-size: 16px; }
.preset-customize {
  background: none; border: none; color: #2ee6a8; font-size: 13px; font-weight: 700;
  cursor: pointer; padding: 4px 0; flex: 0 0 auto;
}
.preset-design-line { color: #9aa3ab; font-size: 13px; margin-top: 4px; }
.btn-secondary {
  background: #2a3138; color: #fff; font-weight: 700; border: none; cursor: pointer;
  border-radius: 999px; padding: 11px 18px; font-size: 14px;
}
.btn-bump {
  width: 100%; background: #ff5a4f; color: #111; font-weight: 900; border: none;
  cursor: pointer; border-radius: 16px; padding: 16px; font-size: 18px; margin-top: 26px;
}
.customize-panel {
  background: #10161a; border: 1px solid #2a3138; border-radius: 14px;
  padding: 14px; margin-top: 12px;
}
.customize-title { font-size: 18px; margin: 0 0 10px; }
.customize-sub { font-size: 15px; margin: 16px 0 8px; }
.customize-section { font-size: 13px; color: #9aa3ab; letter-spacing: 0.06em; margin: 12px 0 4px; }
.cf-check-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid #242b31; font-size: 15px; cursor: pointer;
}
.cf-check-row input { width: 18px; height: 18px; accent-color: #2ee6a8; flex: 0 0 auto; }
.cf-check-row.pm-empty { opacity: 0.45; }
.customize-designs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.design-opt {
  background: #171c20; border: 2px solid #2a3138; color: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.design-opt.selected { border-color: #2ee6a8; }

/* Centered overlays (QR + dialogs): hidden attribute controls visibility. */
.overlay {
  position: fixed; inset: 0; z-index: 50; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.overlay:not([hidden]) { display: flex; }
.overlay-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }
.qr-card {
  position: relative; background: #171c20; border-radius: 20px; padding: 22px;
  width: min(360px, 100%); text-align: center; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.qr-title { font-size: 22px; margin: 0 0 12px; }
.qr-code { background: #fff; border-radius: 12px; padding: 12px; display: inline-block; margin: 4px auto 12px; }
.qr-code canvas { display: block; }
.qr-summary { color: #9aa3ab; font-size: 13px; line-height: 1.5; margin: 0 0 16px; }
.dialog-label { display: block; text-align: left; color: #9aa3ab; font-size: 13px; margin: 6px 0; }
.dialog-input {
  width: 100%; background: #0b0d0f; border: 1px solid #2a3138; color: #fff;
  border-radius: 9px; padding: 11px 12px; font-size: 16px; margin-bottom: 16px;
}
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Bumps tab + receiver + bump-back (slice 4) ---------- */
.bumps-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.bump-card {
  border-radius: 20px; padding: 22px 20px; cursor: pointer; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.bump-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bump-card-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.bump-card-photo { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
.bump-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.back-photo { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; margin-bottom: 6px; }
.back-photo img { width: 100%; height: 100%; object-fit: cover; }
.bump-tag {
  background: #2ee6a8; color: #111; font-weight: 800; font-size: 11px;
  letter-spacing: 0.08em; padding: 4px 8px; border-radius: 999px; flex: 0 0 auto;
}
.bump-when {
  color: #d3dade; font-size: 12px; opacity: 0.85; margin: 2px 0 10px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.receiver-card { width: 100%; text-align: left; margin-bottom: 16px; }

/* ---------- Bump links (phase part 3) ---------- */
.bump-options { text-align: left; margin: 0 0 16px; }
.bump-options .field-input { margin-bottom: 8px; }
.hold-row { display: flex; align-items: center; gap: 8px; color: #9aa3ab; font-size: 13px; }
.hold-row input { width: 18px; height: 18px; accent-color: #2ee6a8; flex: 0 0 auto; }
.qr-link { color: #2ee6a8; font-size: 13px; line-height: 1.5; margin: 0 0 12px; word-break: break-all; }
.bump-del {
  background: rgba(0,0,0,0.35); color: #fff; border: 0; border-radius: 999px;
  width: 24px; height: 24px; font-size: 16px; line-height: 1; cursor: pointer; flex: 0 0 auto;
}
/* Armed delete (two-step guard): the button widens to fit "Delete?" (or
   "Failed — try again") inside the card instead of overflowing the edge. */
.bump-del.armed {
  width: auto; height: 28px; padding: 0 10px; font-size: 13px; font-weight: 700;
  white-space: nowrap;
}
/* The card name truncates so an armed delete button never pushes past
   the card's right edge. Scoped to Bumps deck cards only. */
.bump-card-top .card-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Flip cards (2026-11-23, sketch v5) ----------
   Front: business-card shape (7:4) over the design; the back is a
   plain panel that stretches — the inner's height is set in JS to
   the back's natural height while flipped. */
.flipwrap { perspective: 1200px; }
/* Card animations (2026-11-23): the fx canvas + firelight glow sit
   over the card background; content stays clickable (pointer-events
   none) and the card's overflow clips them to its corners. */
.card-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.fx-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse 95% 55% at 50% 108%, rgba(255,140,40,0.40), rgba(255,90,20,0.13) 45%, rgba(0,0,0,0) 70%);
  animation: fxFlicker 2.6s ease-in-out infinite;
}
@keyframes fxFlicker {
  0%, 100% { opacity: 0.75; } 22% { opacity: 1; } 41% { opacity: 0.6; }
  63% { opacity: 0.92; } 82% { opacity: 0.7; }
}
.fx-toggle {
  position: absolute; top: 10px; right: 52px; width: 34px; height: 34px;
  border-radius: 50%; border: none; background: rgba(0,0,0,0.35); color: #fff;
  font-size: 15px; line-height: 1; cursor: pointer; z-index: 2;
}
.fx-toggle.off { opacity: 0.45; }
.flip-front .fx-toggle { top: 52px; right: 10px; width: 30px; height: 30px; font-size: 13px; }
.fx-bumpy {
  position: absolute; height: 42%; aspect-ratio: 951 / 1194; z-index: 1;
  transform: translate(-50%, -50%);
  touch-action: none; user-select: none; -webkit-user-select: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35));
}
.fx-bumpy img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
#cardPreview .fx-bumpy { cursor: grab; }
.fx-toggle, .card-min-btn { z-index: 6; }
/* Bumpy waves every few seconds: his arm is its own layer that
 * swings from the shoulder, then rests (William, 2026-11-23). */
.fx-bumpy.still .fx-bumpy-arm { animation: none; }
/* Holiday stickers (2026-11-24): fixed spots per kind (only Bumpy
 * drags) \u2014 holly bottom-left, wreath top-right, bell left edge.
 * Same layer as Bumpy: above the background, behind the info. */
.fx-sticker {
  position: absolute; transform: translate(-50%, -50%); z-index: 1;
  pointer-events: none; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .35));
}
.fx-sticker img { display: block; width: 100%; height: 100%; }
.fx-holly { height: 23%; aspect-ratio: 1442 / 1131; }
.fx-wreath { height: 30%; aspect-ratio: 1287 / 1322; }
.fx-bell { height: 26%; aspect-ratio: 1053 / 1378; }
#cardPreview .fx-sticker { cursor: grab; pointer-events: auto; touch-action: none; }
/* Drags that start on something painted over a sticker (a field
   button, the name, the eye) must not be stolen by page scroll
   \u2014 William found those drags "hard but doable" while drags
   starting on the sticker itself were smooth. */
#cardPreview .flip-field, #cardPreview .card-field, #cardPreview .fx-toggle, #cardPreview .card-min-btn,
#cardPreview .card-photo, #cardPreview .card-name, #cardPreview .card-quote, #cardPreview .flip-toprow,
#cardPreview .flip-fields, #cardPreview .flip-meta, #cardPreview .bump-card-top { touch-action: none; }
.fx-bell img { transform-origin: 50% 6%; animation: fxBellSwing 2.8s ease-in-out infinite; }
@keyframes fxBellSwing {
  0%, 100% { transform: rotate(9deg); }
  50% { transform: rotate(-9deg); }
}
.fx-light {
  position: absolute; width: 7%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, .35);
  animation: fxBlink 1.15s ease-in-out infinite alternate;
}
@keyframes fxBlink { from { opacity: .25; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .fx-bell img, .fx-light, .fx-orbit, .fx-ring-glow, .fx-border-neon, .fx-border-light { animation: none; }
}
/* Anchored effects (2026-11-25): rings hug the photo circle,
   borders frame the card. Same layer as the stickers (z-index 1,
   behind the card info). A ring is a full disc — the photo itself
   (z-index 2, opaque) covers its middle, so only the rim band
   shows; fxPlaceAnchors sizes and centers it over the photo. */
.fx-ring {
  position: absolute; width: 84px; height: 84px; left: 10px; top: 12px;
  border-radius: 50%; z-index: 1; pointer-events: none;
}
.fx-ring-wreath {
  background: radial-gradient(circle, #1b5e20 0 60%, #2e7d32 80%, #1b5e20 100%);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.3);
}
.fx-berry {
  position: absolute; width: 11%; aspect-ratio: 1; border-radius: 50%;
  background: #e53935; transform: translate(-50%, -50%);
  box-shadow: inset -1px -1px 2px rgba(0,0,0,.4), 0 0 3px rgba(0,0,0,.3);
}
.fx-ring-candy { background: repeating-conic-gradient(from 0deg, #d32f2f 0deg 18deg, #ffffff 18deg 36deg); }
.fx-ring-twinkle { background: radial-gradient(circle, rgba(255,213,74,.28) 0 62%, rgba(255,213,74,.06) 82%, rgba(255,213,74,0) 100%); }
.fx-ring-glow {
  box-shadow: 0 0 0 3px rgba(255,210,110,.9), 0 0 10px 3px rgba(255,190,80,.5);
  animation: fxPulseGlow 2.8s ease-in-out infinite;
}
@keyframes fxPulseGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,210,110,.9), 0 0 9px 3px rgba(255,190,80,.45); }
  50% { box-shadow: 0 0 0 4px rgba(255,220,140,1), 0 0 14px 5px rgba(255,200,90,.65); }
}
.fx-ring-gold {
  background: conic-gradient(from 210deg, #8a6d1f, #f6e27a, #b8912f, #fff3b0, #8a6d1f);
  box-shadow: inset 0 0 5px rgba(0,0,0,.4), 0 2px 5px rgba(0,0,0,.3);
}
.fx-orbit { position: absolute; inset: 0; animation: fxOrbitSpin 10s linear infinite; }
.fx-orbit-dot {
  position: absolute; width: 9%; aspect-ratio: 1; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 0 6px 2px rgba(255,255,255,.55);
}
@keyframes fxOrbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.fx-border {
  position: absolute; inset: 0; border-radius: inherit;
  z-index: 1; pointer-events: none;
}
.fx-border-twinkle { box-shadow: inset 0 0 12px rgba(255,255,255,.12); }
/* Add info / link (2026-11-26): the filing form + entry row actions */
#addInfoBtn { margin: 2px 0 6px; }
.add-info-hint { margin: 0 0 12px; }
.cf-share, .cf-move {
  background: none; border: 1px solid #3a4152; border-radius: 999px;
  color: inherit; font-size: 12px; padding: 3px 10px; cursor: pointer; flex: 0 0 auto;
}
.add-info-form { text-align: left; }
.add-info-form .util-title { margin: 0 0 10px; font-size: 19px; }
.add-info-label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 5px; }
.add-info-form textarea, .add-info-form input[type="text"], .add-info-form select {
  width: 100%; box-sizing: border-box; border-radius: 10px; padding: 10px 12px;
  border: 1px solid #3a4152; background: rgba(255,255,255,.06); color: inherit; font: inherit;
}
.add-info-form #addInfoSubmit { width: 100%; margin-top: 14px; }
.add-info-form .move-to-btn { display: block; width: 100%; margin: 0 0 8px; text-align: left; }
.add-info-share { margin-top: 18px; border-top: 1px solid #3a4152; padding-top: 12px; }
.add-info-share-label { font-weight: 700; margin: 0 0 6px; }
.add-info-share-item { font-weight: 600; margin: 2px 0 4px; overflow-wrap: anywhere; }
.add-info-qr { display: flex; justify-content: center; margin: 8px 0; }
.add-info-qr canvas { width: 100%; max-width: 240px; height: auto; border-radius: 8px; }
.add-info-share #addInfoShareCardBtn { width: 100%; }
.scan-notice { border: 1px solid #3a4152; border-radius: 12px; padding: 12px 14px; margin: 10px 0; text-align: left; }
.scan-notice h3 { margin: 0 0 6px; }
.scan-notice #merchantScanNoticeBtn { width: 100%; }
.scan-check { text-align: left; }
.scan-check-item { border-top: 1px solid #3a4152; padding: 10px 0; }
.scan-check-item:first-of-type { border-top: none; }
.scan-check-kind { font-weight: 700; margin: 0 0 4px; }
.scan-check-dest { font-size: 1.35em; font-weight: 700; margin: 0 0 4px; overflow-wrap: anywhere; }
.scan-check-url { overflow-wrap: anywhere; margin: 0 0 8px; }
.scan-flag { margin: 0 0 6px; }
.scan-check .btn-primary, .scan-check .btn-secondary { width: 100%; margin: 6px 0; }
.scan-list-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.scan-row { border: 1px solid #3a4152; border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; text-align: left; }
.scan-row-title { font-weight: 700; margin: 0 0 2px; overflow-wrap: anywhere; }
.scan-row-sub { margin: 0 0 4px; }
.scan-row-detail { margin: 0 0 2px; overflow-wrap: anywhere; }
.scan-row-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.scan-pick { display: block; margin: 0 0 6px; font-weight: 600; }
.scan-rename { display: flex; gap: 8px; margin: 0 0 6px; }
.scan-rename input { flex: 1 1 auto; min-width: 0; }
.receiver-item { border: 1px solid #3a4152; border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; text-align: left; }
.receiver-item-from { font-weight: 700; }
.receiver-item-open-link { font-weight: 700; }
.receiver-item-open { display: inline-block; margin: 10px 8px 4px 0; text-decoration: none; }
.receiver-item-file { margin-top: 10px; }
.flip-shared-row { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.flip-shared-link { flex: 1 1 auto; overflow-wrap: anywhere; }
.flip-shared-del { background: none; border: 1px solid #3a4152; border-radius: 999px; color: inherit; width: 26px; height: 26px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.flip-shared-clear { background: none; border: 1px solid #3a4152; border-radius: 999px; color: inherit; font-size: 12px; padding: 3px 10px; cursor: pointer; }
.fx-border-light {
  position: absolute; width: 11px; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 5px 1px rgba(255, 255, 255, .35);
  animation: fxBlink 1.15s ease-in-out infinite alternate;
}
.fx-border-snow {
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.92), inset 0 0 24px 11px rgba(255,255,255,.5);
}
.fx-border-holly { box-shadow: inset 0 0 0 3px #2e7d32, inset 0 0 0 6px rgba(183,28,28,.8); }
.fx-border-gold {
  border: 2px solid #d4af37;
  box-shadow: inset 0 0 0 2px rgba(212,175,55,.5), inset 0 0 14px rgba(212,175,55,.18);
}
.fx-border-neon {
  box-shadow: inset 0 0 0 2px rgba(0,229,255,.95), inset 0 0 15px 3px rgba(0,229,255,.45), inset 0 0 0 5px rgba(255,64,200,.3);
  animation: fxNeonPulse 3.2s ease-in-out infinite;
}
@keyframes fxNeonPulse { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }
.fx-border-vine { box-shadow: inset 0 0 0 3px #33691e, inset 0 0 0 6px rgba(139,195,74,.55); }
/* Muse pack effects (2026-11-26): violet + gold stars, matching
 * the starlit Muse backgrounds. */
.fx-ring-muse {
  background: radial-gradient(circle, #4c1d95 0 58%, #7c3aed 78%, #5b21b6 100%);
  box-shadow: inset 0 0 0 3px rgba(255,213,74,.35), 0 2px 6px rgba(0,0,0,.3);
}
.fx-muse-dot {
  position: absolute; width: 9%; aspect-ratio: 1; border-radius: 50%;
  background: #ffd54a; transform: translate(-50%, -50%);
  box-shadow: 0 0 4px 1px rgba(255,213,74,.55);
}
.fx-border-muse {
  border: 2px solid rgba(167,139,250,.95);
  box-shadow: inset 0 0 0 2px rgba(124,58,237,.45), inset 0 0 16px rgba(124,58,237,.25);
}
.fx-border-muse::after {
  content: ''; position: absolute; inset: 4px; border-radius: 12px;
  border: 2px dotted rgba(255,213,74,.75);
}
.fx-spark { height: 15%; aspect-ratio: 1; }
.fx-spark svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 5px rgba(255,213,74,.65)); }
.fx-musebot { height: 30%; aspect-ratio: 1014 / 1314; }
.fx-bumpy-arm {
  transform-origin: 27% 42%;
  animation: fxBumpyWave 4.5s ease-in-out infinite;
}
@keyframes fxBumpyWave {
  0%, 100% { transform: rotate(0deg); }
  2% { transform: rotate(-8deg); }
  5% { transform: rotate(6deg); }
  8% { transform: rotate(-7deg); }
  11% { transform: rotate(3deg); }
  14% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-bumpy-arm { animation: none; }
}
.collection-card { width: min(520px, 100%); text-align: left; }
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 16px; }
.collection-tile { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 8 / 5; background-color: #20262b; }
.collection-tile .ct-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.collection-tile .ct-count { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 999px; }
.collection-tile .ct-badge { position: absolute; top: 6px; left: 6px; background: #f5b301; color: #231a00; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.collection-tile .ct-badge.limited { background: #0f766e; color: #e6fffa; }
.collection-tile .ct-badge.earned { background: #b45309; color: #fff7e6; }
/* Collapsible picker sections (2026-11-24): an open body caps at
 * about four lines of tiles (4 x ~90px) and scrolls past that. */
.picker-fold-body { max-height: 372px; overflow-y: auto; }
.collection-tile[data-earn-tile] { cursor: pointer; }
.collection-tile .ct-badge.unique { background: #6d4fc2; color: #f1eafd; }
.collection-progress { height: 8px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; margin: 0 0 10px; }
.collection-progress i { display: block; height: 100%; background: #2ee6a8; border-radius: 999px; }
.collection-cat { margin: 10px 0 4px; font-weight: 600; opacity: .8; }
.fx-cat { margin: 8px 0 4px; font-size: .82rem; font-weight: 600; opacity: .7; }
.collection-tile.locked { filter: grayscale(1); opacity: .35; }
.collection-fx { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.collection-fx .fx-chip { cursor: default; }
.collection-fx .fx-chip.locked { opacity: .35; filter: grayscale(1); }
.report-reasons { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.flip-report {
  display: block; margin-top: 12px; background: none; border: none; padding: 4px 0;
  color: #f08a8a; font-size: 13px; cursor: pointer; text-decoration: underline;
}
/* Effect categories: exactly two lines of chips, sideways
   scroll for the rest (William, 2026-11-25) — no more wrapping
   into tall blocks. Column flow fills top-then-bottom per column. */
.fx-row {
  display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column;
  grid-auto-columns: max-content; justify-content: start;
  gap: 8px; overflow-x: auto; overflow-y: hidden;
  padding: 2px 2px 8px; scrollbar-width: thin;
}
.fx-chip {
  border: 1px solid rgba(255,255,255,0.18); background: #141a1f; color: #e8eef4;
  border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer;
}
.fx-chip.selected { border-color: #2ee6a8; color: #2ee6a8; }
.pack-pro { background: #8a6d1f; }
.flipinner { position: relative; transform-style: preserve-3d; transition: transform 0.55s ease, height 0.55s ease; }
.flipinner.no-anim { transition: none; }
.flipinner.flipped { transform: rotateY(180deg); }
/* The turned-away face must never eat taps (2026-11-24): on
 * Android Chrome a backface-hidden front can still swallow a
 * tap meant for the back, which opened the old receiver screen
 * instead of flipping back. */
.flipinner.flipped .flip-front { pointer-events: none; }
.flipinner:not(.flipped) .flip-back { pointer-events: none; }
.flip-front {
  position: relative; aspect-ratio: 7 / 4; padding: 16px; display: flex; flex-direction: column;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip-back {
  position: absolute; top: 0; left: 0; right: 0; border-radius: 20px; padding: 16px;
  background: #1d2735; border: 1px solid #33445e; color: #eef1f6;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 5px; margin-top: auto; }
.flip-field {
  display: flex; align-items: center; gap: 7px; min-width: 0; cursor: pointer; text-align: left;
  background: rgba(16,18,24,0.55); border: 1px solid rgba(255,255,255,0.16); border-radius: 10px;
  padding: 6px 9px; color: #fff; font: inherit;
}
.text-black .flip-field { background: rgba(255,255,255,0.45); border-color: rgba(0,0,0,0.18); color: #111; }
.flip-field-lab { font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.flip-field-val { margin-left: auto; font-size: 10.5px; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flip-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.flip-when { font-size: 10.5px; opacity: 0.8; }
.flip-more { border: 1.5px solid rgba(255,255,255,0.55); font-weight: 700; font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(16,18,24,0.4); }
.text-black .flip-more { border-color: rgba(0,0,0,0.4); background: rgba(255,255,255,0.35); }
.flip-btn {
  margin-left: auto; background: #ffcf5c; color: #23180a; border: 0; font-weight: 800;
  font-size: 11.5px; padding: 6px 12px; border-radius: 999px; cursor: pointer; flex: 0 0 auto;
}
.flip-back-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.flip-back-title { font-weight: 800; font-size: 14px; }
.flip-back-head .flip-btn { margin-left: 0; }
.flip-back-name { color: #ffd9a0; font-weight: 600; font-size: 12.5px; margin-top: 2px; }
.flip-back .bump-stats { color: #c8d2e0; opacity: 0.9; }
.flip-sec { font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: #ffcf5c; margin: 12px 0 6px; font-weight: 700; }
.flip-note {
  width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px; color: #eef1f6; padding: 8px 10px; font: inherit; font-size: 13.5px; resize: vertical;
}
.flip-note-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.flip-save-note {
  background: #2b3a52; color: #fff; border: 1px solid rgba(255,255,255,0.2); font-weight: 700;
  font-size: 12.5px; padding: 6px 13px; border-radius: 999px; cursor: pointer;
}
.flip-note-saved { color: #2ee6a8; font-size: 12.5px; font-weight: 700; }
.flip-qrrow { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.flip-qr { background: #fff; border-radius: 10px; padding: 5px; line-height: 0; flex: 0 0 auto; }
.flip-qr canvas { width: 92px !important; height: 92px !important; }
.flip-qr-cap { font-size: 12px; color: #c8d2e0; line-height: 1.4; }
.flip-dlist { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 5px; }
.flip-drow {
  display: flex; align-items: center; gap: 7px; min-width: 0; cursor: pointer; text-align: left;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  padding: 6px 9px; color: #eef1f6; font: inherit;
}
.flip-dempty { font-size: 13px; color: #c8d2e0; }
.flip-save-contact {
  margin-top: 12px; background: #4caf7d; color: #fff; border: 0; font-weight: 800;
  font-size: 13px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
}

/* My Card preview matches the flip front (2026-11-23): same
   business-card shape and top-row layout. Scoped to #cardPreview —
   the receiver card shares .card-preview but keeps its own layout. */
#cardPreview { aspect-ratio: 7 / 4; justify-content: flex-start; }
.flip-toprow { display: flex; align-items: center; gap: 10px; min-width: 0; }
.flip-namecol { display: flex; flex-direction: column; min-width: 0; }
.flip-co {
  font-size: 12px; font-weight: 600; color: #ffd9a0; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.text-black .flip-co { color: #7a5b00; text-shadow: 0 1px 6px rgba(255,255,255,0.5); }
.flip-pava {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: #ff5a4f; color: #111; font-weight: 900; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.85);
}
.flip-pava img { width: 100%; height: 100%; object-fit: cover; }
#cardPreview .flip-pname { font-size: 22px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#cardPreview .card-quote { margin-top: 6px; }
.card-preview.card-min .flip-fields, .card-preview.card-min .flip-meta,
.card-preview.card-min .flip-pava { display: none; }
/* Eye on Bumps flip fronts (2026-11-23): same minimize idea as My
   Card — the front collapses to the name on the full background. */
.flip-eye {
  width: 30px; height: 30px; border-radius: 50%; border: 0; flex: 0 0 auto;
  background: rgba(0,0,0,0.35); color: #fff; font-size: 15px; line-height: 1; cursor: pointer;
}
.flip-front.flip-min .flip-fields, .flip-front.flip-min .flip-meta,
.flip-front.flip-min .bump-card-photo, .flip-front.flip-min .bump-tag { display: none; }
.receiver-actions { display: flex; gap: 10px; justify-content: center; margin: 0 0 10px; }
/* Tall dialogs (the bump-back form) scroll instead of overflowing the screen. */
.qr-card { max-height: calc(100vh - 40px); overflow-y: auto; }
.quickbar {
  width: 100%; background: #3b434b; border-radius: 20px;
  display: flex; align-items: center; gap: 8px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.quick-btn {
  position: relative; flex: 0 0 auto; background: #171c20; border: none; color: #fff;
  border-radius: 14px; padding: 11px 14px; font-size: 13px; font-weight: 800;
  letter-spacing: 0.06em; cursor: pointer; overflow: hidden;
}
.quick-bolt {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 26px; color: #f5c518; z-index: 0; line-height: 1;
}
.quick-label { position: relative; z-index: 1; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
.quick-chips { display: flex; gap: 8px; overflow-x: auto; flex: 1; padding: 2px; }
.quick-chip {
  flex: 0 0 auto; background: #171c20; border: 2px solid #2a3138; color: #fff;
  border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.quick-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #242b31; font-size: 15px; font-weight: 600;
}
.quick-row:last-child { border-bottom: none; }
.util-panel {
  background: #10161a; border: 1px solid #2a3138; border-radius: 14px;
  padding: 14px; margin-top: 12px;
}
.util-input { margin-bottom: 10px; }
.util-row { display: flex; gap: 8px; margin-bottom: 10px; }
.util-row .field-input { flex: 1; width: auto; }
.util-qr-btn { flex: 0 0 auto; }
.pay-rows { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 16px; text-align: left; }
.pay-row { display: flex; align-items: center; gap: 10px; }
.pay-label { font-weight: 700; font-size: 14px; flex: 0 0 auto; min-width: 74px; }
.pay-handle { flex: 1; color: #2ee6a8; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-qr-btn { flex: 0 0 auto; }

/* ---------- Settings tab (slice 5) ---------- */
.pro-tier {
  background: #171c20; border: 1px solid #242b31; border-radius: 14px;
  padding: 14px; margin-bottom: 12px;
}
.pro-tier-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pro-tier-name { font-weight: 800; font-size: 17px; }
.coming-soon {
  background: #2a3138; color: #c8cfd5; font-weight: 700; font-size: 11px;
  letter-spacing: 0.08em; padding: 4px 8px; border-radius: 999px; flex: 0 0 auto;
}
.pro-tier-price { color: #2ee6a8; font-weight: 800; font-size: 15px; margin: 6px 0 4px; }
.pro-tier-features { color: #c8cfd5; font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.donate-row { margin: 18px 0 22px; }
.donate-note { color: #9aa3ab; font-size: 13px; margin: 16px 0 0; }
.settings-menu {
  background: #171c20; border: 1px solid #242b31; border-radius: 14px;
  margin-bottom: 12px; overflow: hidden;
}
.settings-menu summary { cursor: pointer; font-weight: 700; font-size: 15px; padding: 14px; }
.settings-menu[open] summary { margin-bottom: 4px; }
.settings-menu-body { padding: 0 14px 14px; }
.prog-closed { margin-top: 12px; }
.prog-closed summary { cursor: pointer; font-weight: 700; font-size: 15px; padding: 10px 0; }
.merchant-owner-area { margin-top: 12px; }
.merchant-owner-area summary { cursor: pointer; font-weight: 700; font-size: 15px; padding: 10px 0; }
.prog-form { margin-top: 12px; }
.prog-form summary { cursor: pointer; font-weight: 700; font-size: 15px; padding: 10px 0; }
/* Add-program forms: label-on-top, full-width inputs. Checkbox rows
 * and the day-checkbox spans keep their inline layout. */
#progPunchForm > label, #progCouponForm > label { display: block; margin: 10px 0; }
#progPunchForm > label > input[type="text"],
#progPunchForm > label > input[type="number"],
#progPunchForm > label > input[type="date"],
#progPunchForm > label > select,
#progCouponForm > label > input[type="text"],
#progCouponForm > label > input[type="number"],
#progCouponForm > label > input[type="date"],
#progCouponForm > label > select { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; }
/* Program EDIT form (2026-11-08): the same stacked treatment as the
 * add forms above. It never got these rules, so every field flowed
 * inline in one cramped paragraph on the phone (William's report).
 * Checkbox rows and the day-checkbox spans keep their inline layout:
 * only text/number/date inputs and selects go full-width. */
#progEditForm > label { display: block; margin: 10px 0; }
#progEditForm > label > input[type="text"],
#progEditForm > label > input[type="number"],
#progEditForm > label > input[type="date"],
#progEditForm > label > select { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; }
.pm-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid #242b31; font-size: 15px; cursor: pointer;
}
.pm-row:last-child { border-bottom: none; }
.pm-name { font-weight: 700; flex: 1; }
.pm-design { color: #9aa3ab; font-size: 13px; }
.pm-builtin { color: #9aa3ab; font-size: 12px; flex: 0 0 auto; }
.text-link { color: #2ee6a8; font-weight: 700; }

/* Sign-in screen (Firebase phase part 1): same shell width as .app. */
.auth-view { max-width: 520px; margin: 0 auto; padding: 24px 16px 40px; }
.auth-view .btn-primary, .auth-view .btn-secondary {
  display: block; width: 100%; margin: 10px 0 0;
}
.auth-error { color: #ff8a7a; font-size: 14px; margin: 10px 0 0; }
.auth-forgot { display: block; margin: 4px 0 2px; padding: 4px 0; background: none; border: none; color: inherit; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; text-align: left; }
.auth-note { font-size: 14px; opacity: .85; margin: 8px 0 0; }
/* Auth-screen small print sits on the app background photo, whose
   light patches wash out the muted hint text (William, 2026-11-25:
   the one-account-one-type note "kinda blends in"). A soft dark
   chip behind the auth hints keeps them readable over any photo. */
.auth-view .hint, .auth-view .auth-note {
  background: rgba(8, 10, 18, .58); border-radius: 10px; padding: 8px 10px;
}
/* Account type choice (business-account slice 1, 2026-11-01): plain
 * radio rows on the sign-in screen, same shell as the other auth rows. */
/* Auth mode toggle (2026-11-08): sign-in vs create-account. The
 * account-type picker lives only in create mode (see #authTypeWrap). */
.auth-mode-toggle { display: flex; gap: 8px; margin: 14px 0 4px; }
.auth-mode-btn {
  flex: 1; padding: 10px; border-radius: 999px; cursor: pointer;
  background: #171c20; color: #9aa3ab; border: 1px solid #242b31;
  font-size: 15px; font-weight: 700;
}
.auth-mode-btn.auth-mode-on { background: #ff5a4f; color: #111; border-color: #ff5a4f; }
.auth-type { border: 0; margin: 14px 0 4px; padding: 0; text-align: left; }
.auth-type-row { display: block; margin: 8px 0; cursor: pointer; }
/* Business share (slice 1): two buttons only, spaced like other rows. */
.biz-share .btn-primary, .biz-share .btn-secondary { margin: 8px 8px 8px 0; }
/* Merchant CORE styles. Plain classes matching the app's existing
 * panel styling; the coordinator may restyle, but these class names
 * are what core.js emits, so do not rename them without updating
 * core.js. Phone-first: full-width inputs and buttons, no fixed
 * pixel widths that would overflow a narrow screen. */
.merchant-setup, .merchant-dash, .merchant-admin, .merchant-upgrade {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
}
.merchant-step {
  font-size: 0.85em;
  opacity: 0.7;
  margin: 0;
}
.merchant-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.merchant-field > span {
  font-weight: 600;
  font-size: 0.9em;
}
.merchant-field input, .merchant-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  font-size: 1em;
}
.merchant-note {
  font-size: 0.85em;
  opacity: 0.75;
  margin: 0;
}
.merchant-error {
  color: #ff7a7a;
  opacity: 1;
  font-weight: 600;
}
.merchant-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.merchant-nav button, .merchant-dash button, .merchant-admin button,
.merchant-upgrade button {
  padding: 10px 16px;
  font-size: 1em;
  cursor: pointer;
}
.merchant-pin-gate {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.merchant-pin-gate input {
  padding: 10px;
  font-size: 1em;
  flex: 1 1 140px;
}
.merchant-dash-section {
  border-top: 1px solid rgba(128, 128, 128, 0.35);
  padding-top: 12px;
}
.merchant-dash-section h4 {
  margin: 0 0 8px;
}
.merchant-ent {
  font-weight: 600;
  margin: 0;
}
.merchant-referral-link {
  word-break: break-all;
  font-size: 0.9em;
}
/* Shop discovery (2026-11-06): picker list on the Shop card tab. */
.merchant-discover ul { list-style: none; padding: 0; margin: 8px 0; }
.merchant-discover li { margin: 6px 0; }
.merchant-discover li button { width: 100%; text-align: left; }
.merchant-upgrade {
  border: 1px solid rgba(128, 128, 128, 0.4);
  border-radius: 8px;
  padding: 12px;
}
.merchant-upgrade h3 {
  margin: 0;
}
.merchant-upgrade p {
  margin: 0;
}
/* Merchant CLAIM/REDEEM slice (2026-10-31) — companion to claim.js.
   Reuses the existing qrOverlay / qr-card overlay, btn-primary /
   btn-secondary, dialog-label / dialog-input classes. Only shop-*
   classes are new. */
.shop-claim-body { width: 100%; }
.shop-issue { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.shop-issue-program { font-weight: 600; text-align: center; }
.shop-stepper { display: flex; align-items: center; gap: 10px; }
.shop-step-label { font-weight: 600; }
.shop-step-btn {
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.shop-step-count { font-size: 1.6rem; font-weight: 700; min-width: 1.2em; text-align: center; }
.shop-step-max { color: #666; }
.shop-code-big {
  font-size: 2rem; font-weight: 800; letter-spacing: 0.12em;
  text-align: center; margin: 12px 0 4px;
}
.shop-claim-check {
  display: flex; gap: 10px; align-items: flex-start;
  text-align: left; margin: 12px 0; cursor: pointer;
}
.shop-claim-check input { margin-top: 4px; width: 20px; height: 20px; flex-shrink: 0; }
.shop-typed-row { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.shop-held { font-weight: 600; }
.shop-ok { font-weight: 600; }
.shop-err { font-weight: 600; }
.shop-confirm { text-align: center; }
.shop-confirm h3 { margin: 0 0 8px; }
/* Merchant COUPONS+BIZ styles (2026-10-31). Plain classes the coordinator
 * can restyle to match the app theme; none of these are load-bearing. */
.biz-coupon-tile {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0;
  text-align: center;
}
.biz-coupon-tile strong { font-size: 1.2em; }
.biz-coupon-tile p { margin: 6px 0; }
.biz-code {
  font-family: monospace;
  font-size: 1.3em;
  letter-spacing: 0.12em;
  background: #f2f2f2;
  border-radius: 6px;
  padding: 2px 8px;
}
.biz-review-prompt {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
}
.biz-review-link {
  display: inline-block;
  margin-right: 10px;
  font-weight: bold;
}
.review-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-link-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.biz-announcement {
  border-left: 4px solid #888;
  padding: 6px 12px;
  margin: 8px 0;
}
.biz-announcement p { margin: 0 0 4px; }
.biz-announcement small { color: #666; }
.biz-dash { margin: 12px 0; }
.biz-dash ul { margin: 6px 0 12px 20px; }
.biz-dash-contacts li { margin: 4px 0; }
.biz-reissue, .biz-redeem-confirm, .biz-redeem-refusal {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
}
.biz-redeem-confirm { border-color: #2a7a2a; }
.biz-redeem-refusal { border-color: #a33; }
/* Merchant TABS+NOTIF+KIOSK+DEMO slice (2026-10-31). Append to styles.css.
   Dark theme to match the app: panel #242b31, accent #2ee6a8, muted #9aa3ab. */

/* Bumps sub-tabs */
.bumps-tabs { display: flex; gap: 8px; margin: 12px 0 4px; }
.bumps-tab {
  flex: 1; min-height: 44px; border: none; border-radius: 12px;
  background: #242b31; color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.bumps-tab.active { background: #2ee6a8; color: #111; }
.bumps-badge {
  background: rgba(0,0,0,0.25); border-radius: 999px; padding: 2px 8px;
  font-size: 13px; font-weight: 800;
}
.bumps-tab.active .bumps-badge { background: rgba(0,0,0,0.18); }
.rewards-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff5a4f; flex: 0 0 auto;
}

/* Move-to control (card detail view; thumb-friendly buttons) */
.reassign-row { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; flex-wrap: wrap; }
.reassign-label { color: #9aa3ab; font-size: 13px; font-weight: 700; }
.reassign-btn {
  min-height: 40px; padding: 0 14px; border: none; border-radius: 999px;
  background: #242b31; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
}
.reassign-btn.active { background: #2ee6a8; color: #111; }

/* Notification settings + inbox */
.notif-settings { display: flex; flex-direction: column; gap: 2px; }
.notif-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #2a3138; cursor: pointer;
}
.notif-row:last-of-type { border-bottom: none; }
.notif-label { font-size: 15px; }
.notif-row input[type="checkbox"] { width: 22px; height: 22px; flex: 0 0 auto; accent-color: #2ee6a8; }
.notif-inbox { display: flex; flex-direction: column; gap: 10px; }
.notif-item { background: #242b31; border-radius: 12px; padding: 12px 14px; }
.notif-item.notif-unread .notif-text { font-weight: 800; }
.notif-text { font-size: 15px; }
.notif-when { color: #9aa3ab; font-size: 12px; margin-top: 4px; }

/* Kiosk overlay (full-screen, above the app chrome) */
.kiosk-overlay {
  position: fixed; inset: 0; z-index: 200; background: #0b0d0f;
  overflow-y: auto;
}
.kiosk-slideshow { min-height: 100%; display: flex; flex-direction: column; padding: 16px 16px 24px; }
.kiosk-photo { border-radius: 20px; overflow: hidden; min-height: 220px; background: #242b31; }
.kiosk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kiosk-photo-placeholder { background: linear-gradient(135deg, #2ee6a8, #1b6f8e 55%, #ff5a4f); }
.kiosk-card { margin-top: 16px; }
.kiosk-shop-name { font-size: 30px; font-weight: 900; line-height: 1.1; }
.kiosk-card-field { font-size: 15px; color: #c8cfd5; margin-top: 4px; }
.kiosk-offers { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.kiosk-offer {
  background: #242b31; border-radius: 12px; padding: 12px 14px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
}
.kiosk-offer-name { font-weight: 800; font-size: 15px; }
.kiosk-offer-deal { color: #2ee6a8; font-weight: 800; }
.kiosk-offer-terms { color: #9aa3ab; font-size: 13px; width: 100%; }
.kiosk-hint {
  margin-top: auto; padding-top: 24px; text-align: center;
  color: #9aa3ab; font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
}
.kiosk-pin { max-width: 420px; margin: 40px auto; padding: 0 16px; }
.kiosk-upgrade { max-width: 420px; margin: 40px auto; padding: 0 16px; }

/* Deck (2026-11-01): one slide at a time, sized to the viewport, never scrolling. */
.kiosk-deck {
  height: 100vh; height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column;
}
.kiosk-slide {
  display: none; flex: 1 1 auto; min-height: 0; overflow: hidden;
  flex-direction: column; justify-content: center; align-items: center;
  padding: 16px;
}
.kiosk-slide.is-active { display: flex; }
.kiosk-slide-photo { padding: 0; align-items: stretch; }
.kiosk-slide-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kiosk-slide-card { align-items: flex-start; padding: 24px; }
/* Hours slide (2026-11-05): fills the screen — big centered text
 * readable from across the counter, not the card slide's top-left
 * 15px layout. */
.kiosk-slide-hours { padding: 32px 24px; text-align: center; }
.kiosk-slide-hours .kiosk-shop-name { font-size: 40px; font-size: 6vh; }
.kiosk-slide-hours .kiosk-card-field { font-size: 26px; font-size: 4.2vh; color: #e6ebee; margin-top: 10px; }
.kiosk-slide-hours .kiosk-hours-title { font-weight: 800; color: #2ee6a8; }
.kiosk-slide-hours .kiosk-slide-scrim { width: 100%; box-sizing: border-box; }
.kiosk-slide-offer .kiosk-offer { width: 100%; }
.kiosk-slide-qr .qr-code canvas { max-width: 72vw; max-height: 52vh; width: auto; height: auto; }
.kiosk-slide-qr .qr-summary { text-align: center; margin-top: 16px; font-size: 22px; font-weight: 700; }

/* Slideshow editor strip (slice 4): sideways like the design picker, ~3 visible. */
.slide-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; }
.slide-strip-item {
  flex: 0 0 104px; border: 1px solid #242b31; border-radius: 14px; padding: 8px;
  display: flex; flex-direction: column; gap: 6px; align-items: stretch;
}
.slide-strip-item img { width: 100%; height: 78px; object-fit: cover; border-radius: 10px; display: block; }
.slide-strip-thumb { background: none; border: none; padding: 0; cursor: pointer; }
.slide-strip-label { font-size: 12px; color: #d3dade; word-break: break-word; }
.slide-strip-label-big {
  font-size: 13px; font-weight: 700; color: #fff; min-height: 78px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.slide-strip-moves { display: flex; gap: 6px; }
.slide-strip-moves button, .slide-strip-x, .slide-strip-item button[data-slide-restore] {
  background: #171c20; color: #d3dade; border: 1px solid #242b31; border-radius: 8px;
  padding: 4px 0; cursor: pointer; font-size: 13px;
}
.slide-strip-moves button { flex: 1; }
.slide-strip-hidden { opacity: 0.55; }
/* Deck photo captions: scrim band + shadow so text reads over food photos. */
.kiosk-slide-photo { position: relative; }
.kiosk-caption {
  position: absolute; left: 12px; right: 12px; text-align: center; padding: 8px 10px;
  background: rgba(0,0,0,0.45); border-radius: 8px; font-weight: 700; line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
.kiosk-caption-top { top: 16px; }
.kiosk-caption-middle { top: 50%; transform: translateY(-50%); }
.kiosk-caption-bottom { bottom: 16px; }
.slide-caption-form img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; }

/* Design-backed slideshow slides: scrim + shadow keep text readable
 * over picture backgrounds (same treatment as photo captions); QRs
 * sit on a solid white panel so they stay scannable. */
.kiosk-slide-scrim {
  background: rgba(0,0,0,0.45); border-radius: 12px; padding: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
.kiosk-slide-card .kiosk-slide-scrim { width: 100%; box-sizing: border-box; }
.kiosk-slide-qr .kiosk-slide-scrim { padding: 8px 12px; }
.kiosk-qr-panel { background: #fff; padding: 16px; border-radius: 16px; }

/* Slice 6 fullscreen button: small and unobtrusive under the staff hint. */
.kiosk-fs-btn {
  align-self: center; margin-top: 8px; background: #171c20; color: #9aa3ab;
  border: 1px solid #242b31; border-radius: 999px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; cursor: pointer;
}
.kiosk-fs-hint {
  align-self: center; margin-top: 8px; color: #9aa3ab; font-size: 12px; text-align: center;
}

/* Customer Claim tab QR scanner (2026-11-03): camera view fills the
 * panel width; the typed-code box below stays the fallback. */
.merchant-scan-entry { margin-bottom: 16px; }
#merchantScanVideo, #merchantRedeemScanVideo { width: 100%; max-width: 360px; border-radius: 12px; background: #000; }
#merchantScanView { margin-top: 8px; }

/* Lock screen QR (2026-11-17) */
#lockCanvas { width: 190px; max-width: 55vw; height: auto; border-radius: 16px; display: block; margin: 12px 0; box-shadow: 0 2px 14px rgba(0,0,0,.35); }
.lock-photo-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.lock-photo-label { cursor: pointer; display: inline-block; }
.lock-warn { background: rgba(255,176,32,.12); border: 1px solid rgba(255,176,32,.45); border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.45; }
/* Bump It Shop (2026-11-17) */
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.store-card { border: 1px solid rgba(127,127,127,.35); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.store-tile { background: linear-gradient(135deg, #1b2a4a, #0b0d0f); color: #fff; border-radius: 8px; font-weight: 700; font-size: 20px; text-align: center; padding: 16px 4px; letter-spacing: .04em; }
.store-card-name { font-weight: 600; }
.store-card-detail { font-size: 13px; opacity: .75; }
.store-card-price { font-weight: 700; margin-top: auto; }
.store-tabs { display: flex; gap: 8px; margin: 10px 0 4px; }
.store-art { background: #fff; color: #111; border-radius: 12px; padding: 18px; text-align: center; margin: 8px 0 12px; }
.store-art img { max-width: 70%; max-height: 180px; }
.store-art-name { font-size: 26px; font-weight: 700; padding: 18px 0; }
.store-art-qr canvas { max-width: 180px; height: auto; }
.store-art-cap { font-size: 13px; color: #444; margin-top: 8px; }
.store-card-canvas { width: 100%; max-width: 520px; height: auto; border-radius: 10px; display: block; margin: 8px 0; box-shadow: 0 2px 14px rgba(0,0,0,.35); }
#nfcFrontCanvas { touch-action: none; }
.store-teaser { position: relative; height: 1.7em; overflow: hidden; margin: 6px 0 10px; font-weight: 600; }
.store-teaser span { position: absolute; left: 0; top: 0; opacity: 0; animation: storeTeaserCycle 9s infinite; white-space: nowrap; }
@keyframes storeTeaserCycle { 0% { opacity: 0; } 4% { opacity: 1; } 29% { opacity: 1; } 33% { opacity: 0; } 100% { opacity: 0; } }
.store-thumb { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; display: block; }
.store-mock-canvas { width: 100%; max-width: 560px; height: auto; border-radius: 12px; display: block; margin: 8px 0; box-shadow: 0 2px 14px rgba(0,0,0,.35); background: #e8e8e8; }
.store-photo { width: 100%; max-width: 560px; height: auto; border-radius: 12px; display: block; margin: 8px 0; box-shadow: 0 2px 14px rgba(0,0,0,.35); }
.shop-photo-row { display: flex; align-items: center; gap: 14px; margin: 6px 0; }
.store-entry-card { border: 1px solid #2c333c; border-radius: 14px; padding: 12px 14px; margin: 14px 0; background: #12161c; }
.store-entry-card .section-title, .store-entry-card .customize-sub { margin-top: 0; }
.store-entry-photos { display: flex; gap: 8px; margin: 8px 0; }
.store-entry-photos img { flex: 1 1 0; min-width: 0; height: 76px; object-fit: cover; border-radius: 10px; }
#lockCanvas { touch-action: none; }
.lock-toggle { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-weight: 600; }
.lock-size-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.lock-size-row label { min-width: 84px; }
.lock-size-row input[type="range"] { flex: 1; }
.lock-steps-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.62); display: flex; align-items: center; justify-content: center; padding: 18px; }
.lock-steps-card { background: #171b21; color: #eef1f4; border-radius: 16px; padding: 20px; max-width: 420px; width: 100%; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.lock-steps-card h3 { margin: 0 0 6px; }
.lock-steps { margin: 8px 0 10px 20px; padding: 0; }
.lock-steps li { margin: 9px 0; line-height: 1.45; }
.lock-steps-card .btn-primary { width: 100%; margin-top: 8px; }
.store-soon { display: inline-block; background: #2ee6a8; color: #0b0d0f; font-weight: 700; font-size: 12px; border-radius: 999px; padding: 3px 10px; margin-bottom: 6px; }
.store-text-input { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid #333a44; background: #10131a; color: #eef1f4; margin-top: 4px; box-sizing: border-box; }
.store-field-label { display: block; margin: 10px 0; font-size: 14px; color: #aeb6c2; }

/* Shop cards + menus (2026-11-25) */
.rewards-ready-line { display: block; width: 100%; margin-top: 8px; padding: 8px 10px; border: none; border-radius: 10px; background: #15803d; color: #fff; font-weight: 600; cursor: pointer; }
.flip-shop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.card-flash { outline: 3px solid #f59e0b; outline-offset: 2px; transition: outline-color 0.4s; }
.shopmenu-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; color: #fff; margin-bottom: 12px; }
.shopmenu-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #ffffff33; }
.shopmenu-logo-letter { display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.shopmenu-name { font-size: 20px; font-weight: 700; }
.shopmenu-cat { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; }
.shopmenu-cat-img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.shopmenu-cat-name { font-size: 17px; font-weight: 700; }
.shopmenu-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hatch-widget-border, #e5e7eb); }
.shopmenu-thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.shopmenu-iname { flex: 1; }
.shopmenu-iprice { font-weight: 700; }
.shopmenu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shopmenu-gitem { border: 1px solid var(--hatch-widget-border, #e5e7eb); border-radius: 10px; padding: 8px; }
.shopmenu-gimg { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; }
.shopmenu-gname { margin-top: 6px; font-weight: 600; }
.shopmenu-gprice { font-weight: 700; }
.shopmenu-crow { display: flex; justify-content: space-between; padding: 4px 0; }
.shopmenu-cprice { font-weight: 600; }
.shop-editor-tabs { margin: 10px 0 14px; }
.menu-line { display: flex; align-items: center; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.menu-line input[type="text"] { flex: 1; min-width: 110px; }
.menu-line .menu-line-price { flex: 0 0 84px; min-width: 84px; }
.menu-line-cat { background: var(--hatch-widget-surface-muted, #f3f4f6); border-radius: 10px; padding: 6px; }
.menu-line-badge { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.menu-template-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.menu-add-row { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.btn-secondary.active { background: #1e3a5f; color: #fff; }
.slideshow-toggle { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.slideshow-toggle input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; }
.slideshow-file-row { display: block; margin: 10px 0; }
