/* ─── Swapzone Price Prediction Widget ─────────────────────────────────────── */

:root {
    --swz-bg:        #101010;
    --swz-border:    #25B7EB;
    --swz-text:      #FFFFFF;
    --swz-muted:     rgba(255,255,255,0.45);
    --swz-header-bg: #0a0a0a;
    --swz-metrics-bg:#151515;
    --swz-footer-bg: #0d0d0d;
    --swz-row-hover: rgba(37,183,235,0.07);
    --swz-green:     #22c55e;
    --swz-red:       #ef4444;
}

.swz-prediction-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: var(--swz-text);
    background: var(--swz-bg);
    margin: 28px 0;
    border: 1px solid var(--swz-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(37,183,235,0.12);
}

/* ─── Header ── */
.swz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--swz-header-bg);
    border-bottom: 1px solid var(--swz-border);
    gap: 12px;
    flex-wrap: wrap;
}

.swz-header-left,
.swz-header-right {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.swz-header-right {
    text-align: right;
}

.swz-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--swz-muted);
}

.swz-current-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--swz-text);
    letter-spacing: -0.02em;
}

.swz-roi {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ─── Colors ── */
.swz-positive { color: var(--swz-green); }
.swz-negative { color: var(--swz-red);   }

/* ─── Metrics ── */
.swz-metrics {
    display: flex;
    background: var(--swz-metrics-bg);
    border-bottom: 1px solid rgba(37,183,235,0.3);
}

.swz-metric {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border-right: 1px solid rgba(37,183,235,0.2);
    gap: 3px;
}

.swz-metric:last-child {
    border-right: none;
}

.swz-metric-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--swz-muted);
}

.swz-metric-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--swz-text);
}

/* ─── Table wrapper ── */
.swz-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--swz-bg);
}

/* ─── Table ── */
.swz-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.swz-table thead {
    background: var(--swz-metrics-bg);
    border-bottom: 1px solid var(--swz-border);
}

.swz-table thead th {
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--swz-border);
    white-space: nowrap;
}

.swz-table tbody tr {
    border-bottom: 1px solid rgba(37,183,235,0.1);
    transition: background 0.15s;
    background: var(--swz-bg);
}

.swz-table tbody tr:last-child {
    border-bottom: none;
}

.swz-table tbody tr:hover {
    background: var(--swz-row-hover);
}

.swz-table tbody td {
    padding: 9px 16px;
    white-space: nowrap;
    color: var(--swz-text);
}

.swz-predicted {
    font-weight: 600;
    color: var(--swz-text);
}

/* ─── Footer ── */
.swz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: var(--swz-footer-bg);
    border-top: 1px solid rgba(37,183,235,0.3);
    gap: 12px;
    flex-wrap: wrap;
}

.swz-disclaimer {
    font-size: 12px;
    color: var(--swz-muted);
    flex: 1;
}

.swz-source {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: var(--swz-border);
    opacity: 0.7;
}

.swz-cta {
    display: inline-block;
    padding: 8px 18px;
    background: var(--swz-border);
    color: #101010 !important;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.1s;
}

.swz-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ─── Yearly Widget ── */

.swz-yearly-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: var(--swz-text);
    background: var(--swz-bg);
    margin: 28px 0;
    border: 1px solid var(--swz-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(37,183,235,0.12);
}

/* Tabs */
.swz-yearly-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: var(--swz-header-bg);
    border-bottom: 1px solid var(--swz-border);
    padding: 0 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.swz-yearly-tabs::-webkit-scrollbar { display: none; }

.swz-yearly-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--swz-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 14px 9px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    font-family: inherit;
}

.swz-yearly-tab:hover {
    color: var(--swz-text);
}

.swz-yearly-tab.swz-tab-active {
    color: var(--swz-border);
    border-bottom-color: var(--swz-border);
}

/* Panels */
.swz-yearly-panel {
    display: none;
}

.swz-yearly-panel.swz-panel-active {
    display: block;
}

/* Panel header */
.swz-yearly-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: var(--swz-metrics-bg);
    border-bottom: 1px solid rgba(37,183,235,0.3);
}

.swz-yearly-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--swz-muted);
}

.swz-yearly-summary strong {
    color: var(--swz-text);
    font-weight: 600;
}

/* All Time row */
.swz-alltime-row {
    background: var(--swz-metrics-bg) !important;
    border-top: 1px solid var(--swz-border) !important;
}

.swz-alltime-row td {
    color: var(--swz-text) !important;
}

/* ─── Live Price + Chart Widget ── */

.swz-live-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: var(--swz-text);
    background: var(--swz-bg);
    margin: 28px 0;
    border: 1px solid var(--swz-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(37,183,235,0.12);
}

/* Header */
.swz-live-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background: var(--swz-header-bg);
    border-bottom: 1px solid var(--swz-border);
    flex-wrap: wrap;
}

/* Coin name + ticker */
.swz-live-coin {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 80px;
}

.swz-live-coin-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--swz-text);
}

.swz-live-ticker {
    font-size: 12px;
    color: var(--swz-border);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Price block */
.swz-live-price-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.swz-live-price {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--swz-text);
}

.swz-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.swz-live-badge.swz-positive {
    background: rgba(34,197,94,0.15);
    color: var(--swz-green);
}

.swz-live-badge.swz-negative {
    background: rgba(239,68,68,0.15);
    color: var(--swz-red);
}

.swz-live-badge-label {
    font-size: 11px;
    opacity: 0.75;
    font-weight: 500;
}

/* Stats row */
.swz-live-stats {
    display: flex;
    gap: 20px;
    flex: 1;
    flex-wrap: wrap;
}

.swz-live-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.swz-live-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--swz-muted);
}

.swz-live-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--swz-text);
}

/* CTA */
.swz-live-actions {
    margin-left: auto;
    flex-shrink: 0;
}

/* TradingView chart — вставляется отдельно в пост, стили не нужны */

/* Footer */
.swz-live-footer {
    padding: 10px 24px;
    background: var(--swz-footer-bg);
    border-top: 1px solid rgba(37,183,235,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.swz-live-footer .swz-disclaimer {
    font-size: 11px;
    color: var(--swz-muted);
}

.swz-live-footer .swz-source {
    display: inline;
    margin-top: 0;
    font-size: 11px;
    color: var(--swz-border);
    opacity: 0.7;
}

/* ─── Fear & Greed Index ── */

.swz-fg-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--swz-bg);
    border: 1px solid var(--swz-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(37,183,235,0.12);
    margin: 28px 0;
}

.swz-fg-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 24px 16px;
    gap: 8px;
}

.swz-fg-title {
    width: 100%;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(37,183,235,0.2);
}

.swz-fg-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    border-radius: 8px;
}

.swz-fg-value {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: 4px;
}

.swz-fg-source {
    font-size: 11px;
    color: var(--swz-muted);
    margin-top: 4px;
}

/* ─── Mobile ── */
@media (max-width: 640px) {
    .swz-header {
        padding: 14px 16px;
    }

    .swz-current-price {
        font-size: 18px;
    }

    .swz-roi {
        font-size: 16px;
    }

    .swz-metrics {
        flex-wrap: wrap;
    }

    .swz-metric {
        flex: 1 1 50%;
        border-bottom: 1px solid rgba(37,183,235,0.2);
    }

    .swz-metric:nth-child(odd) {
        border-right: 1px solid rgba(37,183,235,0.2);
    }

    .swz-metric:nth-child(even) {
        border-right: none;
    }

    .swz-table thead th,
    .swz-table tbody td {
        padding: 8px 12px;
        font-size: 12.5px;
    }

    .swz-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
    }

    .swz-cta {
        width: 100%;
        text-align: center;
    }

    .swz-yearly-panel-header {
        padding: 12px 16px;
    }

    .swz-yearly-summary {
        gap: 10px;
        font-size: 12px;
    }

    .swz-yearly-tab {
        font-size: 12px;
        padding: 10px 10px 7px;
    }

    .swz-live-header {
        padding: 14px 16px;
        gap: 12px;
    }

    .swz-live-price {
        font-size: 20px;
    }

    .swz-live-stats {
        gap: 12px;
    }

    .swz-live-actions {
        margin-left: 0;
        width: 100%;
    }

    .swz-live-actions .swz-cta {
        width: 100%;
        text-align: center;
        display: block;
    }

    .swz-tv-wrap {
        height: 320px;
    }
}

/* ─── Key Takeaway ──────────────────────────────────────────────────────────── */

.swz-kt-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: var(--swz-text);
    background: var(--swz-bg);
    margin: 28px 0;
    border: 1px solid var(--swz-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(37,183,235,0.12);
}

.swz-kt-title {
    background: var(--swz-header-bg);
    border-bottom: 1px solid rgba(37,183,235,0.25);
    padding: 14px 20px;
}

.swz-kt-list {
    list-style: none;
    margin: 0;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.swz-kt-list li {
    padding-left: 20px;
    position: relative;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
}

.swz-kt-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--swz-border);
}

.swz-kt-list li strong {
    color: #fff;
}

/* ─── Historical Tables ─────────────────────────────────────────────────────── */

.swz-hist-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: var(--swz-text);
    background: var(--swz-bg);
    margin: 28px 0;
    border: 1px solid var(--swz-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(37,183,235,0.12);
}
