/* Site footer + FAB — shell-aware */

.site-footer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.shell-web-desktop .site-footer {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 48px;
}

.site-footer-card {
    background: var(--bg-card, #1c1d23);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 16px;
    box-sizing: border-box;
}

.site-footer-support-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.site-footer-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.site-footer-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 140, 255, 0.95), rgba(0, 212, 255, 0.85));
}

.site-footer-sub {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.65));
    line-height: 1.4;
}

.site-footer-cta {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 140, 255, 0.98), rgba(0, 180, 255, 0.9));
}

.site-footer-cta:active {
    transform: scale(0.98);
}

body.shell-web-desktop .site-footer-cta {
    max-width: 360px;
}

.site-footer-pay {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Single crypto card full width when fiat hidden */
.site-footer-pay-card {
    text-align: left;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    color: inherit;
}

.site-footer-pay-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.site-footer-coin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer-pay-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.site-footer-pay-sub {
    font-size: 0.85rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

.site-footer-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.site-footer-social-btn .site-footer-social-svg {
    display: block;
    flex-shrink: 0;
}

.site-footer-social-btn--telegram {
    background: #229ed9;
    border-color: transparent;
}

.site-footer-social-btn--vk {
    background: #0077ff;
    border-color: transparent;
}

.site-footer-social-btn--x {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.14);
}

.site-footer-social-btn--instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af);
    border-color: transparent;
}

.site-footer-social-btn:active {
    transform: scale(0.96);
}

.site-footer-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 4px 0;
}

.site-footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.35;
    min-width: 0;
}

.site-footer-age {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Extra room for FAB above bottom-nav */
body.shell-telegram .site-footer,
body.shell-web-mobile .site-footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

body.shell-telegram .main-content,
body.shell-web-mobile .main-content {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 10px)) !important;
}

body.shell-telegram.tg-desktop .main-content {
    padding-bottom: calc(100px + 48px + env(safe-area-inset-bottom, 0px)) !important;
}

/* ——— FAB ——— */
#site-fab-root {
    pointer-events: none;
}

.site-fab {
    position: fixed;
    right: max(12px, env(safe-area-inset-right, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

body.shell-telegram.tg-desktop .site-fab {
    bottom: calc(72px + 48px + env(safe-area-inset-bottom, 0px));
}

body.shell-web-desktop .site-fab {
    left: auto;
    right: max(24px, env(safe-area-inset-right, 0px));
    bottom: 24px;
    width: auto;
    gap: 10px;
    flex-direction: column-reverse;
}

.site-fab-btn {
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(28, 29, 35, 0.92);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.site-fab-btn--support {
    background: linear-gradient(135deg, rgba(0, 140, 255, 0.98), rgba(0, 180, 255, 0.9));
    border-color: transparent;
}

.site-fab-btn[hidden] {
    display: none !important;
}

@media (max-width: 390px) {
    .site-footer {
        padding-left: 12px;
        padding-right: 12px;
    }
    .site-footer-title {
        font-size: 1.05rem;
    }
    .site-footer-cta {
        padding: 12px 14px;
        font-size: 14px;
    }
}
