/* "Glass" look for the Snappy app, matching the admin page (admin.html shell):
   frosted glass over a warm, blurred room, white cards for the numbers that
   matter, Snappy blue as the one accent. Layered on top of app.css + dark.css
   (dark mode is on underneath). Local preview only: prototypes/app-glass. */

html[data-glass][data-theme="dark"] {
  --bg: #1b1c20 !important;
  --bg-card: rgba(36, 38, 46, 0.66) !important;
  --frost-bg: rgba(36, 38, 46, 0.66) !important;
  --bg-glass: rgba(36, 38, 46, 0.66) !important;
  --bg-muted: rgba(255, 255, 255, 0.06) !important;
  --bg-inner: rgba(255, 255, 255, 0.06) !important;
  --dark-inner: rgba(255, 255, 255, 0.06) !important;
  --grey-1: rgba(255, 255, 255, 0.06) !important;
  --grey-2: rgba(255, 255, 255, 0.1) !important;
  --text: #f4f5f8 !important;
  --muted: #a3a8b5 !important;
  --border: rgba(255, 255, 255, 0.09) !important;
  --frost-border: rgba(255, 255, 255, 0.09) !important;
  --dark-inner-border: rgba(255, 255, 255, 0.09) !important;
  --radius: 22px !important;
  --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
  --g-glass: rgba(36, 38, 46, 0.66);
  --g-glass-2: rgba(60, 62, 72, 0.5);
  --g-blue: #2D7DD2;
  --g-card: #fff;
  --g-card-text: #14161c;
  --g-card-muted: #737987;
}

/* Snappy's own moving photo grid stays as the background; the glass sits over it. */
html[data-glass] body { background: #1b1c20 !important; }

/* Glass panels */
html[data-glass] header {
  background: rgba(30, 31, 37, 0.62) !important;
  backdrop-filter: blur(28px) saturate(1.3) !important; -webkit-backdrop-filter: blur(28px) saturate(1.3) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-glass] .main-card,
html[data-glass] #discoverPanel,
html[data-glass] .modal-card,
html[data-glass] .profile-card,
html[data-glass] .snappy-card,
html[data-glass] .install-banner {
  background: var(--g-glass) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 26px !important;
  backdrop-filter: blur(28px) saturate(1.3) !important; -webkit-backdrop-filter: blur(28px) saturate(1.3) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
html[data-glass] .modal-overlay { background: rgba(10, 10, 12, 0.55) !important; }

/* Tiles and rows inside the glass */
html[data-glass] .upload-action,
html[data-glass] .buy-check-strip,
html[data-glass] .listing-card {
  background: var(--g-glass-2) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 18px !important;
  transition: transform .25s, background .2s !important;
}
html[data-glass] .upload-action:hover,
html[data-glass] .buy-check-strip:hover { transform: translateY(-3px); background: rgba(80, 82, 92, 0.6) !important; }
html[data-glass] .listing-card:hover { transform: translateX(4px); background: rgba(80, 82, 92, 0.6) !important; }

/* The numbers that matter: white cards, like the admin page's hero cards */
html[data-glass] .hist-stat-chip {
  background: var(--g-card) !important; color: var(--g-card-text) !important;
  border: 0 !important; border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}
html[data-glass] .hist-stat-chip * { color: var(--g-card-muted) !important; }
html[data-glass] .hist-stat-chip strong { color: var(--g-card-text) !important; }

/* Tabs and buttons: one blue accent, pill shapes */
html[data-glass] .view-tab.active,
html[data-glass] .view-tab[aria-current="page"] {
  background: var(--g-blue) !important; color: #fff !important; border-color: transparent !important;
  box-shadow: 0 6px 20px rgba(45, 125, 210, 0.45) !important;
}
html[data-glass] .btn-upgrade, html[data-glass] #upgradeBtn, html[data-glass] .upgrade-btn {
  background: var(--g-blue) !important; color: #fff !important; box-shadow: 0 6px 20px rgba(45, 125, 210, 0.45) !important;
}

/* Inputs */
html[data-glass] input[type="text"], html[data-glass] input[type="search"], html[data-glass] input[type="email"],
html[data-glass] input[type="number"], html[data-glass] select, html[data-glass] textarea, html[data-glass] #histSearchInput {
  background: rgba(0, 0, 0, 0.28) !important; border: 1px solid rgba(255, 255, 255, 0.09) !important; border-radius: 14px !important;
}


/* Mobile bottom bar: the admin page's phone bar. A floating glass strip,
   every tab shows icon + label, and the open tab sits in a solid blue
   rounded block (no raised circle, no liquid bubble). */
html[data-glass] .bottom-tab-bar {
  left: 8px !important; right: 8px !important; bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  height: 66px !important; padding: 0 4px !important; gap: 2px !important; align-items: center !important;
  background: rgba(32, 33, 40, 0.9) !important; border: 1px solid rgba(255, 255, 255, 0.09) !important; border-radius: 22px !important;
  backdrop-filter: blur(28px) saturate(1.3) !important; -webkit-backdrop-filter: blur(28px) saturate(1.3) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
html[data-glass] .bottom-tab-bar .btab-shadow,
html[data-glass] .bottom-tab-bar .btab-goo,
html[data-glass] .bottom-tab-bar .btab-bubble,
html[data-glass] .bottom-tab-bar .btab-orb,
html[data-glass] .bottom-tab-bar .btab-dot,
html[data-glass] .bottom-tab::before { display: none !important; }
html[data-glass] .bottom-tab {
  flex: 1 1 0 !important; min-width: 0 !important; height: 54px !important; padding: 7px 0 5px !important; gap: 4px !important;
  border-radius: 14px !important; color: #a3a8b5 !important; transition: background .2s, color .2s !important;
}
html[data-glass] .bottom-tab .btab-icon,
html[data-glass] .bottom-tab.is-lifted .btab-icon,
html[data-glass] .bottom-tab.active .btab-icon { opacity: 1 !important; transform: none !important; width: 22px; height: 22px; }
html[data-glass] .bottom-tab .btab-label { font-size: 10.5px !important; font-weight: 600 !important; color: inherit !important; letter-spacing: 0 !important; }
html[data-glass] .bottom-tab.active {
  background: #2D7DD2 !important; color: #fff !important; box-shadow: 0 6px 20px rgba(45, 125, 210, 0.45) !important;
}
html[data-glass] .bottom-tab.active .btab-label { font-weight: 700 !important; }

/* The left rail itself lives in glass-shell.css (shared with every page). */
@media (min-width: 1100px) {
  /* Room for the rail; the header keeps only what the rail doesn't cover. */
  html[data-glass] body { padding-left: 96px !important; }
  html[data-glass] header { left: 96px !important; width: auto !important; right: 0 !important; }
  html[data-glass] header .logo,
  html[data-glass] #viewTabs,
  html[data-glass] #themeToggleBtn,
  html[data-glass] #shareAppBtn,
  html[data-glass] header a[href="/founders.html"],
  html[data-glass] #suggestBtn,
  html[data-glass] #reviewBtn,
  html[data-glass] #whatsNewBtn,
  html[data-glass] #headerUpgradeBtn { display: none !important; }
}
.g-hello { display: none; }
@media (min-width: 1100px) {
  html[data-glass] header .g-hello { display: flex; flex-direction: column; margin-right: auto; padding-left: 26px; line-height: 1.25; }
  .g-hello b { font-size: 19px; font-weight: 700; color: #f4f5f8; letter-spacing: -.01em; }
  .g-hello span { font-size: 12.5px; color: #a3a8b5; margin-top: 2px; }
}

/* ── Full pages (Upgrade, Reviews) instead of pop-ups ── */
.g-page { display: none; position: relative; z-index: 1; width: 100%; min-width: 0; box-sizing: border-box; max-width: 1080px; margin: 0 auto; padding: 84px 16px 110px; }
html.g-page-open .g-page { display: block; }
html.g-page-open #viewsSlider { display: none !important; }
@media (min-width: 1100px) { .g-page { padding-top: 96px; } }
@media (max-width: 1099px) { .g-page { padding-top: calc(100px + env(safe-area-inset-top, 0px)); } }
.g-page-bar { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.g-page-bar h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #f4f5f8; }
.g-back { border: 1px solid rgba(255,255,255,.12); background: rgba(36,38,46,.66); color: #f4f5f8; border-radius: 999px;
  padding: 8px 14px; font: 700 13px 'Plus Jakarta Sans', system-ui, sans-serif; cursor: pointer;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.g-back:hover { background: rgba(80,82,92,.7); }
.g-sec { display: none; }
.g-page[data-page="upgrade"] .g-sec-upgrade, .g-page[data-page="reviews"] .g-sec-reviews, .g-page[data-page="account"] .g-sec-account, .g-page[data-page="money"] .g-sec-money { display: block; }
/* Account: the account panel's own dashboard, as a page */
.g-acct { max-width: 640px; margin: 0 auto 18px; border-radius: 26px; overflow: hidden; font-size: 14px;
  border: 1px solid rgba(255,255,255,.09); box-shadow: 0 20px 60px rgba(0,0,0,.35); background: rgba(36,38,46,.66);
  backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3); }
.g-panel { background: rgba(36,38,46,.66); border: 1px solid rgba(255,255,255,.09); border-radius: 26px; padding: 26px;
  backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3);
  box-shadow: 0 20px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); margin-bottom: 18px; }
.g-panel h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: #f4f5f8; }
.g-panel .g-sub { margin: 0 0 16px; font-size: 13px; color: #a3a8b5; }
.g-sec-upgrade .g-panel { max-width: 640px; margin-left: auto; margin-right: auto; }
.g-sec-reviews .rv-scroll { max-height: none !important; overflow: visible !important; padding: 0 !important; }
.g-sec-reviews #reviewsViewWrite { display: none !important; }
.g-sec-reviews #reviewIntro button { display: none; }
@media (min-width: 900px) {
  .g-rv-write-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: start; }
}
.g-sec-reviews .rv-sum { background: rgba(60, 62, 72, 0.5) !important; border: 1px solid rgba(255,255,255,.07) !important; }
.g-sec-reviews .rv-avg b, .g-sec-reviews .rv-bar span { color: #f4f5f8 !important; }
.g-sec-reviews .rv-avg small { color: #a3a8b5 !important; }
.g-sec-reviews .rv-bar i { background: rgba(255,255,255,.1) !important; }
.g-sec-reviews .rv-body, .g-sec-reviews .rv-reply p { color: #dfe2ea !important; }
.g-sec-reviews .rv-disc { color: #a3a8b5 !important; }
.g-sec-reviews .rv-item { border-color: rgba(255,255,255,.08) !important; padding: 14px 4px !important; }

/* ── Money page: white number cards and chart, like the admin's Home ── */
.g-sec-money { max-width: 760px; margin: 0 auto; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.g-m-heroes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (min-width: 760px) { .g-m-heroes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.g-m-card, .g-m-white { background: #fff; color: #14161c; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.g-m-card { padding: 16px 16px 14px; min-height: 118px; display: flex; flex-direction: column; }
.g-m-lab { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 700; }
.g-m-lab i { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-style: normal; font-size: 15px; }
.g-m-lab i.t-green { background: #dcf5e6; } .g-m-lab i.t-blue { background: #dde9f9; } .g-m-lab i.t-red { background: #fde0e3; }
.g-m-lab i.t-amber { background: #fdefd2; } .g-m-lab i.t-violet { background: #ebe4fb; }
.g-m-val { font-size: 27px; font-weight: 800; letter-spacing: -.02em; margin-top: auto; padding-top: 10px; }
.g-m-sub { font-size: 12px; color: #737987; margin-top: 2px; }
.g-m-sub.down { color: #d33a4c; }
.g-m-white { padding: 18px 18px 14px; margin-bottom: 18px; }
.g-m-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.g-m-head span { font-weight: 800; color: #2D7DD2; }
.g-m-chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; margin: 14px 0 26px; border-bottom: 1px solid #e8eaef; }
.g-m-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.g-m-col i { width: 100%; max-width: 46px; border-radius: 10px 10px 4px 4px; background: #bcd5f1; }
.g-m-col.now i { background: #2D7DD2; }
.g-m-col em { font-style: normal; font-size: 11px; font-weight: 700; color: #4a5060; margin-bottom: 4px; white-space: nowrap; }
.g-m-col span { position: absolute; bottom: -22px; font-size: 11.5px; color: #737987; white-space: nowrap; }
.g-m-col.now span { color: #2D7DD2; font-weight: 700; }
.g-m-bar { display: grid; grid-template-columns: 84px 1fr 64px; gap: 10px; align-items: center; margin: 10px 0; font-size: 13.5px; color: #dfe2ea; }
.g-m-bar div { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.g-m-bar i { display: block; height: 100%; border-radius: 6px; background: #2D7DD2; }
.g-m-bar b { text-align: right; color: #f4f5f8; }
.g-m-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.07); }
.g-panel > h2 + .g-sub + .g-m-item, .g-panel > h2 + .g-m-item { border-top: 0; }
.g-m-img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; background: rgba(255,255,255,.08); }
.g-m-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.g-m-t b { font-size: 14px; color: #f4f5f8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-m-t span { font-size: 12px; color: #a3a8b5; }
.g-m-p { font-weight: 800; font-size: 15px; color: #f4f5f8; }
.g-m-p.sold { color: #4ade80; }
.g-m-btn { border: 0; border-radius: 999px; background: #2D7DD2; color: #fff; font: 700 14px 'Plus Jakarta Sans', system-ui, sans-serif;
  padding: 11px 18px; cursor: pointer; box-shadow: 0 6px 20px rgba(45,125,210,.45); flex: none; }
.g-m-btn.sm { padding: 8px 14px; font-size: 13px; }
.g-m-link { border: 0; background: none; padding: 0; color: #7fb3ea; font: inherit; font-weight: 700; cursor: pointer; }
.g-m-form { background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 14px; margin: 0 0 10px; }
.g-m-form label { display: block; font-size: 13px; font-weight: 700; color: #f4f5f8; }
.g-m-in { display: flex; align-items: center; gap: 6px; margin-top: 8px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 0 12px; }
.g-m-in span { color: #a3a8b5; font-weight: 700; font-size: 16px; }
.g-m-in input { flex: 1; min-width: 0; border: 0 !important; background: none !important; color: #fff; font: 700 18px 'Plus Jakarta Sans', system-ui, sans-serif; padding: 11px 0; outline: none; }
.g-m-q { font-size: 13px; font-weight: 700; color: #f4f5f8; margin: 12px 0 8px; }
.g-m-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.g-m-chips button { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #dfe2ea; border-radius: 999px; padding: 7px 12px;
  font: 600 12.5px 'Plus Jakarta Sans', system-ui, sans-serif; cursor: pointer; }
.g-m-chips button.on { background: #2D7DD2; border-color: #2D7DD2; color: #fff; }
.g-m-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 14px; }
.g-m-empty h2 { margin-bottom: 6px; }
/* Six tabs on phones: a little tighter */
@media (max-width: 1099px) {
  html[data-glass] .bottom-tab .btab-label { font-size: 9.5px !important; }
  .g-tabs button span { font-size: 9.5px; }
}

/* ── What's new: a labelled pill in the header ── */
html[data-glass] #whatsNewBtn.g-wn {
  display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; height: 36px; padding: 0 13px 0 11px !important;
  border-radius: 999px !important; background: rgba(45,125,210,.18) !important; border: 1px solid rgba(45,125,210,.55) !important;
  color: #fff !important; font: 700 13px 'Plus Jakarta Sans', system-ui, sans-serif !important; white-space: nowrap;
}
html[data-glass] #whatsNewBtn.g-wn.hidden { display: none !important; }
html[data-glass] #whatsNewBtn.g-wn .g-wn-ico { display: grid; place-items: center; color: #7fb3ea; }
html[data-glass] #whatsNewBtn.g-wn #whatsNewBadge { position: absolute; top: -2px; right: -2px; width: 10px !important; height: 10px !important; border: 2px solid #1e1f25; }
@media (min-width: 1100px) { html[data-glass] #whatsNewBtn.g-wn { display: inline-flex !important; } }

/* ── Greeting on phones (desktop has it in the top bar) ── */
.g-hello-m { display: none; }
@media (max-width: 1099px) {
  html[data-glass] .g-hello-m { display: flex; flex-direction: column; gap: 2px; padding: 0 4px 12px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; position: relative; z-index: 1; }
  .g-hello-m b { font-size: 23px; font-weight: 800; color: #f4f5f8; letter-spacing: -.02em; }
  .g-hello-m span { font-size: 13px; color: #a3a8b5; }
  html.g-page-open .g-hello-m { display: none; }
}

/* ── Suggestions inside the Reviews page ── */
#gSuggest textarea { min-height: 110px; }
#gSuggest #suggestSubmitBtn { border-radius: 999px !important; background: #2D7DD2 !important; box-shadow: 0 6px 20px rgba(45,125,210,.45); }

/* ── "Snappy has a new look" card ── */
.g-newlook { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 16px; background: rgba(8,9,12,.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: gFade .25s ease; }
.g-newlook-card { width: 100%; max-width: 420px; background: rgba(32,33,40,.96); border: 1px solid rgba(255,255,255,.1); border-radius: 26px; padding: 26px 22px 20px;
  color: #f4f5f8; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: gRise .35s cubic-bezier(.2,.7,.2,1); }
.g-newlook-badge { display: inline-block; background: #2D7DD2; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; box-shadow: 0 6px 20px rgba(45,125,210,.45); }
.g-newlook-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 12px 0 4px; color: #fff; }
.g-newlook-card p { margin: 0 0 14px; color: #a3a8b5; font-size: 14px; }
.g-newlook-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.g-newlook-card li { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 10px 12px; font-size: 13px; color: #cfd3dc; line-height: 1.4; }
.g-newlook-card li b { display: block; color: #fff; font-size: 14px; margin-bottom: 1px; }
.g-newlook-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 18px; }
.g-newlook-skip { border: 0; background: none; color: #a3a8b5; font: 700 14px 'Plus Jakarta Sans', system-ui, sans-serif; cursor: pointer; }
.g-newlook-go { border: 0; border-radius: 999px; background: #2D7DD2; color: #fff; font: 700 14px 'Plus Jakarta Sans', system-ui, sans-serif; padding: 12px 18px; cursor: pointer; box-shadow: 0 6px 20px rgba(45,125,210,.45); }
@keyframes gFade { from { opacity: 0; } }
@keyframes gRise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ── The tour: dark glass pop-ups, blue buttons ── */
.driver-popover.g-tour { background: rgba(32,33,40,.97) !important; color: #f4f5f8 !important; border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 20px !important; padding: 18px 18px 14px !important; box-shadow: 0 20px 60px rgba(0,0,0,.5) !important; max-width: 320px !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important; }
.driver-popover.g-tour .driver-popover-title { background: none !important; color: #fff !important; font-size: 17px !important; font-weight: 800 !important; padding: 0 !important; margin: 0 0 6px !important; box-shadow: none !important; border: 0 !important; }
.driver-popover.g-tour .driver-popover-description { color: #cfd3dc !important; font-size: 13.5px !important; line-height: 1.5 !important; }
.driver-popover.g-tour .driver-popover-description b { color: #fff; }
.driver-popover.g-tour .driver-popover-progress-text { color: #a3a8b5 !important; font-size: 12px !important; }
.driver-popover.g-tour .driver-popover-footer button { text-shadow: none !important; border-radius: 999px !important; font: 700 13px 'Plus Jakarta Sans', system-ui, sans-serif !important; padding: 8px 14px !important; }
.driver-popover.g-tour .driver-popover-next-btn { background: #2D7DD2 !important; color: #fff !important; border: 0 !important; box-shadow: 0 6px 20px rgba(45,125,210,.45) !important; }
.driver-popover.g-tour .driver-popover-prev-btn { background: rgba(255,255,255,.07) !important; color: #dfe2ea !important; border: 1px solid rgba(255,255,255,.12) !important; }
.driver-popover.g-tour .driver-popover-close-btn { color: #a3a8b5 !important; }
.driver-popover.g-tour .driver-popover-arrow { display: none !important; }

/* Tour: the tab being explained. It sits above the dark overlay, glows and
   has a bouncing arrow; the other tabs fade back. */
html[data-glass] .bottom-tab.g-tour-dim, .g-rail button.g-tour-dim { opacity: .35 !important; background: transparent !important; box-shadow: none !important; color: #a3a8b5 !important; }
html[data-glass] .bottom-tab.g-tour-hl, .g-rail button.g-tour-hl {
  background: #2D7DD2 !important; color: #fff !important; opacity: 1 !important; overflow: visible !important;
  animation: gTourPulse 1.4s ease-in-out infinite !important;
}
html[data-glass] .bottom-tab.g-tour-hl::after, .g-rail button.g-tour-hl::after {
  content: '▼'; position: absolute; left: 50%; top: -30px; transform: translateX(-50%); color: #fff; font-size: 20px;
  text-shadow: 0 2px 10px rgba(45,125,210,.9); animation: gTourBob .8s ease-in-out infinite alternate; pointer-events: none;
}
.g-rail button.g-tour-hl::after { content: '◀'; left: auto; right: -26px; top: 50%; transform: translateY(-50%); animation-name: gTourBobX; }
@keyframes gTourPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(45,125,210,.9), 0 6px 20px rgba(45,125,210,.6); } 50% { box-shadow: 0 0 0 9px rgba(45,125,210,0), 0 6px 26px rgba(45,125,210,.8); } }
@keyframes gTourBob { from { transform: translate(-50%, 0); } to { transform: translate(-50%, -7px); } }
@keyframes gTourBobX { from { transform: translate(0, -50%); } to { transform: translate(7px, -50%); } }
/* The bar comes up through the overlay while a tab step is showing */
html[data-glass] body:has(.g-tour-hl) .bottom-tab-bar, body:has(.g-rail .g-tour-hl) .g-rail { z-index: 100001 !important; }
/* Phone: tab pop-ups pinned above the bar, full width, never over it */
.driver-popover.g-tour.g-tour-tab {
  position: fixed !important; top: auto !important; left: 12px !important; right: 12px !important; max-width: none !important;
  bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
}
html[data-glass] body:has(.g-tour-hl) .bottom-tab-bar { overflow: visible !important; contain: none !important; }

/* The seasonal tip banner sits above the new bottom bar, not on it */
@media (max-width: 1099px) { html[data-glass] #seasonalAlertBanner { bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important; } }

/* The old spinning rainbow border shows through the glass as a stray diagonal
   line (its conic-gradient seam). The glass cards have their own edge, so it goes. */
html[data-glass] .main-card, html[data-glass] .main-card::before, html[data-glass] .main-card::after { animation: none !important; }
html[data-glass] .main-card { background: var(--g-glass) !important; }

/* ── Install Snappy button (home screen, phones and computers) ── */
.g-install { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto 14px; padding: 12px 14px;
  background: rgba(36,38,46,.66); border: 1px solid rgba(45,125,210,.45); border-radius: 18px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
html.g-page-open .g-install { display: none; }
.g-install-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(45,125,210,.2); font-size: 20px; }
.g-install-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.g-install-txt b { font-size: 14px; color: #f4f5f8; }
.g-install-txt span { font-size: 12px; color: #a3a8b5; }
.g-install-btn { flex: none; border: 0; border-radius: 999px; background: #2D7DD2; color: #fff; font: 700 13.5px 'Plus Jakarta Sans', system-ui, sans-serif;
  padding: 10px 16px; cursor: pointer; box-shadow: 0 6px 20px rgba(45,125,210,.45); }
@media (max-width: 1099px) { .g-install { margin: 0 0 12px; } }
.g-install-steps { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 10px; color: #cfd3dc; font-size: 14px; line-height: 1.45; }
.g-install-steps b { color: #fff; }

.g-install-steps li b { display: inline !important; margin: 0 !important; font-size: inherit !important; }
.g-install-steps li { display: list-item !important; }
/* Desktop tour: tab steps sit beside the rail, level with the tab (glass-extras.js sets the variables) */
.driver-popover.g-tour.g-tour-pin { position: fixed !important; left: var(--g-pin-left, 130px) !important; top: var(--g-pin-top, 80px) !important;
  right: auto !important; bottom: auto !important; }

/* Tour: the single button a step is about glows */
.g-tour-glow { position: relative; z-index: 100002 !important; border-radius: 999px; animation: gTourPulse 1.4s ease-in-out infinite !important; }
.logo.g-tour-glow { border-radius: 16px; }

/* ════════ Desktop polish (≥1100px). Phones are untouched. ════════ */

/* Header: the 📱 button says what it does */
html[data-glass] #headerQrBtn.g-qr-pill { display: inline-flex; align-items: center; gap: 6px; padding: 0 13px !important; height: 36px; border-radius: 999px;
  font: 700 13px 'Plus Jakarta Sans', system-ui, sans-serif; }
html[data-glass] #headerQrBtn.g-qr-pill.hidden { display: none !important; }
@media (max-width: 1099px) { html[data-glass] #headerQrBtn.g-qr-pill span { display: none; } }


@media (min-width: 1100px) {
  /* Room under the bottom-right Snappy button, and a compact button on full pages */
  html[data-glass] .g-page { padding-bottom: 140px !important; }
  html[data-glass] .page-main, html[data-glass] .history-panel-wrap { padding-bottom: 110px !important; }
  html.g-page-open .chat-fab-wrap .chat-fab-label, html.g-page-open .chat-fab-wrap .chat-fab-divider { display: none !important; }
  html.g-page-open .chat-speech-bubble { display: none !important; }

  /* Install card: same width as the cards below it */
  html[data-glass] .g-install { max-width: none; margin: 0 0 16px; }

  /* Upgrade: plans side by side, packs in a row */
  html[data-glass] .g-sec-upgrade .g-panel { max-width: 1000px; }
  html[data-glass] .g-up-subs { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px !important; align-items: stretch; }
  html[data-glass] .g-up-subs > div { height: 100%; box-sizing: border-box; }
  html[data-glass] .g-up-packs { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px !important; }

  /* Account: two columns, like the admin's home */
  html[data-glass] .g-acct { max-width: 1080px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  html[data-glass] .g-acct-col { min-width: 0; }
  html[data-glass] .g-acct-right { border-left: 1px solid rgba(255,255,255,.08); }
  html[data-glass] .g-acct-right .pd-body { padding-top: 20px; }

  /* Money: chart and "Sold any of these?" side by side */
  html[data-glass] .g-sec-money { max-width: 1120px; }
  html[data-glass] .g-page[data-page="money"] #gMoney { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
  html[data-glass] #gMoney > * { margin: 0 !important; min-width: 0; }
  html[data-glass] #gMoney .g-m-heroes { grid-column: 1 / -1; }
  html[data-glass] #gMoney .g-m-white, html[data-glass] #gMoney .g-m-where, html[data-glass] #gMoney .g-m-recent { grid-column: 1; }
  html[data-glass] #gMoney .g-m-sold { grid-column: 2; grid-row: 2 / span 3; }

  /* History: a grid of cards with big photos */
  html[data-glass] #histPanelContent { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  html[data-glass] #histPanelContent > :not(.listing-card) { grid-column: 1 / -1; }
  html[data-glass] #histPanelContent .listing-card { flex-direction: column; align-items: stretch; margin: 0 !important; padding: 10px 10px 12px !important; gap: 8px; }
  html[data-glass] #histPanelContent .listing-card > :first-child { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; border-radius: 12px !important; font-size: 54px !important; }
  html[data-glass] #histPanelContent .listing-card > :last-child { flex-direction: row !important; align-items: center !important; justify-content: space-between; }
  html[data-glass] #histPanelContent .listing-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

}

/* Home "Ready to generate": your latest listings, or how it works */
.g-recent { margin: 0 0 18px; }
.g-recent-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; color: #f4f5f8; }
.g-recent-all { border: 0; background: none; color: #7fb3ea; font: 700 13px 'Plus Jakarta Sans', system-ui, sans-serif; cursor: pointer; }
.g-recent-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; margin-bottom: 8px; border-radius: 14px; cursor: pointer; text-align: left;
  background: rgba(60,62,72,.5); border: 1px solid rgba(255,255,255,.07); color: #f4f5f8; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; transition: transform .2s, background .2s; }
.g-recent-item:hover { transform: translateX(4px); background: rgba(80,82,92,.6); }
.g-recent-item img, .g-recent-noimg { width: 46px; height: 46px; flex: none; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: rgba(255,255,255,.06); font-size: 22px; }
.g-recent-t { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-recent-p { flex: none; font-weight: 800; color: #4a9be6; }
.g-recent-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g-recent-how div { padding: 12px 10px; border-radius: 14px; background: rgba(60,62,72,.5); border: 1px solid rgba(255,255,255,.07); font-size: 12.5px; color: #cfd3dc; text-align: center; }
.g-recent-how b { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 6px; border-radius: 50%; background: #2D7DD2; color: #fff; font-size: 13px; }

/* Account columns are invisible on phones (same order as before) */
@media (max-width: 1099px) { .g-acct-col { display: contents; } }

/* The new look is dark-only: no light/dark switches */
html[data-glass] #themeToggleBtn, html[data-glass] #pdThemeRow { display: none !important; }

/* During the tour: no seasonal banner (it comes back when the tour ends) */
html.g-touring #seasonalAlertBanner { display: none !important; }
html:has(.g-newlook) #seasonalAlertBanner { display: none !important; }
