/* Floating "Sign up" button (templates/partials/signup_fab.html). Glass pill with a gold edge, like the nav.
   z-index 900: under the nav (1000), the cookie banner (1000), the mobile menu (1500+) and the whimsy toasts (9000).
   --hcg-fab-lift is set by static/js/signup-fab.js to the cookie banner's height while the banner is open. */
.hcg-fab {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom) + var(--hcg-fab-lift, 0px));
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 48px;
    min-height: 48px;
    padding: 0 20px 0 16px;
    border-radius: 9999px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1;
    color: #FEFCF0;
    text-decoration: none;
    background: rgba(11, 15, 20, 0.78);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(161, 141, 95, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 22px rgba(225, 0, 102, 0.16);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s, bottom 0.3s ease,
                border-color 0.2s ease, box-shadow 0.2s ease;
}
.hcg-fab-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #C9B27A;
}
.hcg-fab:hover {
    border-color: rgba(225, 0, 102, 0.6);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 30px rgba(225, 0, 102, 0.32);
}
.hcg-fab:focus { outline: none; }
.hcg-fab:focus-visible {
    outline: 3px solid #00AAFF;
    outline-offset: 3px;
}
/* Hidden while the signup form is on screen or after a signup: out of view, out of the tab order. */
.hcg-fab.is-hidden {
    opacity: 0;
    transform: translateY(12px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s, bottom 0.3s ease;
}
.hcg-fab-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Room under the footer so the last line can scroll clear of the button. */
.hcg-fab-spacer { height: 80px; }

@media (max-width: 480px) {
    .hcg-fab {
        right: max(12px, env(safe-area-inset-right));
        bottom: calc(12px + env(safe-area-inset-bottom) + var(--hcg-fab-lift, 0px));
        padding: 0 16px 0 14px;
        font-size: 0.9rem;
    }
    .hcg-fab-spacer { height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
    .hcg-fab, .hcg-fab.is-hidden { transition: none; }
    .hcg-fab.is-hidden { transform: none; }
}
@media print {
    .hcg-fab, .hcg-fab-spacer { display: none !important; }
}
