/**
 * CSS для публичной части плагина CS2 Траст Фактор Чекер
 * Версия 2.1.0 - Добавлена поддержка монетизации
 */

/* Общие стили контейнера */
.cs2-trust-checker-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important;
    color: #f0f0f0 !important;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    box-sizing: border-box;
    line-height: 1.5;
}

.cs2-trust-checker-container * {
    box-sizing: border-box;
}

.cs2-trust-checker-container h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Переключатель языка */
.cs2-lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 20px;
}

.cs2-lang-btn {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #444;
    border-radius: 6px;
    background: linear-gradient(135deg, #2a2a2a, #333);
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.cs2-lang-btn:hover {
    background: linear-gradient(135deg, #333, #3a3a3a);
    border-color: #555;
    color: #fff;
}

.cs2-lang-btn.active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-color: #4CAF50;
    color: #fff;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.cs2-lang-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Заблокированный переключатель языка (после получения результата) */
.cs2-lang-switcher.cs2-lang-locked {
    opacity: 0.6;
    position: relative;
}

.cs2-lang-switcher.cs2-lang-locked .cs2-lang-btn {
    cursor: not-allowed;
    pointer-events: none;
}

.cs2-lang-switcher.cs2-lang-locked::after {
    content: '🔒';
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

/* Стили формы */
.cs2-trust-checker-form {
    margin-bottom: 24px;
}

.cs2-trust-checker-form .form-group {
    display: flex;
    gap: 12px;
}

.cs2-trust-checker-form input[type="text"] {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #333 !important;
    border-radius: 8px;
    background: linear-gradient(135deg, #2a2a2a, #333) !important;
    color: #f0f0f0 !important;
    transition: all 0.3s ease;
    box-shadow: none;
}

.cs2-trust-checker-form input[type="text"]:focus {
    outline: none;
    border-color: #0b6cfb;
    box-shadow: 0 0 0 4px rgba(11, 108, 251, 0.2);
}

.cs2-trust-checker-form button {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none !important;
    border-radius: 8px;
    background: linear-gradient(135deg, #0b6cfb 0%, #0052cc 100%) !important;
    color: white !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(11, 108, 251, 0.3);
    text-transform: none;
}

.cs2-trust-checker-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 108, 251, 0.4);
}

.cs2-trust-checker-form button:active {
    transform: translateY(0);
}

/* Заблокированная кнопка (во время запроса или cooldown) */
.cs2-trust-checker-form button.cs2-button-disabled,
.cs2-trust-checker-form button:disabled {
    background: linear-gradient(135deg, #555 0%, #444 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.cs2-trust-checker-form button.cs2-button-disabled:hover,
.cs2-trust-checker-form button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Сообщение о throttle (ограничение частоты) */
.cs2-throttle-message {
    background: linear-gradient(135deg, #3a3a4a 0%, #2a2a3a 100%);
    border: 1px solid #555;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
    text-align: center;
}

.cs2-throttle-message p {
    margin: 0;
    color: #ffb74d;
    font-size: 14px;
}

/* Индикатор загрузки */
.cs2-trust-checker-loading {
    text-align: center;
    padding: 40px;
    display: none;
}

.cs2-trust-checker-loading .spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #0b6cfb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.cs2-trust-checker-loading p {
    color: #aaa;
    font-size: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Результаты */
.cs2-trust-result {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Профиль */
.cs2-trust-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.cs2-trust-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cs2-trust-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs2-trust-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 12px;
}

.cs2-trust-profile-info h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #fff;
}

.cs2-trust-profile-info p {
    margin: 4px 0;
    color: #aaa;
    font-size: 14px;
}

.cs2-trust-profile-info a {
    color: #0b6cfb;
    text-decoration: none;
    transition: color 0.2s;
}

.cs2-trust-profile-info a:hover {
    color: #4096ff;
    text-decoration: underline;
}

/* Траст фактор */
.cs2-trust-score-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid #333;
}

.cs2-trust-score {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 0 20px currentColor;
}

.cs2-trust-score-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cs2-trust-level {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs2-trust-level-description {
    color: #ccc;
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Сравнительная шкала (перцентиль) */
.cs2-trust-percentile {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(11, 108, 251, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(11, 108, 251, 0.3);
}

.cs2-trust-percentile p {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.cs2-trust-percentile strong {
    color: #0b6cfb;
    font-size: 20px;
    font-weight: 700;
}

/* Прогноз роста */
.cs2-trust-forecast {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(11, 108, 251, 0.15), rgba(0, 198, 255, 0.15));
    border-radius: 12px;
    border: 2px solid rgba(11, 108, 251, 0.3);
}

.cs2-trust-forecast h4 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.cs2-trust-forecast p {
    margin: 0;
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
}

.cs2-trust-forecast strong {
    color: #0b6cfb;
    font-weight: 700;
    font-size: 18px;
}

/* Компоненты */
.cs2-trust-components {
    margin-bottom: 30px;
}

.cs2-trust-components h4 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.cs2-trust-component {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cs2-trust-component-label {
    width: 160px;
    color: #ccc;
    font-size: 14px;
}

.cs2-trust-component-bar {
    flex: 1;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.cs2-trust-component-fill {
    height: 100%;
    background: linear-gradient(90deg, #0b6cfb, #00c6ff);
    border-radius: 4px;
    transition: width 1s ease-out;
}

.cs2-trust-component-value {
    width: 50px;
    text-align: right;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

/* Детали */
.cs2-trust-details-toggle {
    text-align: center;
    color: #0b6cfb;
    cursor: pointer;
    padding: 10px;
    font-size: 14px;
    transition: color 0.2s;
    user-select: none;
}

.cs2-trust-details-toggle:hover {
    color: #4096ff;
    text-decoration: underline;
}

.cs2-trust-details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
    border: 1px solid #333;
    display: none;
    /* Скрыто по умолчанию, управляется JS */
}

/* Новые стили для деталей */
.cs2-trust-detail-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.cs2-trust-detail-header h4 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
}

.cs2-trust-detail-header p {
    margin: 0;
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
}

.cs2-trust-detail-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid #333;
}

.cs2-trust-detail-section:last-child {
    margin-bottom: 0;
}

.cs2-trust-detail-section h5 {
    margin: 0 0 15px;
    color: #ddd;
    font-size: 16px;
    border-left: 3px solid #0b6cfb;
    padding-left: 10px;
}

.cs2-trust-detail-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #444;
}

.cs2-trust-detail-metric-value {
    font-size: 24px;
    font-weight: bold;
    color: #0b6cfb;
}

.cs2-trust-detail-metric-formula {
    font-family: monospace;
    color: #888;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
}

.cs2-trust-detail-params {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs2-trust-details ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.cs2-trust-details li {
    margin: 0;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 13px;
    color: #ccc;
    display: flex;
    align-items: center;
}

.cs2-trust-details li::before {
    content: "•";
    color: #0b6cfb;
    margin-right: 8px;
    font-size: 18px;
    line-height: 1;
}

.cs2-trust-detail-formula {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(11, 108, 251, 0.1), rgba(0, 0, 0, 0));
    border: 1px solid rgba(11, 108, 251, 0.3);
    border-radius: 8px;
}

.cs2-trust-detail-formula h5 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 16px;
}

.cs2-trust-detail-math {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #ffd700;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    overflow-x: auto;
}

.cs2-trust-detail-formula p {
    margin: 0;
    color: #aaa;
    font-size: 13px;
    line-height: 1.5;
}

/* Disclaimer */
.cs2-trust-disclaimer {
    margin-top: 20px;
    text-align: center;
}

.cs2-trust-disclaimer p {
    margin: 0;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

/* Ошибки */
.cs2-trust-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #ff8a80;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.cs2-trust-error h3 {
    margin: 0 0 10px;
    color: #ff5252;
}

.cs2-retry-button {
    margin-top: 15px;
    padding: 8px 16px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.cs2-retry-button:hover {
    background: #444;
    border-color: #666;
}

.cs2-retry-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cs2-rate-limit-details {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 13px;
    text-align: left;
}

/* Extended Info */
.cs2-trust-extended-info {
    margin-bottom: 30px;
    padding: 24px;
    background: rgba(20, 20, 25, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cs2-trust-extended-info h4 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.cs2-trust-extended-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.cs2-trust-extended-info-item {
    background: rgba(30, 32, 38, 0.6);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s;
}

.cs2-trust-extended-info-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.cs2-trust-extended-info-label {
    color: #888;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.cs2-trust-extended-info-value {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

/* Индикаторы статуса для extended info */
.cs2-status-indicator {
    display: inline-block !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
    border: none !important;
    padding: 0 !important;
}

.cs2-trust-extended-info-item.cs2-status-good .cs2-status-indicator {
    background-color: #4CAF50 !important;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4) !important;
}

.cs2-trust-extended-info-item.cs2-status-warning .cs2-status-indicator {
    background-color: #FFC107 !important;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4) !important;
}

.cs2-trust-extended-info-item.cs2-status-critical .cs2-status-indicator {
    background-color: #F44336 !important;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.4) !important;
}

.cs2-trust-extended-info-item.cs2-status-neutral .cs2-status-indicator {
    background-color: #9e9e9e !important;
    box-shadow: 0 0 5px rgba(158, 158, 158, 0.3) !important;
}

/* --- Notifications & Alerts System --- */

/* 1. Privacy Warning Alert - High Specificity */
.cs2-trust-checker-container .cs2-alert {
    position: relative;
    padding: 20px !important;
    border-radius: 10px !important;
    margin-bottom: 30px !important;
    font-size: 14px;
    line-height: 1.6;
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(10px);
    background-color: transparent; /* Fallback */
}

.cs2-trust-checker-container .cs2-alert-warning {
    background: linear-gradient(135deg, rgba(35, 25, 20, 0.95), rgba(30, 20, 15, 0.9)) !important;
    border: 1px solid rgba(255, 152, 0, 0.15) !important;
    border-left: 4px solid #ff9800 !important;
    color: #e0e0e0 !important;
}

.cs2-trust-checker-container .cs2-alert-warning strong {
    color: #ffcc80 !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.2);
}

/* 2. Cache / Stale Data Info - High Specificity */
.cs2-trust-checker-container .cs2-cache-info {
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    font-size: 14px;
    clear: both !important;
    display: block !important;
    position: relative !important;
}

.cs2-trust-checker-container .cs2-cache-status {
    display: block !important;
    border-radius: 10px !important;
    font-weight: 500;
    position: relative;
}

.cs2-trust-checker-container .cs2-cache-fresh {
    padding: 12px 20px !important;
    background: rgba(76, 175, 80, 0.1) !important;
    color: #81c784 !important;
    border: 1px solid rgba(76, 175, 80, 0.2) !important;
    border-left: 4px solid #4caf50 !important;
}

.cs2-trust-checker-container .cs2-cache-stale {
    background: linear-gradient(135deg, rgba(30, 32, 40, 0.95), rgba(25, 27, 35, 0.9)) !important;
    color: #cfcfcf !important;
    border: 1px solid rgba(11, 108, 251, 0.15) !important;
    border-left: 4px solid #0b6cfb !important;
    padding: 24px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    border-radius: 10px !important;
}

.cs2-trust-checker-container .cs2-cache-stale strong {
    color: #fff !important;
    font-weight: 600;
}

/* Premium upgrade prompt in cache info - Specific targeting */
.cs2-trust-checker-container .cs2-cache-stale div > div:last-child > div:last-child {
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #aaa !important;
    font-size: 13px;
    line-height: 1.5;
}

.cs2-trust-checker-container .cs2-cache-stale div > div:last-child > div:last-child strong {
    color: #ffd700 !important;
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.5);
    margin-left: 4px;
}

.cs2-trust-checker-container .cs2-cache-stale div > div:last-child > div:last-child strong:hover {
    color: #fff !important;
    border-bottom: 1px solid #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.cs2-trust-checker-container .cs2-cache-explanation {
    color: #666 !important;
    margin-top: 10px;
    font-size: 12px;
    font-style: italic;
}

/* Progress Indicator Styles */
.cs2-progress-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.cs2-progress-header {
    text-align: center;
    margin-bottom: 25px;
}

.cs2-main-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #0b6cfb;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

.cs2-progress-main-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.cs2-progress-timer {
    font-size: 13px;
    color: #888;
}

.cs2-estimated-time {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 12px;
}

.cs2-progress-steps {
    margin-bottom: 20px;
}

.cs2-progress-step {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.cs2-progress-step.active {
    background: rgba(11, 108, 251, 0.1);
    border-color: rgba(11, 108, 251, 0.3);
    box-shadow: 0 2px 8px rgba(11, 108, 251, 0.1);
}

.cs2-progress-step.completed {
    background: rgba(76, 175, 80, 0.05);
    border-color: rgba(76, 175, 80, 0.2);
}

.cs2-step-icon {
    font-size: 20px;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.cs2-step-content {
    flex: 1;
}

.cs2-step-title {
    color: #ddd;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 2px;
}

.cs2-progress-step.active .cs2-step-title {
    color: #fff;
}

.cs2-progress-step.completed .cs2-step-title {
    color: #81c784;
}

.cs2-step-subtitle {
    color: #888;
    font-size: 12px;
}

.cs2-step-status {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs2-step-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(11, 108, 251, 0.2);
    border-top: 2px solid #0b6cfb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.cs2-step-check {
    color: #4caf50;
    font-weight: bold;
    font-size: 16px;
}

.cs2-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
}

.cs2-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0b6cfb, #00c6ff);
    width: 0%;
    transition: width 0.3s ease-out;
    border-radius: 2px;
}

.cs2-progress-details {
    text-align: center;
    font-size: 13px;
    color: #aaa;
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 600px) {
    .cs2-trust-checker-container {
        padding: 16px;
    }

    .cs2-trust-checker-form .form-group {
        flex-direction: column;
    }

    .cs2-trust-checker-form button {
        width: 100%;
    }

    .cs2-trust-profile {
        flex-direction: column;
        text-align: center;
    }

    .cs2-trust-score {
        font-size: 48px;
    }

    .cs2-trust-component {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cs2-trust-component-label {
        width: 100%;
    }

    .cs2-trust-component-bar {
        width: 100%;
    }

    .cs2-trust-component-value {
        width: 100%;
        text-align: right;
    }

    .cs2-trust-details ul {
        grid-template-columns: 1fr;
    }

    .cs2-trust-detail-metrics {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cs2-trust-detail-metric-value {
        font-size: 14px;
    }

    /* Адаптивные стили прогресс-индикатора */
    .cs2-progress-container {
        max-width: 100%;
    }

    .cs2-progress-step {
        padding: 10px 12px;
        margin-bottom: 6px;
    }

    .cs2-step-icon {
        font-size: 18px;
        margin-right: 10px;
        min-width: 25px;
    }

    .cs2-step-title {
        font-size: 14px;
    }

    .cs2-step-subtitle {
        font-size: 11px;
    }

    .cs2-progress-main-title {
        font-size: 16px;
    }

    .cs2-main-spinner {
        width: 40px;
        height: 40px;
    }
}

/* Унифицированная секция */
.cs2-section {
    background: linear-gradient(145deg, #1e1e24, #16161c);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cs2-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
    font-size: 18px;
    text-align: center;
    font-weight: 600;
}

/* Стили для монетизации (версия 2.1.0) */

/* Блок проверки (cs2-check-section) */
.cs2-check-section {
    border-color: #0b6cfb;
    box-shadow: 0 4px 24px rgba(11, 108, 251, 0.15);
}

/* Активация ключа */
.cs2-key-activation-section {
    /* Наследует стили .cs2-section */
    padding: 16px 24px;
    /* Чуть меньше паддинг */
    opacity: 0.9;
}

.cs2-key-activation-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #aaa;
}

.cs2-key-activation-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

/* Унифицированные инпуты */
.cs2-key-input,
#steamid {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #121212;
    color: #fff;
    transition: all 0.2s ease;
}

.cs2-key-input:focus,
#steamid:focus {
    outline: none;
    border-color: #0b6cfb;
    box-shadow: 0 0 0 2px rgba(11, 108, 251, 0.2);
}

.cs2-key-message {
    margin-top: 10px;
    min-height: 20px;
}

/* Унифицированные кнопки */
.button.cs2-secondary-btn {
    background: #333;
    color: #ccc;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.button.cs2-secondary-btn:hover {
    background: #444;
    color: #fff;
    border-color: #555;
}

/* Баланс кредитов */
.cs2-credits-balance {
    background: linear-gradient(135deg, #0b6cfb, #0056d6);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    text-align: center;
    border: none;
    box-shadow: 0 4px 12px rgba(11, 108, 251, 0.3);
}

.cs2-credits-balance p {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.cs2-credits-balance strong {
    color: #ffd700;
    font-size: 22px;
    margin-left: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Блок покупки токенов (наследует .cs2-section) */
.cs2-tokens-purchase-section h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cs2-tokens-purchase-section h3::before {
    content: "🪙";
    font-size: 24px;
}

/* Очистка старых стилей */

.cs2-tokens-purchase-section h3::before {
    content: "🪙";
    font-size: 24px;
}

.cs2-tokens-purchase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.cs2-token-purchase-item {
    background: #252530;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.cs2-token-purchase-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0b6cfb, #00d4ff);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.cs2-token-purchase-item:hover {
    transform: translateY(-5px);
    border-color: #555;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: #2a2a35;
}

.cs2-token-purchase-item:hover::before {
    opacity: 1;
}

.cs2-token-amount {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cs2-token-amount span {
    display: block;
    font-size: 13px;
    color: #aaa;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.cs2-token-price {
    color: #4CAF50;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    background: rgba(76, 175, 80, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.cs2-token-price.cs2-price-loading {
    color: #888;
    font-size: 14px;
    font-weight: 400;
    background: transparent;
}

.cs2-buy-token-btn {
    background: linear-gradient(135deg, #0b6cfb, #0056d6);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cs2-buy-token-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2196f3, #0b6cfb);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 108, 251, 0.4);
}

.cs2-buy-token-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.cs2-buy-token-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #444;
}

/* Приглашение к входу */
.cs2-login-prompt {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.cs2-login-prompt p {
    margin: 0;
    color: #ffc107;
}

.cs2-login-prompt a {
    color: #ffd700;
    text-decoration: underline;
}

/* Переключатель премиум */
.cs2-premium-toggle {
    margin-top: 12px;
    padding: 12px;
    background: rgba(11, 108, 251, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(11, 108, 251, 0.3);
}

.cs2-premium-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
}

.cs2-premium-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Блокированные секции для бесплатных пользователей */
.cs2-trust-components-locked,
.cs2-trust-details-locked {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px dashed #444;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    position: relative;
    opacity: 0.8;
}

.cs2-trust-components-locked h4,
.cs2-trust-details-locked h4 {
    color: #888;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cs2-premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.cs2-trust-locked-message {
    color: #aaa;
    line-height: 1.6;
}

.cs2-trust-locked-message p {
    margin: 10px 0;
}

.cs2-trust-locked-message ul {
    margin: 10px 0;
    padding-left: 20px;
}

.cs2-trust-locked-message li {
    margin: 8px 0;
    color: #bbb;
}

/* Превью с размытием */
.cs2-trust-components-preview,
.cs2-trust-details-preview {
    position: relative;
    margin: 20px 0;
}

.cs2-trust-components-blurred-list {
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
}

.cs2-trust-component-blurred-item {
    opacity: 0.6;
    margin-bottom: 12px;
}

.cs2-premium-lock-icon {
    margin-left: 5px;
    font-size: 12px;
}

.cs2-trust-components-upsell {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.cs2-trust-components-upsell p {
    margin: 0;
    color: #ffd700;
}

.cs2-trust-details-blurred {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
    transition: filter 0.3s ease;
}

.cs2-trust-unlock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 10;
}

.cs2-trust-unlock-content {
    text-align: center;
    padding: 30px;
    max-width: 500px;
    color: #fff;
}

.cs2-trust-unlock-content h3 {
    color: #ffd700;
    margin-top: 0;
    font-size: 24px;
}

.cs2-trust-unlock-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.cs2-trust-unlock-content ul {
    text-align: left;
    margin: 15px auto;
    max-width: 400px;
    padding-left: 20px;
}

.cs2-trust-unlock-content li {
    margin: 8px 0;
    color: #ddd;
}

.cs2-unlock-hint {
    color: #ffd700 !important;
    font-weight: bold;
    margin-top: 20px !important;
}

/* Предупреждение о приватности */
.cs2-privacy-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border: 2px solid #ff9800;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    color: #fff;
}

.cs2-privacy-warning h4 {
    margin-top: 0;
    color: #fff;
    font-size: 18px;
}

.cs2-privacy-warning p {
    margin: 8px 0;
    line-height: 1.6;
    color: #fff;
}

/* Адаптивность для новых элементов */
@media (max-width: 768px) {
    .cs2-key-activation-form {
        flex-direction: column;
    }

    .cs2-key-activation-form button {
        width: 100%;
    }

    .cs2-premium-toggle label {
        font-size: 13px;
    }
}

/* Стили для рекомендаций */
.cs2-trust-recommendations {
    margin: 24px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
}

.cs2-trust-recommendations h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
    font-size: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

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

.cs2-recommendation-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    background: #2a2a2a;
    border-left: 4px solid #555;
    transition: transform 0.2s ease;
}

.cs2-recommendation-item:hover {
    transform: translateX(5px);
}

.cs2-rec-level-critical {
    border-left-color: #F44336;
    background: rgba(244, 67, 54, 0.1);
}

.cs2-rec-level-warning {
    border-left-color: #FF9800;
    background: rgba(255, 152, 0, 0.1);
}

.cs2-rec-level-info {
    border-left-color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
}

.cs2-rec-icon {
    font-size: 24px;
    flex-shrink: 0;
    padding-top: 2px;
}

.cs2-rec-content {
    flex: 1;
}

.cs2-rec-text {
    margin: 0;
    line-height: 1.5;
    color: #eee;
    font-size: 15px;
}

.cs2-rec-upsell {
    margin-top: 10px;
}

.cs2-upsell-link {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.cs2-upsell-link:hover {
    opacity: 0.9;
    color: white;
}

/* Топ-3 рекомендации */
.cs2-top-recommendations {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(11, 108, 251, 0.1), rgba(0, 198, 255, 0.1));
    border-radius: 12px;
    border: 2px solid rgba(11, 108, 251, 0.3);
}

.cs2-top-recommendations h5 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.cs2-top-recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cs2-top-recommendation-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(42, 42, 42, 0.8);
    border-left: 5px solid #0b6cfb;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cs2-top-recommendation-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 16px rgba(11, 108, 251, 0.3);
}

.cs2-top-recommendation-item.cs2-rec-level-critical {
    border-left-color: #F44336;
    background: rgba(244, 67, 54, 0.15);
}

.cs2-top-recommendation-item.cs2-rec-level-warning {
    border-left-color: #FF9800;
    background: rgba(255, 152, 0, 0.15);
}

.cs2-top-recommendation-item.cs2-rec-level-info {
    border-left-color: #2196F3;
    background: rgba(33, 150, 243, 0.15);
}

.cs2-top-rec-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0b6cfb, #00c6ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(11, 108, 251, 0.4);
}

.cs2-top-rec-content {
    flex: 1;
}

.cs2-top-rec-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cs2-top-rec-text {
    flex: 1;
    margin: 0;
    line-height: 1.6;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

/* Другие рекомендации */
.cs2-other-recommendations {
    margin-top: 30px;
}

.cs2-other-recommendations h5 {
    margin: 0 0 15px;
    color: #ccc;
    font-size: 16px;
    font-weight: 600;
}

/* Стили для заблокированных рекомендаций (Free версия) */
.cs2-recommendations-locked {
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #333;
}

.cs2-locked-header {
    padding: 15px 20px;
    background: rgba(244, 67, 54, 0.1);
    border-bottom: 1px solid #333;
}

.cs2-locked-header p {
    margin: 0;
    font-size: 15px;
}

.cs2-highlight-red {
    color: #F44336;
}

.cs2-locked-content {
    padding: 20px;
    position: relative;
}

.cs2-blurred-rec-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    background: #2a2a2a;
    border-radius: 6px;
    opacity: 0.6;
}

.cs2-blur-text {
    filter: blur(4px);
    user-select: none;
    color: #aaa;
}

.cs2-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.cs2-lock-icon {
    font-size: 32px;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.cs2-lock-overlay p {
    color: #fff;
    max-width: 300px;
    line-height: 1.5;
    margin: 0;
}

/* История изменений аккаунта - тёмная тема */
.cs2-trust-history {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #1e1e28 0%, #252530 100%);
    border-radius: 12px;
    border: 1px solid #3a3a4a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cs2-trust-history h4 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cs2-history-description {
    margin: 0 0 25px 0;
    color: #aaa;
    font-size: 14px;
}

/* Контейнер графика */
.cs2-history-chart-container {
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a24 0%, #22222c 100%);
    border-radius: 10px;
    border: 1px solid #333340;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    height: 400px;
    position: relative;
}

#cs2-trust-history-chart {
    max-height: 100%;
}

/* Контейнер таблицы */
.cs2-history-table-container {
    overflow-x: auto;
    background: linear-gradient(135deg, #1a1a24 0%, #22222c 100%);
    border-radius: 10px;
    border: 1px solid #333340;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.cs2-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cs2-history-table thead {
    background: linear-gradient(135deg, #282834 0%, #2e2e3a 100%);
    border-bottom: 2px solid #4CAF50;
}

.cs2-history-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
    font-size: 12px;
    cursor: help;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs2-history-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #333340;
    color: #ccc;
    font-size: 13px;
    white-space: nowrap;
}

.cs2-history-table tbody tr {
    transition: background 0.2s ease;
}

.cs2-history-table tbody tr:hover {
    background: rgba(76, 175, 80, 0.08);
}

.cs2-history-table tbody tr:last-child td {
    border-bottom: none;
}

.cs2-history-table strong {
    color: #fff;
    font-weight: 600;
}

/* Индикаторы изменения (дельта) */
.cs2-delta-positive {
    color: #4CAF50;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.cs2-delta-negative {
    color: #F44336;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(244, 67, 54, 0.3);
}

.cs2-delta-neutral {
    color: #777;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cs2-trust-history {
        padding: 20px;
        margin-top: 30px;
    }

    .cs2-history-chart-container {
        height: 300px;
        padding: 15px;
    }

    .cs2-history-table {
        font-size: 12px;
    }

    .cs2-history-table th,
    .cs2-history-table td {
        padding: 8px 10px;
    }
}

/* Заблокированный блок истории (Free версия) */
.cs2-trust-history-locked {
    position: relative;
    overflow: hidden;
}

.cs2-trust-history-locked .cs2-history-chart-locked,
.cs2-trust-history-locked .cs2-history-table-locked {
    filter: blur(5px);
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

/* Фейковый график-заглушка */
.cs2-history-chart-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px;
    background: linear-gradient(135deg, #1a1a24 0%, #22222c 100%);
}

.cs2-fake-chart-line {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
            rgba(76, 175, 80, 0.2) 0%,
            rgba(76, 175, 80, 0.5) 25%,
            rgba(76, 175, 80, 0.3) 50%,
            rgba(76, 175, 80, 0.6) 75%,
            rgba(76, 175, 80, 0.4) 100%);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.2);
}

.cs2-fake-chart-dots {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    top: 50%;
    transform: translateY(-50%);
}

.cs2-fake-chart-dot {
    width: 12px;
    height: 12px;
    background: rgba(76, 175, 80, 0.5);
    border-radius: 50%;
    border: 2px solid rgba(76, 175, 80, 0.8);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

/* Оверлей с призывом к действию */
.cs2-history-locked-overlay {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.cs2-history-locked-content {
    background: rgba(30, 30, 40, 0.95);
    border-radius: 16px;
    padding: 30px 40px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cs2-history-locked-content .cs2-lock-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.cs2-history-locked-content h5 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.cs2-history-locked-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.cs2-history-locked-content li {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cs2-history-locked-content li:last-child {
    border-bottom: none;
}

/* Адаптивность для locked блока */
@media (max-width: 768px) {
    .cs2-history-locked-overlay {
        top: 60px;
    }

    .cs2-history-locked-content {
        padding: 20px 25px;
        margin: 0 15px;
    }

    .cs2-history-locked-content .cs2-lock-icon {
        font-size: 36px;
    }

    .cs2-history-locked-content h5 {
        font-size: 16px;
    }

    .cs2-history-locked-content li {
        font-size: 13px;
    }
}