/* ========== FCN — Компоненты UI ========== */

/* ========== FAQ ========== */

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-top-color: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.40),
        0 2px 6px rgba(0, 0, 0, 0.60),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s;
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
    border-color: var(--gold);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    min-height: 72px;
}

.faq-question:hover {
    color: var(--gold);
}

.faq-arrow {
    flex-shrink: 0;
    color: var(--gold);
    transition: transform 0.25s ease;
}

.faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-answer.open {
    max-height: 400px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Кнопки ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Основная — красная */
.btn-primary {
    background: var(--gradient-btn);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        0 4px  20px rgba(230, 57, 70, 0.45),
        0 1px  4px  rgba(0, 0, 0, 0.55);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        0 10px 40px rgba(230, 57, 70, 0.60),
        0 2px  8px  rgba(0, 0, 0, 0.55);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 2px  8px rgba(230, 57, 70, 0.30),
        0 1px  2px rgba(0, 0, 0, 0.65);
}

/* Золотая */
.btn-gold {
    background: var(--gradient-btn-gold);
    color: #0C0C0E;
    font-weight: 700;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 4px  20px rgba(201, 168, 76, 0.40),
        0 1px  4px  rgba(0, 0, 0, 0.50);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 10px 40px rgba(201, 168, 76, 0.55),
        0 2px  8px  rgba(0, 0, 0, 0.50);
}

.btn-gold:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 2px  8px rgba(201, 168, 76, 0.28),
        0 1px  2px rgba(0, 0, 0, 0.60);
}

/* С обводкой */
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

/* Маленькая */
.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* Большая */
.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* Кнопка Telegram */
.btn-tg {
    background: #2AABEE;
    color: #fff;
}

.btn-tg:hover {
    box-shadow: 0 8px 32px rgba(42, 171, 238, 0.35);
}

/* ========== Карточки ========== */

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-top-color: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow:
        0 6px  20px rgba(0, 0, 0, 0.40),
        0 2px  6px  rgba(0, 0, 0, 0.60),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    will-change: transform, box-shadow;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--border-light);
    border-top-color: rgba(255, 255, 255, 0.10);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.52),
        0 12px 32px rgba(0, 0, 0, 0.44),
        0 3px  8px  rgba(0, 0, 0, 0.68),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.card-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    flex-shrink: 0;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-icon-gold {
    background: linear-gradient(145deg, rgba(201, 168, 76, 0.20) 0%, rgba(201, 168, 76, 0.06) 100%);
    border: 1px solid rgba(201, 168, 76, 0.30);
    border-top-color: rgba(255, 224, 120, 0.48);
    box-shadow:
        0 0 22px rgba(201, 168, 76, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: var(--gold);
}

.card-icon-red {
    background: linear-gradient(145deg, rgba(230, 57, 70, 0.16) 0%, rgba(230, 57, 70, 0.05) 100%);
    border: 1px solid rgba(230, 57, 70, 0.28);
    border-top-color: rgba(255, 110, 120, 0.42);
    box-shadow:
        0 0 22px rgba(230, 57, 70, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: var(--red);
}

.card:hover .card-icon-gold {
    border-color: rgba(201, 168, 76, 0.50);
    border-top-color: rgba(255, 224, 120, 0.68);
    box-shadow:
        0 0 40px rgba(201, 168, 76, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.card:hover .card-icon-red {
    border-color: rgba(230, 57, 70, 0.46);
    border-top-color: rgba(255, 110, 120, 0.62);
    box-shadow:
        0 0 40px rgba(230, 57, 70, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.card h3, .card .h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Карточка с золотым свечением */
.card-glow-gold {
    box-shadow:
        0 6px  20px rgba(0, 0, 0, 0.40),
        0 2px  6px  rgba(0, 0, 0, 0.60),
        0 0    30px rgba(201, 168, 76, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card-glow-gold:hover {
    border-color: rgba(201, 168, 76, 0.25);
    border-top-color: rgba(201, 168, 76, 0.30);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 0    60px rgba(201, 168, 76, 0.22),
        0 3px  8px  rgba(0, 0, 0, 0.68),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Карточка с красным свечением */
.card-glow-red {
    box-shadow:
        0 6px  20px rgba(0, 0, 0, 0.40),
        0 2px  6px  rgba(0, 0, 0, 0.60),
        0 0    30px rgba(230, 57, 70, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card-glow-red:hover {
    border-color: rgba(230, 57, 70, 0.25);
    border-top-color: rgba(230, 57, 70, 0.30);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 0    60px rgba(230, 57, 70, 0.22),
        0 3px  8px  rgba(0, 0, 0, 0.68),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* ========== Карточка оффера ========== */

.offer-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-top-color: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow:
        0 6px  20px rgba(0, 0, 0, 0.40),
        0 2px  6px  rgba(0, 0, 0, 0.60),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    gap: 16px;
    will-change: transform, box-shadow;
}

.offer-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-light);
    border-top-color: rgba(255, 255, 255, 0.10);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.52),
        0 12px 32px rgba(0, 0, 0, 0.44),
        0 3px  8px  rgba(0, 0, 0, 0.68),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.offer-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.offer-card-icon {
    width: 144px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.offer-card-icon--placeholder {
    background: #3a3a3a;
}

.offer-card-icon img {
    max-width: 144px;
    width: 100%;
    height: 100%;
    aspect-ratio: 144 / 60;
    object-fit: contain;
}

.offer-card-name {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 6px;
    text-align: center;
}

.offer-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.offer-card-payout {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.offer-card-stats {
    display: flex;
    gap: 16px;
    min-height: 62px;
}

.offer-card-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.offer-card-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.offer-card-stat-value {
    font-weight: 600;
    font-size: 0.9rem;
}

.offer-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* ========== Бейджи ========== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.badge-geo {
    background: var(--gold-bg);
    color: var(--gold);
    border-color: rgba(201, 168, 76, 0.15);
}

.badge-vertical {
    background: var(--red-bg);
    color: var(--red);
    border-color: rgba(230, 57, 70, 0.15);
}

.badge-traffic {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* ========== Статистика (блок с числом) ========== */

.stat {
    text-align: center;
    padding: 16px;
}

.stat-value {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-value-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-value-red {
    color: var(--red);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========== Шаги (1-2-3) ========== */

.step-card {
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

.step-number {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 16px;
}

.step-card h3 {
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Линия между шагами (десктоп) */
@media (min-width: 1024px) {
    .steps-grid {
        position: relative;
    }

    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 40px;
        right: -12px;
        width: 24px;
        height: 2px;
        background: var(--border-light);
    }
}

/* ========== Лента выплат ========== */

.feed {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-top-color: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    overflow: hidden;
    height: 360px;
    position: relative;
    box-shadow:
        0 6px  24px rgba(0, 0, 0, 0.40),
        0 2px  8px  rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .feed { height: 520px; }
}

.feed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--bg-secondary));
    pointer-events: none;
}

.feed-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    animation: fadeInSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feed-item-user {
    font-weight: 600;
    font-size: 0.9rem;
}

.feed-item-type--vyvod {
    color: var(--gold);
}

.feed-item-type--popolnenie {
    color: var(--gold);
}

.feed-item-amount {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--gold);
}

.feed-item-method {
    font-size: 0.8rem;
    color: var(--text-primary);
}

.feed-item-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes fadeInSlide {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ========== Кейс-карточка ========== */

.case-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-top-color: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow:
        0 6px  20px rgba(0, 0, 0, 0.40),
        0 2px  6px  rgba(0, 0, 0, 0.60),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
    will-change: transform, box-shadow;
}

.case-card:hover {
    transform: translateY(-10px);
    border-top-color: rgba(255, 255, 255, 0.10);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.52),
        0 12px 32px rgba(0, 0, 0, 0.44),
        0 3px  8px  rgba(0, 0, 0, 0.68),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.case-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.case-card-source {
    font-weight: 600;
}

.case-card-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.case-card-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.case-card-metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-card-metric-value {
    font-weight: 600;
    font-size: 1.05rem;
}

.case-card-roi {
    color: var(--gold);
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
}

/* ========== Skeleton Loading ========== */

.skeleton {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    animation: shimmer 1.5s infinite;
}

[data-theme="light"] .skeleton::after {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.04), transparent);
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text-sm {
    height: 12px;
    width: 60%;
}

.skeleton-heading {
    height: 32px;
    width: 70%;
    margin-bottom: 12px;
}

.skeleton-card {
    height: 200px;
    border-radius: var(--radius);
}

.skeleton-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========== Способы оплаты ========== */

.payment-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition-fast);
}

.payment-method:hover {
    border-color: var(--border-light);
}

.payment-method-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.payment-method-info {
    flex: 1;
}

.payment-method-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.payment-method-details {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== Чипсы (фильтры) ========== */

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

.chip:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.chip.active {
    background: var(--red-bg);
    color: var(--red);
    border-color: rgba(230, 57, 70, 0.3);
}

/* ========== Плавающая кнопка Telegram ========== */

.floating-tg {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: #2AABEE;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(42, 171, 238, 0.4);
    z-index: 900;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-tg:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(42, 171, 238, 0.5);
}

.floating-tg svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* ========== Разделитель ========== */

.divider {
    height: 1px;
    background: var(--border);
    border: none;
    margin: 0;
}

/* ========== Инпут (для поиска) ========== */

.input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.input::placeholder {
    color: var(--text-muted);
}

.input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* ========== Селект ========== */

.select {
    appearance: none;
    padding: 10px 36px 10px 14px;
    background: var(--bg-tertiary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%238A8A96' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    outline: none;
}

.select:focus {
    border-color: var(--red);
}

/* ========== Утилиты отступов ========== */

.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mt-24 { margin-top: 24px; }

/* ========== Чеклист ========== */

.check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.check-icon {
    font-size: 1.2rem;
}

.footer-docs-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-docs-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-docs-links a:hover {
    color: var(--text-primary);
}

.footer-logos-socials {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* Блок аккредитации в футере */
.footer-accreditation {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
}

.footer-accreditation-title {
    font-size: 0.75rem;
    color: var(--text-primary);
    white-space: nowrap;
    text-decoration: none;
}

.footer-accreditation-title:hover {
    text-decoration: underline;
}

.footer-accreditation-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.footer-accreditation-links a {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-accreditation-links a:hover {
    color: var(--text-primary);
}
