
/* V28c: enforce clickable UI + spacing + hide hero */
:root{ --gap: 10px; }
body{ padding-bottom: 88px !important; }
/* kill big hero title/subtitle */
h1, h2 { margin: 8px 0; }
h1.hero, h2.hero, .hero-title, .hero-sub, .site-title, .tagline {
  display:none !important;
}
/* balance top buttons */
.top-cta-bar{ display:flex; gap:var(--gap); flex-wrap:wrap; margin:8px 0 12px 0; }
.top-cta-bar .btn{ margin:0; }
.section{ margin: 12px auto; }
/* Single WhatsApp FAB */
#waFab{ position:fixed; right:max(16px,env(safe-area-inset-right)); bottom:calc(16px + env(safe-area-inset-bottom));
  width:56px;height:56px;border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:#25D366; color:#fff; text-decoration:none; box-shadow:0 10px 24px rgba(0,0,0,.35); z-index:9999; font-size:0; }
#waFab .ic{ font-size:28px; line-height:1 }
/* Remove legacy WA */
.whatsapp, .waButton, .whatsapp-btn, .whatsapp-cta, a.btn-whatsapp{ display:none !important; }
/* Make sure nothing blocks taps */
*[data-overlay], .overlay, .glass, .cover { pointer-events:none !important; }
button, a, input, .btn { pointer-events:auto !important; position:relative; z-index:2; }


/* V28d: more breathing room + grid for top CTAs */
body{ padding-bottom: 96px !important; padding-top: 8px !important; }
.top-cta-bar{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; margin:8px 12px; }
@media (min-width: 640px){ .top-cta-bar{ grid-template-columns: repeat(4, minmax(0,1fr)); } }
.section{ margin: 14px 12px; }

/* Make sections spaced and centered */
.section .btn{ width: 100%; justify-content:center; }

/* Hide any duplicate sign-in badges in-page; we keep fixed button */
button.signin-duplicate, a.signin-duplicate { display:none !important; }


/* V28e: sticky bottom action dock */
:root{ --dock-pad: 10px; }
#actionDock{
  position: fixed; left: max(12px, env(safe-area-inset-left));
  right: max(80px, env(safe-area-inset-right) + 64px);
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px;
  z-index: 9998;
}
#actionDock .btn{ width: 100%; justify-content: center; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
@media (max-width: 380px){
  #actionDock{ grid-template-columns: repeat(2, minmax(0,1fr)); right: max(76px, env(safe-area-inset-right) + 64px); }
}
/* Make top area roomy */
.header, nav, .top-cta-bar{ margin-bottom: 8px !important; }
body{ padding-bottom: 150px !important; } /* more gap for dock + WA */


/* === Mobile overlap fixes (2025-08-22) === */
:root{ --header-h:64px; }

/* Safe sticky app header */
.app-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-top: max(8px, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(10,6,20,.95), rgba(10,6,20,.86));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Give body space so content doesn't hide behind header / bottom dock */
body.app-body{
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

/* Right-side dev links inside header: hide on small screens to avoid crowding */
.app-header .dev-links{ display:none; }
@media (min-width: 768px){
  .app-header .dev-links{ display:flex; gap:12px; align-items:center; }
}

/* Horizontal top nav below header, scrollable instead of wrapping */
.top-nav{
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top));
  z-index: 999;
  overflow-x: auto;
  white-space: nowrap;
  padding: 8px 12px;
  margin: 0;
  gap: 10px;
  background: radial-gradient(120% 120% at 50% -20%, rgba(255,255,255,.06), rgba(255,255,255,0));
  -webkit-overflow-scrolling: touch;
}
.top-nav::-webkit-scrollbar{ display:none; }

/* Ensure the Google sign-in button is always clickable & visible */
#googleSignIn, #googleSignOut{ position: relative; z-index: 1100; }
.quick-actions{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

/* WhatsApp FAB: bottom-right with safe-area, never duplicate */
#waFab{
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 26px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(45,246,138,.85), rgba(45,246,138,.65));
  box-shadow: 0 10px 28px rgba(45,246,138,.28);
}

/* Bottom dock spacing helpers, if present */
.bottom-dock{ padding-bottom: env(safe-area-inset-bottom); }

/* Hide duplicate IDs if some were left in markup */
[data-dup="true"]{ display:none !important; }

/* --- AI Tools --- */
.ai-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:6px; }
.ai-card{
  border-radius:14px;
  padding:14px 12px;
  font-weight:700;
  backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.10);
  background: radial-gradient(120% 120% at 50% -20%, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow: 0 8px 26px rgba(0,0,0,.25), 0 0 18px rgba(136, 93, 255, .15) inset;
  text-align:left;
}
.ai-card:active{ transform: translateY(1px); }
.ai-output{ position:fixed; inset:0; backdrop-filter: blur(12px); background:rgba(10,6,20,.55); z-index:1200; display:flex; align-items:center; justify-content:center; }
.ai-output-inner{ width:min(720px,92vw); max-height:80vh; overflow:auto; padding:16px; border-radius:16px; background:rgba(15,10,25,.92); border:1px solid rgba(255,255,255,.08); }
#aiText{ white-space:pre-wrap; font-family: ui-sans-serif, system-ui; line-height:1.4; }
@media (max-width:420px){ .ai-grid{ grid-template-columns:1fr; } }




/* === Ask GlowUp (Conversation-first) === */
.ask-glow .ask-form{
  display:flex; gap:8px; align-items:center; 
  background: rgba(255,255,255,.06);
  padding:10px; border-radius:12px; border:1px solid rgba(255,255,255,.10);
}
.ask-glow #askInput{
  flex:1; background: transparent; border:none; outline:none; 
  font-size:16px; color:#fff; padding:10px 8px;
}
.ask-glow #askSend{ white-space:nowrap; }
.ask-chips{ margin-top:10px; }
.ask-stream{ margin-top:12px; display:flex; flex-direction:column; gap:10px; }
.msg{ padding:12px; border-radius:12px; line-height:1.45; white-space:pre-wrap; }
.msg.user{ align-self:flex-end; background: rgba(136,93,255,.15); border:1px solid rgba(136,93,255,.35); }
.msg.ai{ align-self:flex-start; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10); }
.msg .muted{ opacity:.8; font-size:.9em; }

/* --- Attention Glow --- */
@keyframes glowPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 110, 180, 0.0); }
  100% { box-shadow: 0 0 22px 6px rgba(255, 110, 180, 0.55); }
}
.glow-attn { animation: glowPulse 700ms ease-in-out 0s 4 alternate; }
.toast{ position: fixed; left:50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: rgba(15,10,25,.92); border:1px solid rgba(255,255,255,.12); padding:10px 14px; border-radius:12px; z-index:2000;}


/* === Smart Greeting (proactive) === */
.smart-greet .greet-card{
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  padding:14px; border-radius:14px;
  background: radial-gradient(120% 120% at 50% -20%, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 10px 28px rgba(0,0,0,.25), 0 0 20px rgba(136,93,255,.15) inset;
}
.smart-greet .greet-title{ font-weight:800; font-size:18px; margin-bottom:4px; }
.smart-greet .greet-sub{ opacity:.9; font-size:14px; }
.smart-greet .greet-actions{ display:flex; gap:8px; flex-shrink:0; }
@media (max-width:480px){
  .smart-greet .greet-card{ flex-direction:column; align-items:flex-start; }
  .smart-greet .greet-actions{ align-self:stretch; }
}


/* --- Tonight near you --- */
.tonight{ margin-top:10px; border-top:1px dashed rgba(255,255,255,.15); padding-top:10px; }
.tonight-title{ font-weight:800; margin-bottom:6px; }
.tonight-list{ list-style:none; padding:0; margin:0 0 6px 0; display:grid; gap:6px; }
.tonight-list li{ font-size:14px; opacity:.95; }
