﻿/* ============================================
   CHEAT-HUB вЂ” HOME-PRO ENHANCEMENTS
   Drop-in additive styles. No overrides of base tokens.
   ============================================ */

/* ===== LIVE PURCHASE TICKER ===== */
.ch-ticker {
    position: relative;
    margin: 22px 0 8px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(20, 20, 25, 0.7) 0%, rgba(14, 14, 17, 0.85) 100%);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}

.ch-ticker__label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(201, 168, 76, 0.06);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.ch-ticker__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF7D;
    box-shadow: 0 0 0 0 rgba(76, 175, 125, .6);
    animation: chPulseDot 1.6s infinite;
}

@keyframes chPulseDot {
    0%   { box-shadow: 0 0 0 0   rgba(76, 175, 125, .55); }
    70%  { box-shadow: 0 0 0 10px rgba(76, 175, 125, 0); }
    100% { box-shadow: 0 0 0 0   rgba(76, 175, 125, 0); }
}

.ch-ticker__viewport {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.ch-ticker__track {
    display: inline-flex;
    gap: 12px;
    padding: 12px 0;
    white-space: nowrap;
    animation: chTickerScroll 60s linear infinite;
    will-change: transform;
}

.ch-ticker:hover .ch-ticker__track { animation-play-state: paused; }

@keyframes chTickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ch-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    font-size: 0.86rem;
    color: var(--text-light);
}

.ch-ticker__avatar {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9A84C, #B8942F);
    color: #0F0F12;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.ch-ticker__name { color: var(--text-white); font-weight: 600; }
.ch-ticker__product { color: var(--accent-secondary); font-weight: 600; }
.ch-ticker__time { color: var(--text-medium); font-size: 0.78rem; }

/* ===== HERO SOCIAL PROOF ===== */
.hero-social-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 28px;
    color: var(--text-light);
    font-size: 0.92rem;
}

.hero-social-proof__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-social-proof__stars {
    display: inline-flex;
    gap: 2px;
    color: #F0C04C;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* ===== USP SECTION ===== */
.usp-section { padding: 80px 0 30px; }

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.usp-card {
    position: relative;
    padding: 24px 22px;
    background: linear-gradient(180deg, rgba(20, 20, 25, 0.55) 0%, rgba(14, 14, 17, 0.65) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    overflow: hidden;
}

.usp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(201, 168, 76, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.usp-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35), 0 0 0 1px rgba(201, 168, 76, .08) inset;
}

.usp-card:hover::before { opacity: 1; }

.usp-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(201, 168, 76, 0.10);
    color: var(--accent-primary);
    margin-bottom: 14px;
}

.usp-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 6px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
}

.usp-card__text {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-section { padding: 60px 0; }

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    counter-reset: hw;
}

.how-step {
    position: relative;
    padding: 28px 20px 22px;
    background: rgba(14, 14, 17, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    counter-increment: hw;
}

.how-step::before {
    content: '0' counter(hw);
    position: absolute;
    top: -16px; left: 18px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #0F0F12;
    background: var(--gradient-primary);
    padding: 6px 12px;
    border-radius: 8px;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 14px rgba(201, 168, 76, .25);
}

.how-step__title {
    font-size: 1.05rem;
    color: var(--text-white);
    margin: 6px 0 8px;
    font-family: 'Space Grotesk', sans-serif;
}

.how-step__text {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.test-section { padding: 60px 0; }

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.test-card {
    padding: 24px 22px;
    background: linear-gradient(180deg, rgba(20, 20, 25, 0.6) 0%, rgba(14, 14, 17, 0.7) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.test-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
}

.test-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.test-card__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9A84C, #8A6D1F);
    color: #0F0F12;
    font-weight: 800; font-family: 'Space Grotesk', sans-serif;
    display: flex; align-items: center; justify-content: center;
}

.test-card__name { color: var(--text-white); font-weight: 600; }
.test-card__role { color: var(--text-medium); font-size: 0.82rem; }

.test-card__stars {
    color: #F0C04C;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.test-card__text {
    color: var(--text-light);
    font-size: 0.94rem;
    line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-section { padding: 60px 0 80px; }

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: rgba(14, 14, 17, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item[open] { border-color: var(--border-hover); }

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    color: var(--accent-primary);
    font-size: 1.4rem;
    font-weight: 600;
    transition: transform var(--transition-fast);
}

.faq-item[open] summary::after { content: 'в€’'; transform: rotate(180deg); }

.faq-item__body {
    padding: 0 22px 18px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== TELEGRAM CTA ===== */
.tg-cta {
    margin: 40px 0 0;
    padding: 26px 30px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(36, 161, 222, 0.10), rgba(201, 168, 76, 0.06));
    border: 1px solid rgba(36, 161, 222, 0.25);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
}

.tg-cta__icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    color: #fff;
    flex: 0 0 48px;
}

.tg-cta__text { flex: 1 1 240px; }
.tg-cta__title { color: var(--text-white); font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.tg-cta__sub { color: var(--text-light); font-size: 0.92rem; }

.tg-cta__btn {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-base);
    box-shadow: 0 6px 16px rgba(36, 161, 222, 0.25);
}

.tg-cta__btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 24px rgba(36, 161, 222, 0.35); }

/* ===== FIRST-PURCHASE PROMO TOAST ===== */
.first-buy-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1100;
    max-width: 360px;
    padding: 16px 16px 16px 18px;
    background: linear-gradient(180deg, rgba(20,20,25,.95) 0%, rgba(14,14,17,.95) 100%);
    border: 1px solid var(--border-hover);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,.55);
    color: var(--text-light);
    transform: translateY(140%);
    opacity: 0;
    transition: transform .5s var(--ease-spring), opacity .4s ease;
    backdrop-filter: blur(14px);
}

.first-buy-toast.show { transform: translateY(0); opacity: 1; }

.first-buy-toast__title {
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.first-buy-toast__code {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    border: 1px dashed var(--accent-primary);
    border-radius: 8px;
    color: var(--accent-secondary);
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    user-select: all;
    transition: background var(--transition-fast);
}

.first-buy-toast__code:hover { background: rgba(201, 168, 76, .1); }

.first-buy-toast__btn {
    display: inline-block;
    margin-top: 4px;
    padding: 9px 18px;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: #0F0F12;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-base);
    box-shadow: 0 6px 14px rgba(201, 168, 76, .25);
}

.first-buy-toast__btn:hover {
    color: #0F0F12;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(201, 168, 76, .35);
}

.first-buy-toast__close {
    position: absolute;
    top: 8px; right: 10px;
    width: 24px; height: 24px;
    border: none;
    background: transparent;
    color: var(--text-medium);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.first-buy-toast__close:hover { color: var(--text-white); }

/* ===== SECTION TITLE ENHANCEMENTS (additive) ===== */
.section-eyebrow {
    text-align: center;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 640px;
    margin: 6px auto 36px;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== MOBILE TWEAKS ===== */
@media (max-width: 640px) {
    .hero-social-proof { gap: 14px; font-size: 0.85rem; }
    .ch-ticker__item { font-size: 0.78rem; }
    .first-buy-toast { left: 12px; right: 12px; max-width: none; }
    .tg-cta { padding: 18px; }
}




/* ============================================
   TOP PRODUCTS — clean carousel
   ============================================ */
.ch-showcase {
    padding: 70px 0 60px;
    position: relative;
}
.ch-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 480px at 50% 0%, rgba(201,168,76,.05), transparent 65%);
    pointer-events: none;
}
.ch-showcase__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}
.ch-showcase__head .section-eyebrow {
    text-align: left;
    margin-bottom: 4px;
}
.ch-showcase__head .section-title { margin: 0; }
.ch-showcase__foot {
    text-align: center;
    margin-top: 28px;
}

.ch-tp-controls {
    display: flex;
    gap: 8px;
}

.ch-tp-nav {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, border-color .2s, transform .15s, opacity .2s;
    -webkit-tap-highlight-color: transparent;
}
.ch-tp-nav:hover {
    background: var(--gradient-primary);
    color: #0F0F12;
    border-color: transparent;
    transform: translateY(-1px);
}
.ch-tp-nav.swiper-button-disabled {
    opacity: .35;
    pointer-events: none;
    transform: none;
}

/* Swiper container — крайне важно: overflow:hidden, иначе все слайды видны */
.ch-tp-swiper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 30px;
}
.ch-tp-swiper .swiper-wrapper {
    display: flex;
}
.ch-tp-slide {
    width: 300px;
    height: auto;
    flex-shrink: 0;
}

/* Card */
.ch-tp-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(20,20,25,.7) 0%, rgba(14,14,17,.85) 100%);
    border: 1px solid var(--border-color);
    transition: transform .3s var(--ease-out), border-color .25s, box-shadow .3s;
    height: 100%;
}
.ch-tp-card:hover {
    color: inherit;
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 18px 40px rgba(0,0,0,.5),
                0 0 0 1px rgba(201,168,76,.12) inset;
}

.ch-tp-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0F0F12;
}
.ch-tp-card__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .55s var(--ease-out);
    filter: saturate(.95) brightness(.93);
}
.ch-tp-card:hover .ch-tp-card__media img {
    transform: scale(1.06);
    filter: saturate(1) brightness(1);
}
.ch-tp-card__placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    color: var(--accent-primary);
    background: linear-gradient(135deg, #1a1a1f 0%, #0F0F12 100%);
}
.ch-tp-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.7) 100%);
}

/* Скромный rank — только для топ-1 яркий */
.ch-tp-card__rank {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(15,15,18,.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text-light);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
}
.ch-tp-card__rank--1 {
    color: #0F0F12;
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(201,168,76,.35);
}

/* Status badge снизу-слева на медиа — берёт стили из style.css (.catalog-card-badges) */

.ch-tp-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ch-tp-card__cat {
    color: var(--accent-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.ch-tp-card__name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.12rem;
    color: var(--text-white);
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.ch-tp-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}
.ch-tp-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--text-white);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.18rem;
    line-height: 1;
}
.ch-tp-card__from {
    color: var(--text-medium);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.ch-tp-card__cta {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(201,168,76,.10);
    border: 1px solid rgba(201,168,76,.20);
    color: var(--accent-primary);
    transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.ch-tp-card:hover .ch-tp-card__cta {
    background: var(--gradient-primary);
    color: #0F0F12;
    border-color: transparent;
    transform: translateX(2px);
}

/* Pagination */
.ch-tp-pagination {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}
.ch-tp-pagination .swiper-pagination-bullet {
    width: 8px; height: 8px;
    background: rgba(255,255,255,.18);
    opacity: 1;
    transition: width .25s, background .25s;
    border-radius: 4px;
    cursor: pointer;
}
.ch-tp-pagination .swiper-pagination-bullet-active {
    width: 24px;
    background: var(--gradient-primary);
}

@media (max-width: 700px) {
    .ch-showcase__head { flex-direction: column; align-items: stretch; }
    .ch-tp-controls { align-self: flex-end; }
    .ch-tp-slide { width: 260px; }
}
