body {
    background-color: #090a0f !important; /* Принудительно глушим белый фон */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 12px; margin: 0; color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

*, *:before, *:after { box-sizing: border-box; }

.mosh-ticker-post {
    background-color: #12141c; border: 1px solid #1f2333;
    outline: 1px dashed #2d334a; outline-offset: -6px; 
    border-radius: 24px; padding: 20px; margin: 15px auto; max-width: 480px; 
    display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.mosh-post-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 12px; margin-bottom: 14px;
}

.mosh-asset-info { display: flex; align-items: center; gap: 10px; }
.mosh-ticker {
    background: linear-gradient(135deg, #162a45, #22426c); color: #8bb2e6;
    font-family: monospace; font-weight: 900; font-size: 11px;
    padding: 4px 8px; border-radius: 5px; border: 1px solid rgba(139, 178, 230, 0.15);
}

.mosh-asset-name { color: #ffb300; font-size: 15px; font-weight: 700; }
.mosh-author-block { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #7e8696; font-weight: 600; }
.mosh-post-body { margin-bottom: 15px; }
.mosh-ai-title { color: #ffffff; font-size: 17px; font-weight: 600; line-height: 1.4; margin: 0 0 10px 0; }
.mosh-seo-analysis { color: #7e8696; font-size: 13.5px; line-height: 1.5; margin: 0; }
.mosh-more-btn { background: none; border: none; color: #00b0ff; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 0; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.mosh-spoiler-content { display: none; padding-top: 10px; margin-top: 10px; border-top: 1px dashed rgba(255,255,255,0.05); color: #7e8696; font-size: 12.5px; }

.mosh-post-footer { display: flex; flex-direction: column; gap: 12px; }
.mosh-cap-container { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.01); padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.02); }
.mosh-cap-label { font-size: 12px; color: #7e8696; }
.mosh-cap-value-block { display: flex; align-items: center; gap: 6px; }
.mosh-cap-amount { font-size: 16px; font-weight: 800; color: #ffffff; }

.mosh-share-card { background-color: #1a1d26; border: 1px solid #232736; border-radius: 14px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; }
.mosh-share-left { display: flex; align-items: center; gap: 12px; }
.mosh-share-image { background: rgba(255, 179, 0, 0.05); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid rgba(255, 179, 0, 0.12); }
.mosh-share-label { font-size: 13px; color: #ffffff; font-weight: 600; }
.mosh-share-price-info { display: flex; align-items: center; gap: 8px; }
.mosh-share-price { font-size: 17px; font-weight: 800; color: #ffffff; font-family: monospace; }
.mosh-share-trend { font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 2px; }

.mosh-trade-actions { display: flex; gap: 10px; width: 100%; margin-top: 4px; }
.mosh-btn { flex: 1; background: none; border: 1px solid transparent; padding: 12px 10px; border-radius: 12px; font-weight: 700; font-size: 13px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; }
.mosh-btn.buy { border-color: #00e676; color: #00e676; background: rgba(0, 230, 118, 0.02); }
.mosh-btn.sell { border-color: #ff3d00; color: #ff3d00; background: rgba(255, 61, 0, 0.02); }

.up { color: #00e676; fill: #00e676; }
.down { color: #ff3d00; fill: #ff3d00; }
.mosh-site-header {
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 99999 !important;
    background-color: #090a0f !important;
    width: 100%;
    max-width: 480px; 
    margin: 0 auto;
    /* Увеличили боковые отступы до 16px, чтобы края гарантированно не липли к экрану телефона */
    padding: 12px 16px !important; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* Изменяем логику масштабирования логотипа, чтобы он никогда не вылетал за край */
.mosh-header-logo-link {
    display: block;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    flex: 1;
    max-width: 210px; /* Уменьшили жесткий потолок ширины для мобильных дисплеев */
    margin-right: 10px;
}

.mosh-site-header svg {
    display: block;
    width: 100%; /* Теперь логотип плавно сжимается, если экран телефона слишком узкий */
    height: auto;
}

.mosh-header-right-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: monospace;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s ease;
}

/* Эффект при наведении на десктопе или нажатии на телефоне */
.mosh-header-right-link:hover {
    opacity: 0.8;
}

.mosh-header-profile-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.mosh-user-id {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.mosh-user-balance {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-white);
    white-space: nowrap;
}

/* Стили для аккуратной иконки стрелочки */
.mosh-header-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
/* Убираем любые стандартные рамки и синие подсветки с ссылки логотипа */
.mosh-header-logo-link {
    display: block;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* Фикс стрелочки: принудительно заставляем внутренний SVG принимать цвет из stroke */
.mosh-header-arrow svg {
    display: block;
    width: 12px;
    height: 12px;
}

/* Фикс для ленты: опускаем табло пониже, чтобы первая карточка не пряталась под шапкой [1.1] */
#mosh-ticker-feed {
    margin-top: 95px !important; 
    padding-bottom: 40px;
}
/* ⚡ ПРЕМИАЛЬНЫЙ СИНХРОННЫЙ ДАТЧИК ТРАФИКА */
.mosh-blink-dot {
    display: inline-block !important;
    width: 7px !important;
    height: 7px !important;
    background-color: #00e676 !important; /* Наш сочный неоновый зеленый */
    border-radius: 50% !important;
    margin-right: 5px !important;
    vertical-align: middle !important;
    box-shadow: 0 0 8px #00e676; /* Добавляем неоновое свечение (блеск) */
    animation: moshPulse 1s infinite ease-in-out !important;
}

@keyframes moshPulse {
    0% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.3; transform: scale(0.9); }
}
