/* Fleep page-specific: Home, Games catalog, modals, footer */

/* --- Hero slider (Slider b) --- */
body.fleep-ui {
    --home-mini-promo-desktop-h: var(--fleep-hero-h);
}

body.fleep-ui .home-banner-row {
    display: block !important;
    margin-bottom: var(--fleep-gap) !important;
}

@media (min-width: 768px) {
    body.fleep-ui .home-desktop-dual-promo {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

body.fleep-ui .home-desktop-dual-promo {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

body.fleep-ui .home-desktop-dual-promo .home-mini-promo--fleep-dual {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

body.fleep-ui .home-mini-promo--fleep-hero .home-mini-promo-viewport,
body.fleep-ui .home-mini-promo--fleep-hero .home-mini-promo-track,
body.fleep-ui .home-mini-promo--fleep-hero .home-mini-promo-slide {
    min-height: var(--fleep-hero-h) !important;
    height: var(--fleep-hero-h) !important;
}

body.fleep-ui .home-mini-promo--fleep-hero .home-mini-promo-slide-grid {
    min-height: var(--fleep-hero-h) !important;
    border-radius: var(--fleep-radius-lg) !important;
}

body.fleep-ui .home-mini-promo--fleep-hero .home-mini-promo-title {
    font-family: var(--fleep-font) !important;
    font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
}

body.fleep-ui .home-mini-promo--fleep-hero .home-mini-promo-cta {
    background: var(--fleep-red) !important;
    border-radius: var(--fleep-radius) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
}

/* Hide Dune-only home blocks */
body.fleep-ui .home-leaders-block,
body.fleep-ui .home-stories-preview-row,
body.fleep-ui .home-stories-top-slot:not(.hidden),
body.fleep-ui #homeStoriesTopSlot:not(.hidden),
body.fleep-ui .home-mobile-hot-bonus,
body.fleep-ui .home-preview-blocks,
body.fleep-ui .sidebar-hero-demo {
    display: none !important;
}

/* Beat casino-surface-polish #pageHome … display:none on Avegas tabs-only hosts */
body.fleep-ui #pageHome .home-slots-section.fleep-game-group-d .home-slots-grid,
body.fleep-ui #pageHome .home-slots-section.fleep-home-grid .home-slots-grid,
body.fleep-ui #pageHome .home-slots-section--tabs-only.fleep-game-group-d .home-slots-grid,
body.fleep-ui #pageHome .home-slots-section--tabs-only.fleep-home-grid .home-slots-grid,
body.fleep-ui #pageHome .fleep-mosaic.home-slots-grid {
    display: grid !important;
}

body.fleep-ui .home-slots-section:not(.fleep-home-grid):not(.fleep-game-group-d) .home-slots-grid {
    display: none !important;
}

body.fleep-ui .home-games-hint {
    display: none !important;
}

/* --- Game categories row --- */
body.fleep-ui .home-games-block {
    margin-bottom: var(--fleep-gap) !important;
    max-width: var(--fleep-content-max);
    margin-left: auto;
    margin-right: auto;
}

body.fleep-ui .home-slots-catalog-strip {
    margin-bottom: var(--fleep-gap) !important;
}

body.fleep-ui .home-games-strip-wrap {
    border-radius: var(--fleep-radius-lg);
}

body.fleep-ui .home-all-games-link:not(.fleep-btn) {
    color: var(--fleep-red-light, #F3372B) !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    text-transform: uppercase;
}

/* --- Carousel a --- */
body.fleep-ui .home-carousel-block,
body.fleep-ui .home-promo-zone--large {
    max-width: var(--fleep-content-max);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--fleep-gap);
    padding: 20px;
    background: var(--fleep-surface);
    border: 1px solid var(--fleep-border);
    border-radius: var(--fleep-radius-lg);
}

body.fleep-ui .home-carousel-title {
    color: var(--fleep-red) !important;
    font-weight: 700 !important;
}

/* --- Content block a (SEO) --- */
body.fleep-ui .home-seo-block,
body.fleep-ui .home-faq-block {
    max-width: var(--fleep-content-max);
    margin: var(--fleep-gap) auto;
    padding: 24px;
    background: var(--fleep-surface);
    border: 1px solid var(--fleep-border);
    border-radius: var(--fleep-radius-lg);
}

body.fleep-ui .home-seo-title,
body.fleep-ui .home-faq-title {
    font-family: var(--fleep-font) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--fleep-text) !important;
    margin-bottom: 16px;
}

body.fleep-ui .home-seo-content {
    color: var(--fleep-text-muted) !important;
    line-height: 1.6;
}

/* --- Payment methods --- */
.fleep-payment-methods {
    max-width: var(--fleep-content-max);
    margin: var(--fleep-gap) auto;
    padding: 20px 24px;
    background: var(--fleep-surface);
    border: 1px solid var(--fleep-border);
    border-radius: var(--fleep-radius-lg);
}

.fleep-payment-methods__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fleep-text);
    margin: 0 0 16px;
}

.fleep-payment-methods__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.fleep-payment-methods__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 40px;
    padding: 0 12px;
    background: var(--fleep-elevated);
    border: 1px solid var(--fleep-border);
    border-radius: var(--fleep-radius);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fleep-text-muted);
}

/* --- Footer a --- */
.fleep-site-footer {
    max-width: var(--fleep-content-max);
    margin: var(--fleep-gap) auto 0;
    padding: 32px 24px 24px;
    background: var(--fleep-surface);
    border: 1px solid var(--fleep-border);
    border-radius: var(--fleep-radius-lg) var(--fleep-radius-lg) 0 0;
}

.fleep-site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.fleep-site-footer__col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fleep-text-muted);
    margin: 0 0 12px;
}

.fleep-site-footer__col a {
    display: block;
    color: var(--fleep-text);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 4px 0;
    opacity: 0.85;
}

.fleep-site-footer__col a:hover {
    color: var(--fleep-red);
}

.fleep-site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--fleep-border);
    font-size: 0.75rem;
    color: var(--fleep-text-muted);
}

.fleep-site-footer__socials {
    display: flex;
    gap: 8px;
}

.fleep-site-footer__social {
    width: 32px;
    height: 32px;
    border-radius: var(--fleep-radius);
    background: var(--fleep-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fleep-text-muted);
    text-decoration: none;
}

/* --- Games catalog page --- */
body.fleep-ui.fleep-page-catalog .casino-main {
    padding-top: 0 !important;
}

body.fleep-ui #pageGames .games-catalog-banner,
body.fleep-ui #pageGames .lobby-hero-banner {
    min-height: 380px;
    border-radius: var(--fleep-radius-lg);
    margin-bottom: var(--fleep-gap);
    overflow: hidden;
    border: 1px solid var(--fleep-border);
}

body.fleep-ui #pageGames .provider-filter-row,
body.fleep-ui #pageGames .games-providers-strip {
    margin-bottom: var(--fleep-gap);
}

body.fleep-ui #pageGames .games-grid,
body.fleep-ui #pageGames .slot-catalog-grid {
    gap: 12px !important;
}

/* Скелетон каталога — видимый на #pageGames (раньше стили были только на главной) */
body.fleep-ui #pageGames #gamesCatalogList .skeleton-grid {
    display: grid;
    grid-template-columns: repeat(var(--icons-per-row, 6), minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    min-height: 120px;
}

body.fleep-ui #pageGames #gamesCatalogList .skeleton-slot {
    aspect-ratio: 427 / 575;
    border-radius: var(--fleep-radius, 8px);
    background: linear-gradient(
        110deg,
        var(--fleep-elevated, #262628) 8%,
        var(--fleep-panel-hover, #2e3034) 18%,
        var(--fleep-elevated, #262628) 33%
    );
    background-size: 200% 100%;
    animation: fleep-catalog-skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes fleep-catalog-skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (max-width: 767px) {
    body.fleep-ui #pageGames #gamesCatalogList .skeleton-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* --- Modals Fleep style --- */
body.fleep-ui .games-search-modal,
body.fleep-ui .games-providers-modal,
body.fleep-ui .provider-popup-panel,
body.fleep-ui .sidebar-lang-popup {
    background: var(--fleep-surface) !important;
    border: 1px solid var(--fleep-border) !important;
    border-radius: var(--fleep-radius-lg) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

body.fleep-ui .provider-popup-panel {
    max-width: 810px !important;
    margin-left: auto !important;
}

body.fleep-ui .provider-popup-backdrop {
    background: rgba(0, 0, 0, 0.65) !important;
}

@media (max-width: 767px) {
    body.fleep-ui .provider-popup-panel {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
}

body.fleep-ui .auth-modal-content {
    background: var(--fleep-surface) !important;
    border: 1px solid var(--fleep-border) !important;
    border-radius: var(--fleep-radius-lg) !important;
}

body.fleep-ui #pageHelp {
    display: none !important;
}

/* --- Inner pages shell --- */
body.fleep-ui #pageBonuses,
body.fleep-ui #pageLoyalty,
body.fleep-ui #pageTournaments,
body.fleep-ui #pageNews,
body.fleep-ui #pageHelp,
body.fleep-ui #pageReferrals,
body.fleep-ui #pageCmsContent,
body.fleep-ui #pageSupportCenter {
    max-width: var(--fleep-content-max);
    margin: 0 auto;
}

body.fleep-ui .page > .card,
body.fleep-ui .bonuses-page-shell,
body.fleep-ui .loyalty-page-shell {
    background: var(--fleep-surface) !important;
    border: 1px solid var(--fleep-border) !important;
    border-radius: var(--fleep-radius-lg) !important;
}

/* --- Play page --- */
body.fleep-ui.fleep-page-play .casino-main {
    padding: 0 !important;
}

body.fleep-ui.fleep-page-play .fleep-main-column .casino-header {
    display: flex !important;
}

/* Crypto-fiat rates ticker */
.crypto-fiat-footer-rates {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
}
.crypto-fiat-footer-rates__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.85rem;
  color: #aab;
}
.crypto-fiat-footer-rates__pair {
  font-weight: 600;
  color: #fff;
  margin-right: 4px;
}
.crypto-fiat-footer-rates__val {
  font-variant-numeric: tabular-nums;
}
