/* Beggy viral layer styles (ghost orders, leaderboard, reveal extras) */
.hero-ghost-btn, .rv-ghost-btn, .rv-join-btn, .gh-copy, .gh-own-btn {
  font-family: var(--font-family); cursor: pointer; border-radius: var(--radius-md);
}
.hero-ghost-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 100%; max-width: 420px; margin: 12px auto 0; padding: 14px 18px; border: none;
  background: linear-gradient(135deg, #7C3AED, #4F46E5); color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35); transition: transform 0.15s ease;
}
.hero-ghost-btn .hg-main { font-size: 1.1rem; font-weight: 800; }
.hero-ghost-btn .hg-sub { font-size: 0.8rem; font-weight: 600; opacity: 0.85; }
.hero-ghost-btn:hover { transform: translateY(-1px); }
.hero-ghost-btn:active { transform: scale(0.98); }
.pdm-ghost-btn { margin: 14px 0 4px; }

/* Stop the page from scrolling sideways on phones (chip row + off-screen cart drawer) */
html, body { overflow-x: clip; }

.rv-ghost-btn {
  width: 100%; margin-bottom: 14px; padding: 16px; border: none; font-size: 1rem; font-weight: 800;
  background: linear-gradient(135deg, #7C3AED, #4F46E5); color: #fff; box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}
.rv-join-btn {
  width: 100%; margin: 8px 0 12px; padding: 12px; font-size: 0.9rem; font-weight: 700;
  background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border-bright);
}
.rv-join-btn:disabled { opacity: 0.7; cursor: default; }
.rv-stats {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0 4px;
  font-size: 0.85rem; font-weight: 700; color: var(--beggy-orange);
}

/* Ghost modal */
.gh-overlay {
  position: fixed; inset: 0; z-index: 9999; background: var(--modal-backdrop);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.gh-card {
  position: relative; width: 100%; max-width: 420px; max-height: 92vh; overflow-y: auto;
  background: var(--bg-card); color: var(--text-main); border-radius: var(--radius-xl);
  padding: 24px 20px; box-shadow: var(--card-shadow); border: 1px solid var(--border-color);
}
.gh-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 1.6rem; color: var(--text-muted); cursor: pointer; }
.gh-tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: #7C3AED; background: rgba(124, 58, 237, 0.12); padding: 4px 10px; border-radius: 999px; }
.gh-title { margin: 10px 0 6px; font-size: 1.3rem; font-weight: 800; }
.gh-sub { margin: 0 0 14px; font-size: 0.88rem; color: var(--text-sub); }
.gh-label { display: block; margin: 10px 0 4px; font-size: 0.8rem; font-weight: 700; color: var(--text-sub); }
.gh-input {
  width: 100%; box-sizing: border-box; padding: 11px 12px; font-size: 1rem; font-family: var(--font-family);
  background: var(--input-bg); color: var(--text-main); border: 1px solid var(--border-bright); border-radius: var(--radius-sm);
}
.gh-send {
  display: block; margin-top: 16px; padding: 14px; text-align: center; text-decoration: none;
  background: #25D366; color: #fff; font-weight: 800; border-radius: var(--radius-md);
}
.gh-send.disabled { opacity: 0.45; pointer-events: none; }
.gh-copy { width: 100%; margin-top: 8px; padding: 11px; background: transparent; border: 1px solid var(--border-bright); color: var(--text-main); font-weight: 700; }
.gh-copy:disabled { opacity: 0.45; }
.gh-foot { margin: 12px 0 0; font-size: 0.75rem; color: var(--text-muted); text-align: center; }

/* Ghost arrival (receiver) */
.gh-arrival { display: flex; justify-content: center; padding: 28px 16px; }
.gh-arrival-card {
  width: 100%; max-width: 460px; background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-xl); padding: 26px 22px; box-shadow: var(--card-shadow); text-align: center;
}
.gh-arrival-card .gh-tag { color: var(--beggy-green); background: var(--beggy-green-glow); }
.gh-arrival-title { font-size: 1.5rem; font-weight: 800; line-height: 1.25; margin: 14px 0 18px; color: var(--text-main); }
.gh-arrival-title span { color: var(--beggy-orange); }
.gh-receipt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; text-align: left; }
.gh-receipt div { background: var(--bg-card-hover); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; }
.gh-receipt span { font-size: 0.72rem; color: var(--text-muted); }
.gh-receipt strong { font-size: 0.95rem; color: var(--text-main); }
.gh-track-btn {
  width: 100%; padding: 16px; border: none; border-radius: var(--radius-md); cursor: pointer;
  background: var(--beggy-orange); color: #fff; font-size: 1.05rem; font-weight: 800; font-family: var(--font-family);
}

/* Ghost reveal (receiver) */
.gh-reveal {
  position: fixed; inset: 0; z-index: 9990; background: #05060A; color: #F8FAFC;
  display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center;
}
.gh-reveal-inner { max-width: 440px; }
.gh-reveal-emoji { font-size: 4rem; }
.gh-reveal-title { font-size: 2.1rem; font-weight: 800; margin: 8px 0 12px; }
.gh-reveal-sub { font-size: 1.05rem; color: #CBD5E1; margin: 0 0 12px; }
.gh-reveal-note { font-size: 0.92rem; color: #94A3B8; margin: 0 0 22px; }
.gh-back-btn {
  width: 100%; padding: 16px; border: none; border-radius: 12px; cursor: pointer; font-family: var(--font-family);
  background: linear-gradient(135deg, #7C3AED, #4F46E5); color: #fff; font-size: 1.05rem; font-weight: 800;
}
.gh-own-btn { width: 100%; margin-top: 10px; padding: 13px; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #F8FAFC; font-weight: 700; }

/* Leaderboard */
.lb-section { max-width: 560px; margin: 8px auto 20px; padding: 18px 18px 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--card-shadow); }
.lb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lb-title { font-size: 1.05rem; font-weight: 800; margin: 0; color: var(--text-main); }
.lb-tabs { display: flex; gap: 6px; }
.lb-tab { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-bright); background: var(--chip-bg); color: var(--text-sub); font-size: 0.8rem; font-weight: 700; cursor: pointer; font-family: var(--font-family); }
.lb-tab.active { background: var(--beggy-orange); border-color: var(--beggy-orange); color: #fff; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border-color); }
.lb-row:last-child { border-bottom: none; }
.lb-rank { width: 22px; font-weight: 800; color: var(--text-muted); }
.lb-name { flex: 1; font-weight: 700; color: var(--text-main); }
.lb-amt { font-weight: 800; color: var(--beggy-green); }
.lb-empty, .lb-foot { font-size: 0.8rem; color: var(--text-muted); margin: 6px 0; text-align: center; }

/* Zepto banner stays out of the way of popups and ride screens */
.zsb-banner.zsb-hidden-busy { display: none !important; }
