/* --- ARBITRAGE SPECIFIC --- */

/* Контейнер страницы */
.content-wrap {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section.compact {
    padding: 30px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* Сетка панелей (как в P2P, дублируем для автономности страницы) */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 30px;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.panel h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.panel ul {
    list-style: none;
}

.panel li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 15px;
}

.panel li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Специальный блок предупреждения (Scam Alert) */
.scam-warning {
    background: rgba(255, 94, 94, 0.1);
    border: 1px solid #ff5e5e;
    padding: 24px;
    border-radius: var(--radius);
    margin: 40px 0;
}

.scam-warning h3 {
    color: #ff5e5e;
    margin-bottom: 10px;
}

.mini-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

@media (max-width: 800px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

/* Дополнение к стилям таблицы */
.p2p-compare table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.p2p-compare th,
.p2p-compare td {
    text-align: left;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.p2p-compare th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Текстовый блок (лонгрид) */
.prose-block {
    max-width: 850px;
    margin: 40px auto;
    line-height: 1.8;
}

.prose-block p {
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 16px;
}

.prose-block strong {
    color: var(--primary);
}

.explanation-list {
    background: rgba(255, 177, 26, 0.05);
    border-left: 3px solid var(--primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 12px 12px 0;
}

/* ===== Responsive table (как в review.css) ===== */
.p2p-compare .table-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* Таблица внутри скролла */
.p2p-compare .table-scroll table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    background: transparent;
}

/* Ячейки */
.p2p-compare .table-scroll th,
.p2p-compare .table-scroll td {
    white-space: nowrap;
}

/* Сохраняем твой хедер */
.p2p-compare .table-scroll th {
    background: rgba(255, 255, 255, 0.03);
}

/* Sticky первая колонка */
.p2p-compare .table-scroll th:first-child,
.p2p-compare .table-scroll td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg-card);
}

.p2p-compare .table-scroll thead th:first-child {
    z-index: 3;
}

/* Мобилка: чуть компактнее + гарантируем ширину для скролла */
@media (max-width: 700px) {
    .p2p-compare .table-scroll {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }

    .p2p-compare .table-scroll table {
        min-width: 760px;
    }

    .p2p-compare .table-scroll th,
    .p2p-compare .table-scroll td {
        padding: 12px;
        font-size: 14px;
    }
}