/* Fleep Casino — футер (единый стиль с sidebar) */

body.fleep-ui .casino-footer.fleep-footer,
body.fleep-ui .casino-footer.fleep-footer * {
    color: inherit;
}

body.fleep-ui .casino-footer.fleep-footer {
    position: relative;
    background: var(--fleep-bg) !important;
    background-image: none !important;
    border: none !important;
    border-top: 1px solid var(--fleep-divider, #383C41) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--fleep-text-muted) !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
}

body.fleep-ui .casino-footer.fleep-footer::before,
body.fleep-ui .casino-footer.fleep-footer::after {
    display: none !important;
    content: none !important;
}

body.fleep-ui .casino-footer.fleep-footer a:not(.fleep-footer__contact-action):not(.fleep-footer__tg-btn) {
    color: var(--fleep-link, #AEB4BA) !important;
}

body.fleep-ui .casino-footer.fleep-footer .footer-inner,
body.fleep-ui .casino-footer.fleep-footer .fleep-footer__inner {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100%;
    max-width: var(--fleep-content-max);
    margin: 0 auto;
    padding: 40px var(--fleep-content-pad) calc(40px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

@media (min-width: 768px) {
    html body.fleep-ui #casinoFooter.casino-footer.fleep-footer {
        margin-left: var(--fleep-sidebar-w) !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: calc(100% - var(--fleep-sidebar-w)) !important;
        max-width: none !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    html body.fleep-ui.fleep-sidebar-collapsed #casinoFooter.casino-footer.fleep-footer,
    html body.fleep-ui.sidebar-collapsed #casinoFooter.casino-footer.fleep-footer {
        margin-left: var(--fleep-sidebar-collapsed, 72px) !important;
        width: calc(100% - var(--fleep-sidebar-collapsed, 72px)) !important;
    }

    html body.fleep-ui #casinoFooter.casino-footer.fleep-footer .footer-inner,
    html body.fleep-ui #casinoFooter.casino-footer.fleep-footer .fleep-footer__inner {
        padding-left: var(--fleep-content-pad, 60px);
        padding-right: var(--fleep-content-pad, 60px);
    }
}

.fleep-footer {
    display: flex;
    flex-direction: column;
    gap: 28px;
    font-family: var(--fleep-font);
    color: var(--fleep-text-muted);
}

/* ——— Шапка ——— */
.fleep-footer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--fleep-divider, #383C41);
}

.fleep-footer__brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.fleep-footer__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(200px, 42vw);
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
}

.fleep-footer__scroll-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: var(--fleep-radius-ui, 10px);
    background: var(--fleep-panel-bg, #262628);
    color: var(--fleep-link, #AEB4BA) !important;
    font-size: var(--fleep-body-size, 14px);
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    transition: background 0.15s ease, color 0.15s ease;
}

.fleep-footer__scroll-top svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: currentColor;
}

.fleep-footer__scroll-top:hover {
    color: var(--fleep-text) !important;
    background: var(--fleep-panel-hover, #2e3034);
}

/* ——— Навигация ——— */
.fleep-footer__nav {
    display: grid;
    grid-template-columns: repeat(var(--fleep-footer-nav-cols, 4), minmax(0, 1fr));
    gap: 24px 40px;
    align-items: start;
    width: 100%;
}

.fleep-footer__nav-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.fleep-footer__col-toggle {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    font: inherit;
    color: inherit;
}

.fleep-footer__col-heading {
    display: block;
    margin: 0 0 10px 4px;
    padding: 0;
    border: none;
    font-size: var(--fleep-label-size, 11px);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fleep-text-muted) !important;
    line-height: 16px;
}

.fleep-footer__col-chevron {
    display: none;
}

.fleep-footer__col-panel {
    display: block;
}

@media (min-width: 1024px) {
    .fleep-footer__col-toggle {
        display: block;
        cursor: default;
        pointer-events: none;
    }

    .fleep-footer__col-heading {
        margin: 0 0 12px 0;
    }
}

.fleep-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fleep-footer__links a {
    display: block;
    padding: 6px 8px;
    border-radius: var(--fleep-radius-ui, 10px);
    color: var(--fleep-link, #AEB4BA) !important;
    text-decoration: none;
    font-size: var(--fleep-body-size, 14px);
    font-weight: 500;
    line-height: 20px;
    transition: background 0.15s ease, color 0.15s ease;
}

.fleep-footer__links a:hover {
    color: var(--fleep-text) !important;
    background: rgba(255, 255, 255, 0.05);
}

.fleep-footer__col--docs .fleep-footer__links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

@media (min-width: 1280px) {
    .fleep-footer__nav--docs-wide .fleep-footer__col--docs {
        grid-column: span 2;
    }

    .fleep-footer__nav--docs-wide .fleep-footer__col--docs .fleep-footer__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 24px;
    }
}

@media (max-width: 1023px) {
    .fleep-footer__nav {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .fleep-footer__nav-col {
        border: none;
        border-radius: var(--fleep-radius-ui, 10px);
        background: var(--fleep-panel-bg, #262628);
        overflow: hidden;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    }

    .fleep-footer__col-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
        cursor: pointer;
        transition: background 0.15s ease;
    }

    .fleep-footer__col-toggle:hover,
    .fleep-footer__col-toggle:focus-visible {
        background: var(--fleep-panel-hover, #2e3034);
        outline: none;
    }

    .fleep-footer__col-toggle[aria-expanded="true"] {
        background: var(--fleep-active-bg, rgba(217, 16, 0, 0.14));
    }

    .fleep-footer__col-heading {
        margin: 0;
        font-size: var(--fleep-body-size, 14px);
        letter-spacing: 0.02em;
        text-transform: none;
        color: var(--fleep-text) !important;
    }

    .fleep-footer__col-chevron {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: var(--fleep-surface, #1D1E20);
        color: var(--fleep-text-muted);
        transition: transform 0.2s ease, background 0.15s ease;
    }

    .fleep-footer__col-chevron svg {
        width: 16px;
        height: 16px;
    }

    .fleep-footer__col-toggle[aria-expanded="true"] .fleep-footer__col-chevron {
        transform: rotate(180deg);
        background: var(--fleep-active-icon-bg, rgba(217, 16, 0, 0.22));
        color: var(--fleep-text);
    }

    .fleep-footer__col-panel {
        display: none;
        padding: 0 8px 10px;
    }

    .fleep-footer__col-panel.is-open {
        display: block;
    }

    .fleep-footer__col--docs .fleep-footer__links {
        grid-template-columns: 1fr;
    }
}

/* ——— Контактные блоки (как providers в sidebar) ——— */
.fleep-footer__contact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.fleep-footer__contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: none;
    border-radius: var(--fleep-radius-ui, 10px);
    background: var(--fleep-panel-bg, #262628);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

a.fleep-footer__contact:hover,
.fleep-footer__contact--support:hover {
    background: var(--fleep-panel-hover, #2e3034);
}

.fleep-footer__contact-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--fleep-surface, #1D1E20);
    color: var(--fleep-red, #D91000) !important;
}

.fleep-footer__contact-icon svg {
    width: 18px;
    height: 18px;
}

.fleep-footer__contact-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fleep-footer__contact-title {
    font-size: var(--fleep-body-size, 14px);
    font-weight: 500;
    color: var(--fleep-text) !important;
    line-height: 20px;
}

.fleep-footer__contact-desc {
    font-size: 12px;
    line-height: 16px;
    color: var(--fleep-text-muted) !important;
}

.fleep-footer__contact-meta {
    font-size: 12px;
    font-weight: 500;
    color: var(--fleep-link, #AEB4BA) !important;
    text-decoration: none;
    word-break: break-all;
}

.fleep-footer__contact-meta:hover {
    color: var(--fleep-text) !important;
}

.fleep-footer__contact-action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    border: none;
    background: var(--fleep-surface, #1D1E20);
    color: var(--fleep-text) !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.15s ease;
}

.fleep-footer__contact-action:hover {
    background: var(--fleep-panel-hover, #2e3034);
}

.fleep-footer__contact--affiliate .fleep-footer__contact-action {
    background: var(--fleep-red);
    color: #fff !important;
}

a.fleep-footer__contact--affiliate:hover .fleep-footer__contact-action,
.fleep-footer__contact--affiliate .fleep-footer__contact-action:hover {
    background: var(--fleep-red-light);
}

/* ——— Telegram (нейтральная панель Fleep) ——— */
.fleep-footer__tg {
    position: relative;
    overflow: hidden;
    border-radius: var(--fleep-radius-ui, 10px);
    border: none;
    background: var(--fleep-panel-bg, #262628);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
}

.fleep-footer__tg-glow {
    display: none;
}

.fleep-footer__tg-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
}

.fleep-footer__tg-copy {
    flex: 1;
    min-width: 0;
}

.fleep-footer__tg-kicker {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 0;
    font-size: var(--fleep-label-size, 11px);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fleep-text-muted) !important;
    background: none;
}

.fleep-footer__tg-title {
    margin: 0 0 4px;
    font-size: var(--fleep-body-size, 14px);
    font-weight: 500;
    color: var(--fleep-text) !important;
    line-height: 20px;
}

.fleep-footer__tg-desc {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 16px;
    color: var(--fleep-text-muted) !important;
    max-width: 42ch;
}

.fleep-footer__tg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    border: none;
    background: var(--fleep-red);
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.15s ease;
}

.fleep-footer__tg-btn:hover {
    background: var(--fleep-red-light);
}

.fleep-footer__tg-btn--disabled {
    opacity: 0.55;
    pointer-events: none;
}

.fleep-footer__tg-btn svg {
    width: 16px;
    height: 16px;
}

.fleep-footer__tg-art {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--fleep-surface, #1D1E20);
    color: var(--fleep-red, #D91000);
    box-shadow: none;
}

.fleep-footer__tg-art svg {
    width: 22px;
    height: 22px;
}

/* ——— Соцсети (как в sidebar) ——— */
.fleep-footer__social-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.fleep-footer__social-label {
    margin: 0 0 0 4px;
    font-size: var(--fleep-label-size, 11px);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fleep-text-muted) !important;
    line-height: 16px;
}

.fleep-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fleep-footer__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--fleep-panel-bg, #262628);
    color: var(--fleep-red, #D91000) !important;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.fleep-footer__social-btn svg {
    width: 18px;
    height: 18px;
}

.fleep-footer__social-btn:hover {
    color: var(--fleep-red-light) !important;
    background: var(--fleep-panel-hover, #2e3034);
}

/* ——— Партнёры и платежи ——— */
.fleep-footer__partners,
.fleep-footer__payments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fleep-footer__partner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    max-width: 140px;
    height: 40px;
    padding: 6px 12px;
    border-radius: var(--fleep-radius-ui, 10px);
    border: none;
    background: var(--fleep-panel-bg, #262628);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: background 0.15s ease;
}

.fleep-footer__partner:hover {
    background: var(--fleep-panel-hover, #2e3034);
}

.fleep-footer__partner-logo {
    display: block;
    max-width: 100%;
    max-height: 28px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.fleep-footer__payment {
    padding: 8px 12px;
    border-radius: var(--fleep-radius-ui, 10px);
    border: none;
    background: var(--fleep-panel-bg, #262628);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
    font-size: 12px;
    font-weight: 500;
    color: var(--fleep-link, #AEB4BA) !important;
}

/* ——— Trust badges ——— */
.fleep-footer__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fleep-footer__trust-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: var(--fleep-radius-ui, 10px);
    border: 1px solid var(--fleep-divider, #383C41);
    background: var(--fleep-surface, #1D1E20);
    color: var(--fleep-link, #AEB4BA) !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

a.fleep-footer__trust-item:hover {
    background: var(--fleep-panel-hover, #2e3034);
    color: var(--fleep-text) !important;
}

/* ——— Crypto rates ticker ——— */
body.fleep-ui .casino-footer.fleep-footer .fleep-footer__rates,
body.fleep-ui .casino-footer.fleep-footer .crypto-fiat-footer-rates {
    border-bottom: 1px solid var(--fleep-divider, #383C41);
    background: var(--fleep-surface, #1D1E20);
}

body.fleep-ui .casino-footer.fleep-footer .crypto-fiat-footer-rates__inner {
    max-width: var(--fleep-content-max, 1560px);
    margin: 0 auto;
    padding: 10px var(--fleep-content-pad, 60px);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 12px;
    color: var(--fleep-text-muted, #83898E);
    box-sizing: border-box;
}

body.fleep-ui .casino-footer.fleep-footer .crypto-fiat-footer-rates__pair {
    font-weight: 600;
    color: var(--fleep-text, #fff);
    margin-right: 4px;
}

body.fleep-ui .casino-footer.fleep-footer .crypto-fiat-footer-rates__val {
    font-variant-numeric: tabular-nums;
    color: var(--fleep-link, #AEB4BA);
}

/* ——— Юридический блок ——— */
.fleep-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid var(--fleep-divider, #383C41);
    box-sizing: border-box;
}

.fleep-footer__age {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 56px;
}

.fleep-footer__age-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: none;
    background: var(--fleep-panel-bg, #262628);
    color: var(--fleep-text-muted) !important;
    font-size: 13px;
    font-weight: 700;
}

.fleep-footer__age-caption {
    font-size: 10px;
    text-align: center;
    color: var(--fleep-text-muted) !important;
    max-width: 72px;
    line-height: 1.3;
}

.fleep-footer__legal-text {
    flex: 1 1 280px;
    min-width: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fleep-footer__legal-p,
.fleep-footer__copyright {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--fleep-text-muted) !important;
}

.fleep-footer__copyright {
    color: var(--fleep-link, #AEB4BA) !important;
}

/* ——— Адаптив ——— */
@media (max-width: 1023px) {
    body.fleep-ui .casino-footer.fleep-footer .fleep-footer__inner {
        padding: 32px 16px calc(32px + env(safe-area-inset-bottom, 0px));
    }

    .fleep-footer__contact-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body.fleep-ui.fleep-is-auth .casino-footer.fleep-footer .fleep-footer__inner,
    body.fleep-ui.fleep-is-guest .casino-footer.fleep-footer .fleep-footer__inner {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    .fleep-footer {
        gap: 24px;
    }

    .fleep-footer__head {
        padding-bottom: 16px;
    }

    .fleep-footer__scroll-top span {
        display: none;
    }

    .fleep-footer__scroll-top {
        width: 40px;
        padding: 0;
    }

    .fleep-footer__contact {
        flex-wrap: wrap;
    }

    .fleep-footer__contact-action {
        width: 100%;
    }

    .fleep-footer__tg-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .fleep-footer__tg-art {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }

    .fleep-footer__tg-art svg {
        width: 20px;
        height: 20px;
    }

    .fleep-footer__tg-copy {
        padding-right: 48px;
    }

    .fleep-footer__legal {
        flex-direction: column;
        gap: 16px;
    }
}

body.fleep-ui .fleep-footer .footer-promo-row,
body.fleep-ui .fleep-footer .footer-mid-row,
body.fleep-ui .fleep-footer .footer-main-grid,
body.fleep-ui .fleep-footer .footer-trust,
body.fleep-ui .fleep-footer .footer-age-block {
    display: none !important;
}
