* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #0d1117;
    color: #e6edf3;
    line-height: 1.4;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(#1a2332 1px, transparent 1px), linear-gradient(90deg, #1a2332 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.top-nav a {
    color: #9fb0c9;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #2a364a;
    background: #131b27;
    padding: 8px 12px;
    border-radius: 999px;
    transition: 0.2s;
}

.top-nav a:visited {
    color: #9fb0c9;
}

.top-nav a:hover,
.top-nav a.active {
    color: #ffffff;
    border-color: #38bdf8;
    background: #173047;
}

.breadcrumbs {
    margin: 4px 0 14px;
    font-size: 12px;
    color: #8fa6c4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #2a364a;
    border-radius: 10px;
    background: #101825;
}

.breadcrumbs a {
    color: #7dd3fc;
    text-decoration: none;
    border-bottom: 1px dashed rgba(125, 211, 252, 0.5);
}

.breadcrumbs a:visited {
    color: #7dd3fc;
}

.breadcrumbs a:hover {
    color: #bae6fd;
    border-bottom-color: rgba(186, 230, 253, 0.9);
}

.info-section a,
.legal-section a {
    color: #38bdf8;
    text-decoration: none;
    border-bottom: 1px dashed rgba(56, 189, 248, 0.45);
}

.info-section a:visited,
.legal-section a:visited {
    color: #7dd3fc;
}

.info-section p a,
.legal-section p a,
.footer a {
    color: #7dd3fc;
}

.info-section a:hover,
.legal-section a:hover {
    color: #bae6fd;
    border-bottom-color: rgba(186, 230, 253, 0.8);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.logo-mark {
    flex-shrink: 0;
    line-height: 0;
}

.logo-square {
    width: 48px;
    height: 48px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.22);
}

.logo-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.logo-title {
    margin: 0;
    font-size: clamp(1.15rem, 2.5vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    background: linear-gradient(90deg, #4facfe 0%, #c084fc 52%, #facc15 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #4facfe;
}

.logo-tagline {
    margin: 0;
    font-size: clamp(0.7rem, 1.6vw, 0.85rem);
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.01em;
}

.page-seo-h1 {
    margin: 4px 0 18px;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 700;
    line-height: 1.25;
    color: #b7c2d1;
}

.seo-page .page-seo-h1 {
    margin-top: 10px;
    font-size: clamp(1.15rem, 2.3vw, 1.8rem);
    line-height: 1.3;
    color: #dbe7f7;
}

.tg-btn {
    background: #066a99;
    padding: 10px 24px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.tg-btn:hover {
    background: #055b84;
    transform: translateY(-1px);
}

.icon-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 30px;
    min-height: 108px;
}

.stat-box {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #38bdf8;
}

.stat-label {
    font-size: 11px;
    color: #8b949e;
    margin-top: 6px;
}

.activity-bar {
    background: linear-gradient(135deg, #0f1a2e, #0a0f17);
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border: 1px solid #21262d;
    min-height: 58px;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

.signals-table {
    background: #161b22;
    border-radius: 20px;
    overflow-x: auto;
    margin-bottom: 20px;
    min-height: 500px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

th {
    text-align: left;
    padding: 16px 12px;
    background: #1a212c;
    color: #8b949e;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 1px solid #21262d;
}

td {
    padding: 14px 12px;
    border-bottom: 1px solid #21262d;
}

/* Prevent price clipping for very small/precise values */
.signals-table th:nth-child(3),
.signals-table td:nth-child(3) {
    white-space: nowrap;
    min-width: 110px;
}

/* Keep symbol readable without breaking layout */
.signals-table th:nth-child(2),
.signals-table td:nth-child(2) {
    white-space: nowrap;
    min-width: 120px;
}

.signal-row {
    transition: all 0.3s;
    cursor: pointer;
}

.ticker-cell {
    font-weight: 800;
    font-family: monospace;
    font-size: 16px;
    color: #fbbf24;
}

.coin-link {
    color: inherit;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
    display: inline-block;
}

.coin-link:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
}

.signal-row.new {
    animation: rowFlash 1s ease-out;
    background: rgba(34, 197, 94, 0.15);
}

@keyframes rowFlash {
    0% {
        background: rgba(34, 197, 94, 0.4);
    }
    100% {
        background: transparent;
    }
}

.signal-row.tp-hit {
    border-left: 3px solid #22c55e;
}

.signal-row.risk-alert {
    border-left: 3px solid #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.signal-row.pump-alert {
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.change-up {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 4px 8px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
}

.change-down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 8px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
}

.quality-a,
.quality-b,
.quality-c {
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-new {
    background: #166534;
    color: #f0fdf4;
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 20px;
    margin-left: 8px;
    font-weight: 700;
    letter-spacing: 0.02em;
    animation: badgePulse 1.4s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.92;
        transform: scale(1.03);
    }
}

.badge-risk {
    background: #b91c1c;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.badge-tp {
    background: #22c55e;
    color: black;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.badge-pump {
    background: #f59e0b;
    color: #1f1300;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.quality-a {
    background: #22c55e20;
    color: #22c55e;
}

.quality-b {
    background: #fbbf2420;
    color: #fbbf24;
}

.quality-c {
    background: #f9731620;
    color: #f97316;
}

.risk-low {
    color: #22c55e;
}

.risk-med {
    color: #fbbf24;
}

.risk-high {
    color: #f97316;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    min-height: 42px;
}

.page-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #21262d;
    background: #161b22;
    color: #c9d1d9;
    cursor: pointer;
    transition: 0.2s;
}

.page-btn:hover {
    border-color: #38bdf8;
    color: #fff;
}

.page-btn.active {
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #fff;
    border-color: transparent;
}

.fade-target {
    opacity: 1;
    transition: opacity 260ms ease;
}

.fade-target.is-fading {
    opacity: 0.15;
}

.footer {
    margin-top: 30px;
    padding: 30px 0;
    border-top: 1px solid #21262d;
    text-align: left;
    font-size: 12px;
    color: #8b949e;
}

.info-section,
.legal-section {
    margin-top: 24px;
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 16px;
    padding: 16px;
}

.info-section h2,
.legal-section h3 {
    margin-bottom: 10px;
    color: #e6edf3;
}

.info-section p,
.legal-section p {
    margin-bottom: 8px;
    color: #9fb0c9;
}

.seo-content {
    margin-top: 18px;
    padding: 20px;
}

.seo-content ul {
    margin: 8px 0 0 18px;
    color: #9fb0c9;
}

.seo-content li {
    margin-bottom: 8px;
}

.compliance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.compliance-card {
    border: 1px solid #2a364a;
    border-radius: 12px;
    background: #121821;
    padding: 12px;
}

.compliance-card h3 {
    margin-bottom: 6px;
    color: #dbeafe;
    font-size: 0.98rem;
}

.compliance-note {
    margin-top: 10px;
    font-size: 12px;
    color: #93a7c2;
}

.seo-content a {
    color: #38bdf8;
    text-decoration: none;
    border-bottom: 1px dashed rgba(56, 189, 248, 0.45);
}

.seo-content a:hover {
    color: #7dd3fc;
    border-bottom-color: rgba(125, 211, 252, 0.85);
}

.risk-warning-box {
    margin-top: 18px;
    border: 1px solid rgba(239, 68, 68, 0.45);
    background: linear-gradient(160deg, rgba(44, 21, 21, 0.92), rgba(22, 27, 34, 0.96));
    border-radius: 14px;
    padding: 14px;
}

.risk-warning-box h2,
.risk-warning-box h3 {
    margin-bottom: 8px;
    color: #fca5a5;
}

.risk-warning-box p {
    color: #fecaca;
}

.seo-page .footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
}

.seo-page .footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid #2a364a;
    border-radius: 10px;
    background: #111827;
    color: #cfe3ff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
}

.seo-page .footer-links a:hover {
    border-color: #38bdf8;
    background: #173047;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    line-height: 1;
}

.section-title i,
.section-title > span:first-child {
    color: #38bdf8;
    font-size: 18px;
    width: 22px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: translateY(0);
}

.section-title h2,
.section-title h3 {
    margin: 0;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
}

.info-section-hero {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18), 0 8px 30px rgba(56, 189, 248, 0.08);
    background: linear-gradient(160deg, rgba(17, 31, 49, 0.96), rgba(22, 27, 34, 0.96));
}

.legal-section-hero {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.16), 0 8px 30px rgba(239, 68, 68, 0.08);
    background: linear-gradient(160deg, rgba(44, 21, 21, 0.92), rgba(22, 27, 34, 0.96));
}

.legal-section-hero .section-title i {
    color: #f87171;
}

.legal-section-hero .section-title > span:first-child {
    color: #f87171;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}

.footer-links a {
    color: #38bdf8;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-tg-btn {
    background: #066a99;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    font-weight: 600;
}

.footer-tg-btn:hover {
    background: #055b84;
}

.policy-block {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #2a364a;
}

.policy-block h4 {
    color: #d5e2f2;
    margin-bottom: 6px;
}

.policy-block p {
    color: #8b949e;
    margin-bottom: 6px;
}

.footer-copy {
    margin-top: 12px;
}

.policy-accordion {
    display: grid;
    gap: 10px;
}

.policy-item {
    border: 1px solid #2a364a;
    border-radius: 12px;
    background: #121821;
    overflow: hidden;
}

.policy-item summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 600;
    color: #d5e2f2;
    position: relative;
    transition: background 0.2s ease;
}

.policy-item summary::-webkit-details-marker {
    display: none;
}

.policy-item summary::after {
    content: "+";
    position: absolute;
    right: 14px;
    top: 10px;
    color: #38bdf8;
    font-size: 18px;
    font-weight: 700;
}

.policy-item[open] summary::after {
    content: "-";
}

.policy-item summary:hover {
    background: #192230;
}

.policy-content {
    padding: 0 14px 12px;
}

.policy-content p {
    margin-top: 8px;
}

.new-alert {
    background: #22c55e;
    color: black;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #21262d;
    padding-bottom: 12px;
}

.tab {
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    background: transparent;
    border: none;
    color: #8b949e;
}

.tab.active {
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: white;
}

.quick-hint {
    margin: -6px 0 14px;
    font-size: 12px;
    color: #9fb0c9;
}

.hint-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #3a4a62;
    color: #9fb0c9;
    font-size: 11px;
    margin-left: 6px;
    cursor: help;
    vertical-align: middle;
}

.cards-view {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    min-height: 420px;
}

.cards-view.active {
    display: grid;
}

.signal-card {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 20px;
    padding: 20px;
    transition: 0.2s;
}

.signal-card.new-card {
    animation: cardFlash 0.5s ease-out;
    border-color: #22c55e;
}

@keyframes cardFlash {
    0% {
        transform: scale(1);
        border-color: #22c55e;
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
    }
    100% {
        transform: scale(1);
        border-color: #21262d;
    }
}

.signal-card.risk-card {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.signal-card.tp-card {
    border-color: #22c55e;
}

.signal-card.pump-card {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.06);
}

.exchange-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ex-link {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.ex-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.ex-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.6) 40%, transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ex-link:hover::after {
    opacity: 1;
    animation: ex-border-sweep 1.2s linear infinite;
}

.ex-link.auto-shimmer::after {
    opacity: 1;
    animation: ex-border-sweep-slow 2.4s linear 1;
}

@keyframes ex-border-sweep {
    0% {
        background-position: -120px 0;
    }
    100% {
        background-position: 120px 0;
    }
}

@keyframes ex-border-sweep-slow {
    0% {
        background-position: -180px 0;
    }
    100% {
        background-position: 180px 0;
    }
}

.ex-gate {
    background: #0f2d3f;
    color: #00b4ff;
}

.ex-mexc {
    background: #1a2a3a;
    color: #ffc107;
}

.ex-kucoin {
    background: #1e2a3a;
    color: #29ab87;
}

.ex-bingx {
    background: #1a2a2f;
    color: #ff8c00;
}

.ex-bybit {
    background: #1a2a3a;
    color: #f7a600;
}

.feed-section {
    background: #161b22;
    border-radius: 20px;
    padding: 20px;
    margin-top: 30px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.feed-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -20px -20px 12px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #26a5e4, #1d8ec8);
    border-bottom: 1px solid rgba(38, 165, 228, 0.45);
    font-weight: 700;
}

.feed-title-icon {
    color: #0c3d5d;
    background: #26a5e4;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 0 2px rgba(38, 165, 228, 0.2);
    grid-area: icon;
}

.feed-title-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    grid-area: live;
}

.feed-live-dot-standalone {
    width: 10px;
    height: 10px;
    box-shadow: none;
}

.feed-live-label {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    color: #ffffff;
    letter-spacing: 0.8px;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(135deg, #2cd173, #1fb962);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 3px 10px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

@keyframes liveDotPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
    }
    70% {
        transform: scale(1.12);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.feed-title-text {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    font-size: 17px;
    font-weight: 700;
    grid-area: title;
    white-space: nowrap;
}

.feed-chat-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: chatBtnPulse 1.8s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
    grid-area: chat;
}

.feed-chat-btn i {
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.feed-chat-btn:hover {
    transform: translateX(-50%) translateY(-1px);
    filter: brightness(1.1);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
}

@keyframes chatBtnPulse {
    0%, 100% {
        transform: translateX(-50%);
        filter: brightness(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.32);
    }
    50% {
        transform: translateX(-50%);
        filter: brightness(1.08);
        box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
    }
}

.feed-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3a4a62 #111827;
    min-height: 220px;
    width: 100%;
    box-sizing: border-box;
}

.feed-item {
    padding: 12px;
    border-bottom: 1px solid #21262d;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.feed-item .feed-icon {
    flex: 0 0 auto;
}

.feed-content {
    /* basis 0%: avoid "shrink-to-content" width in flex row (empty space on the right). */
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
}

.feed-text {
    /* Slightly smaller on wide viewports so more characters fit per line in the feed strip. */
    font-size: clamp(11.5px, 0.22vw + 10.8px, 13px);
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

/* Fallback for hosts still serving older app.js markup with inline styles. */
.feed-item > div:last-child {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
}

.feed-item > div:last-child > div:last-child {
    width: 100%;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.feed-time {
    font-size: 11px;
    color: #8b949e;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 2px;
}

.feed-date-chip {
    font-size: 10px;
    color: #9fb0c9;
    border: 1px solid #2a364a;
    border-radius: 999px;
    padding: 1px 7px;
}

.feed-item.new-feed {
    animation: feedFlash 0.5s ease-out;
    background: rgba(34, 197, 94, 0.1);
}

@keyframes feedFlash {
    0% {
        background: rgba(34, 197, 94, 0.3);
    }
    100% {
        background: transparent;
    }
}

.feed-icon {
    width: 32px;
    height: 32px;
    background: #1a212c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-icon.risk {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.feed-icon.tp {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.feed-icon.signal {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

.feed-status-emoji {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast {
    background: #1a212c;
    border-left: 4px solid #22c55e;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.toast.risk {
    border-left-color: #ef4444;
}

.toast.tp {
    border-left-color: #22c55e;
}

.feed-list::-webkit-scrollbar {
    width: 10px;
}

.feed-list::-webkit-scrollbar-track {
    background: #111827;
    border-radius: 20px;
}

.feed-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2c3f5b, #3b5377);
    border-radius: 20px;
    border: 2px solid #111827;
}

.feed-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3b5377, #4e6c99);
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        min-height: 188px;
    }
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 14px;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        min-height: 188px;
    }
    .cards-view {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 900px) {
    .header {
        padding: 14px 0;
        margin-bottom: 18px;
    }
    .logo-square {
        width: 44px;
        height: 44px;
    }
    .tg-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .top-nav {
        width: 100%;
    }
    .top-nav a {
        font-size: 11px;
        padding: 7px 10px;
    }
    .seo-content {
        padding: 16px;
    }
    .stat-box {
        padding: 12px;
        border-radius: 12px;
    }
    .stat-value {
        font-size: 22px;
    }
    .activity-bar {
        padding: 10px 12px;
        border-radius: 12px;
        min-height: 58px;
    }
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tabs::-webkit-scrollbar {
        display: none;
    }
    .tab {
        padding: 9px 18px;
        font-size: 13px;
        flex: 0 0 auto;
    }
    .signals-table {
        border-radius: 14px;
        min-height: 460px;
    }
    table {
        min-width: 980px;
    }
    th,
    td {
        padding: 10px 8px;
        font-size: 12px;
    }
    .cards-view {
        grid-template-columns: 1fr;
    }
    .feed-section {
        padding: 14px;
        border-radius: 14px;
    }
    .feed-title {
        margin: -14px -14px 12px;
        padding: 8px 10px;
        font-size: 16px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "icon title live"
            "chat chat chat";
        column-gap: 8px;
        row-gap: 6px;
        align-items: center;
    }
    .feed-live-label {
        font-size: 12px;
        letter-spacing: 0.7px;
    }
    .feed-title-text {
        font-size: 15px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .feed-chat-btn {
        position: static;
        transform: none;
        justify-self: center;
        margin: 0;
        font-size: 10px;
        padding: 4px 10px;
    }
    .feed-chat-btn:hover {
        transform: translateY(-1px);
    }
    .feed-title-actions {
        margin-left: 0;
        justify-self: end;
    }
    .feed-list {
        max-height: 300px;
        min-height: 180px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 10px;
    }
    .header {
        gap: 10px;
    }
    .logo {
        gap: 8px;
    }
    .logo-square {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    .tg-btn {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
    }
    .top-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
    }
    .top-nav a {
        flex: 0 0 auto;
        text-align: center;
        min-width: 0;
        padding: 8px 8px;
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .signals-table th:nth-child(9),
    .signals-table td:nth-child(9) {
        min-width: 132px;
        white-space: normal;
    }
    .signals-table td:nth-child(9) .badge-new,
    .signals-table td:nth-child(9) .badge-risk,
    .signals-table td:nth-child(9) .badge-tp,
    .signals-table td:nth-child(9) .badge-pump {
        margin-left: 0;
        margin-top: 4px;
        font-size: 10px;
        padding: 2px 7px;
    }
    .seo-page .page-seo-h1 {
        font-size: 1.05rem;
    }
    .seo-content {
        padding: 14px;
    }
    .section-title h2,
    .section-title h3 {
        font-size: 1rem;
    }
    .seo-page .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    .compliance-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 18px;
        min-height: 280px;
    }
    .stat-value {
        font-size: 20px;
    }
    .stat-label {
        font-size: 10px;
    }
    .activity-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .pagination {
        gap: 6px;
        flex-wrap: wrap;
        min-height: 42px;
    }
    .page-btn {
        min-width: 38px;
        padding: 7px 10px;
        font-size: 12px;
    }
    .feed-item {
        padding: 10px 8px;
        gap: 8px;
    }
    .feed-title-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .feed-live-label {
        font-size: 10px;
        padding: 2px 8px;
    }
    .feed-chat-btn {
        padding: 3px 8px;
        font-size: 9px;
        gap: 4px;
    }
    .feed-chat-btn i {
        font-size: 14px;
    }
    .feed-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
    .feed-time {
        font-size: 10px;
    }
    .feed-date-chip {
        font-size: 9px;
        padding: 1px 6px;
    }
    .toast-notification {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    .toast {
        width: 100%;
        padding: 10px 12px;
        font-size: 12px;
    }
    .footer {
        margin-top: 20px;
        padding: 18px 0 22px;
        font-size: 11px;
    }
    .footer-links {
        gap: 8px;
    }
    .policy-item summary {
        padding-right: 34px;
    }
}
