/**
 * Объединенные стили для публичной части плагина конкурсов трейдеров
 */

/* Стили для разделенных статусов участия и подключения */
.member-participation-status {
    font-weight: bold;
    text-align: center;
}

.member-connection-status {
    text-align: center;
    position: relative;
}

.connection-error {
    display: block;
    color: #dc3232;
    font-size: 0.8em;
    margin-top: 2px;
    font-weight: normal;
    line-height: 1.2;
}

.status-disqualified {
    color: #ff8c00 !important;
    background: none !important;
    background-color: transparent !important;
}

.status-quitted {
    color: #999 !important;
    background: none !important;
    background-color: transparent !important;
}

.connection-disconnected {
    color: #dc3232;
}

.connection-normal {
    color: #46b450;
}

/* Дополнительные стили для участия */
.member-participation-status {
    font-weight: bold;
    text-align: center;
}

.member-participation-status span,
.account-participation-status span {
    background: none !important;
    background-color: transparent !important;
}

/* Разделение блоков дисквалификации и ошибок подключения */
.disqualification-block {
    border-left: 4px solid #ff8c00;
    background-color: #fff8f0;
    margin-bottom: 15px;
}

.connection-error-block {
    border-left: 4px solid #dc3232;
    background-color: #fef7f7;
}

.disqualification-block .account-error-title {
    color: #ff8c00;
    font-weight: bold;
}

.connection-error-block .account-error-title {
    color: #dc3232;
    font-weight: bold;
}

/* Добавьте эти стили в конец файла frontend.css */

/* Анимация ожидания для формы регистрации счета */

/* Дополнительные стили для анимации загрузки */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid rgba(0, 115, 170, 0.2);
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

/* Более явные стили для анимации точек */
.progress-dots:after {
    content: ".";
    animation: dots 1.5s infinite steps(4);
    display: inline-block;
    width: 20px;
}

/* Убедимся, что анимация видна */
@keyframes dots {
    0% {
        content: ".";
    }

    25% {
        content: "..";
    }

    50% {
        content: "...";
    }

    75% {
        content: "....";
    }

    100% {
        content: ".";
    }
}

/* Более заметная анимация пульсации */
.form-message.info.loading {
    animation: pulse 1.5s infinite ease-in-out;
    background-color: #e3f2fd;
    border-left: 4px solid #2196F3;
}


@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

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

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

.form-message.info.loading {
    position: relative;
    padding-left: 30px;
    animation: pulse 1.5s infinite ease-in-out;
}

.form-message.info.loading:before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    margin-top: -8px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 115, 170, 0.2);
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Стили для индикатора прогресса */
.progress-indicator {
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
    color: #666;
}

.progress-dots {
    display: inline-block;
    width: 24px;
    text-align: left;
}

@keyframes dots {
    0% {
        content: ".";
    }

    33% {
        content: "..";
    }

    66% {
        content: "...";
    }

    100% {
        content: "";
    }
}

.progress-dots:after {
    content: "";
    animation: dots 1.5s infinite steps(4);
}

/* Стили для индикатора времени ожидания */
.wait-time {
    display: inline-block;
    font-weight: bold;
    color: #0073aa;
}

/* Улучшенные стили для сообщений формы */
.form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4CAF50;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #F44336;
}

.form-message.info {
    background-color: #e3f2fd;
    color: #0d47a1;
    border-left: 4px solid #2196F3;
}

/* Анимация для кнопки отправки формы */
@keyframes button-loading {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.form-submit.loading {
    background-size: 200% 200%;
    background-image: linear-gradient(45deg, #0073aa, #2196F3, #0073aa);
    animation: button-loading 2s ease infinite;
    color: white;
    pointer-events: none;
}


/* Стили для выпадающих списков в формах конкурсов */
/* Улучшенные стили для выпадающих списков */
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    /* Убедитесь, что цвет текста достаточно темный */
    transition: border-color 0.3s, box-shadow 0.3s;
    appearance: none;
    /* Убираем стандартный вид */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" viewBox="0 0 12 6"><path fill="%23666" d="M0 0l6 6 6-6z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    cursor: pointer;
    height: auto;
    /* Переопределяем фиксированную высоту, если она задана в теме */
    line-height: normal;
    /* Переопределяем line-height, если он задан в теме */
}

.form-group select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.form-group select:hover {
    border-color: #bbb;
}

/* Стили для опций в выпадающем списке */
.form-group select option {
    padding: 10px;
    background-color: #fff;
    color: #333;
}

/* Стили для выпадающего списка в состоянии disabled */
.form-group select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {

    .account-open-orders h2,
    .account-order-history h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .pagination {
        margin: 15px 0;
    }
    
    .pagination select {
        width: 100%;
        max-width: 300px;
    }
    
    .no-orders {
        padding: 15px;
        font-size: 14px;
    }
    .form-group select {
        padding: 12px 15px;
        /* Увеличиваем отступы для лучшего касания на мобильных */
        background-position: right 12px center;
    }
}


/* Стили для блока общей статистики */
.contests-stats-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

/* Стили для отображения призовых мест на странице конкурса */
.prize-place-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    font-size: 14px;
    margin-right: 5px;
}

.prize-place-badge.place-1 {
    background: #FFD700;
    color: #333;
}

.prize-place-badge.place-2 {
    background: #C0C0C0;
    color: #333;
}

.prize-place-badge.place-3 {
    background: #CD7F32;
    color: #fff;
}

.prize-place-badge:not(.place-1):not(.place-2):not(.place-3) {
    background: #e0e0e0;
    color: #333;
}

.prize-description {
    font-size: 13px;
    color: #666;
    margin: -5px 0 10px 30px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #eee;
}

.prize-amount {
    font-weight: bold;
    color: #4CAF50;
}


/* Добавьте эти стили в frontend.css */

/* Новые стили для карточного дизайна конкурсов с боковой статистикой */

/* Контейнер с гридом для основного контента и боковой панели */
.contests-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin: 40px 0;
}

/* Стили для основного контента */
.contests-main-content {
    width: 100%;
}

/* Стили для боковой панели статистики */
.contests-sidebar {
    position: sticky;
    top: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    height: fit-content;
}

.contests-stats-container .contests-sidebar {
    position: sticky;
    top: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    height: fit-content;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.stats-item {
    margin-bottom: 25px;
}

.stats-label {
    font-size: 14px;
    color: #757575;
    margin-bottom: 8px;
    display: block;
}

.stats-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.stats-value.highlight {
    color: #4CAF50;
}

.stats-value.prize {
    color: #F57C00;
}

.stats-description {
    font-size: 12px;
    color: #9e9e9e;
}

.top-leaders {
    margin-top: 30px;
}

.leader-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.leader-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 12px;
}

.leader-rank.top-1 {
    background: #FFD700;
    color: #333;
}

.leader-rank.top-2 {
    background: #C0C0C0;
    color: #333;
}

.leader-rank.top-3 {
    background: #CD7F32;
    color: #fff;
}

.leader-info {
    flex-grow: 1;
}

.leader-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
}

.leader-contest {
    font-size: 12px;
    color: #757575;
}

.leader-profit {
    font-weight: 700;
    font-size: 16px;
}

.leader-profit.positive {
    color: #4CAF50;
}

.leader-profit.negative {
    color: #F44336;
}

/* Улучшенные стили для блока "Топ 5 участников" на странице конкурса */
.contest-top-players {
    margin-top: 20px;
}

.contest-top-players-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
    display: flex;
    align-items: center;
}

.contest-top-players-icon {
    margin-right: 8px;
    font-size: 20px;
}

.contest-sidebar-section.contest-top-players .leader-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contest-sidebar-section.contest-top-players .leader-rank {
    width: 28px;
    height: 28px;
    margin-right: 10px;
}

.contest-sidebar-section.contest-top-players .leader-name {
    font-size: 13px;
}

.contest-sidebar-section.contest-top-players .leader-profit {
    font-size: 14px;
}

/* Общие стили для Топ спонсоров */
.top-sponsors {
    margin-top: 30px;
}

.sponsor-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sponsor-logo-wrap {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logo-small {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.sponsor-no-logo {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #333;
}

.sponsor-info {
    flex-grow: 1;
}

.sponsor-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
}

.sponsor-contests-count {
    font-size: 12px;
    color: #757575;
}

/* Новый дизайн карточки конкурса */
.contests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}


.contest-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.contest-card-new {
    background-color: #ffffff;
    border-radius: 0.75rem;
    /* rounded-xl */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* shadow-md */
    padding: 1.5rem;
    /* p-6 */
    min-width: 280px;
    max-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.contest-card-new:hover {
    transform: scale(1.05);
    /* scale-105 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* shadow-lg */
    cursor: pointer;
}

.contest-status-badge-new {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    /* px-3 py-1 */
    border-radius: 0.375rem;
    /* rounded-md */
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: white;
}

.contest-status-badge-new.active {
    background-color: #10B981;
    /* green-500 */
}

.contest-status-badge-new.upcoming {
    background-color: #3B82F6;
    /* blue-500 */
}

.contest-status-badge-new.completed {
    background-color: #F97316;
    /* orange-500 */
}

.contest-status-badge-new.draft {
    background-color: #f59e0b;
    color: #ffffff;
}

.contest-card-new.contest-draft {
    border: 2px dashed #f59e0b;
    opacity: 0.9;
}

.contest-title-new {
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 600;
    /* font-semibold */
    color: #000000;
    margin-top: 0.5rem;
    /* mt-2 */
    margin-bottom: 1rem;
    line-height: 1.4;
}

.contest-data-block {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.contest-data-item {
    display: flex;
    flex-direction: column;
}

.contest-data-label {
    font-size: 0.875rem;
    /* text-sm */
    color: #6B7280;
    /* gray-500 */
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.contest-data-value {
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 500;
    /* font-medium */
    color: #000000;
}

.contest-data-value.prize-value {
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 700;
    /* font-bold */
    color: #F97316;
    /* orange-500 */
}

.contest-sponsor {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
    /* gray-200 */
}

.sponsor-logo {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    object-fit: contain;
}

.sponsor-text {
    font-size: 0.875rem;
    /* text-sm */
    color: #6B7280;
    /* gray-500 */
}

.sponsor-text strong {
    font-weight: 700;
    /* font-bold */
    color: #000000;
}

/* Адаптивность */
@media (max-width: 640px) {
    .contests-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .contest-card-new {
        padding: 1.25rem;
    }

    .contest-title-new {
        font-size: 1.125rem;
    }

    .contest-data-value.prize-value {
        font-size: 1.125rem;
    }
}

/* Стили для пагинации */
/* Старые стили пагинации (оставляем для совместимости) */
.contests-pagination {
    margin-top: 40px;
    text-align: center;
}

.contests-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 6px;
    background: #fff;
    color: #333;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.contests-pagination .page-numbers:hover {
    background: #f5f5f5;
}

.contests-pagination .page-numbers.current {
    background: #4CAF50;
    color: white;
}

.contests-pagination .prev,
.contests-pagination .next {
    padding: 10px 20px;
}

/* Новая современная пагинация с лучшими практиками */
.contests-pagination-modern {
    margin: 50px auto 30px;
    padding: 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.contests-pagination-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contests-pagination-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contests-pagination-link,
.contests-pagination-link.contests-pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 16px;
    background: #ffffff;
    color: #333333;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.contests-pagination-link:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.contests-pagination-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.contests-pagination-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Текущая страница - более специфичный селектор для надежности */
.contests-pagination-link.contests-pagination-current,
.contests-pagination-number.contests-pagination-current,
span.contests-pagination-current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border-color: #667eea !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
    cursor: default;
    font-weight: 600;
}

.contests-pagination-link.contests-pagination-current:hover,
.contests-pagination-number.contests-pagination-current:hover,
span.contests-pagination-current:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border-color: #667eea !important;
    transform: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
}

/* Кнопки Prev/Next */
.contests-pagination-prev .contests-pagination-link,
.contests-pagination-next .contests-pagination-link {
    gap: 8px;
    padding: 10px 20px;
    font-weight: 500;
}

.contests-pagination-prev .contests-pagination-link svg,
.contests-pagination-next .contests-pagination-link svg {
    flex-shrink: 0;
}

.contests-pagination-text {
    white-space: nowrap;
}

/* Многоточие */
.contests-pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 8px;
    pointer-events: none;
}

.contests-pagination-ellipsis-text {
    color: #999;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .contests-pagination-modern {
        margin: 40px 0 20px;
    }

    .contests-pagination-list {
        gap: 6px;
    }

    .contests-pagination-link,
    .contests-pagination-link.contests-pagination-number {
        min-width: 40px;
        min-height: 40px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .contests-pagination-prev .contests-pagination-link,
    .contests-pagination-next .contests-pagination-link {
        padding: 8px 14px;
        font-size: 14px;
    }

    .contests-pagination-text {
        display: none;
    }

    .contests-pagination-prev .contests-pagination-link svg,
    .contests-pagination-next .contests-pagination-link svg {
        margin: 0;
    }

    /* Скрываем многоточие на очень маленьких экранах */
    @media (max-width: 480px) {
        .contests-pagination-ellipsis {
            display: none;
        }
    }
}

/* Улучшенные состояния для доступности */
@media (prefers-reduced-motion: reduce) {
    .contests-pagination-link {
        transition: none;
    }
}

/* Темная тема (опционально, если используется) */
@media (prefers-color-scheme: dark) {
    .contests-pagination-link {
        background: #2d2d2d;
        color: #e0e0e0;
        border-color: #404040;
    }

    .contests-pagination-link:hover {
        background: #3d3d3d;
        border-color: #667eea;
        color: #667eea;
    }

    .contests-pagination-current {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #ffffff;
    }
}

/* Стили для сообщения об отсутствии конкурсов */
.no-contests-found {
    background: #f9f9f9;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    margin: 40px 0;
}

.no-contests-found p {
    font-size: 18px;
    color: #757575;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .contests-layout {
        grid-template-columns: 1fr;
    }

    .contests-sidebar {
        position: static;
        margin-top: 30px;
    }
}

@media (min-width: 1200px) {
    .contests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .chart-container {
        height: 300px !important; /* Уменьшаем высоту графика на мобильных */
    }

    .chart-scroll-container {
        padding: 10px;
    }

    .chart-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chart-period-control {
        width: 100%;
        margin-bottom: 10px;
    }
    
    #chart_period {
        width: 100%;
    }
    
    .chart-legend {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .orders-table-container {
        margin-bottom: 20px;
    }
    
    .orders-table {
        min-width: 650px; /* Минимальная ширина таблицы */
    }
    
    .orders-table th,
    .orders-table td {
        padding: 8px 6px;
        font-size: 12px;
        white-space: nowrap; /* Предотвращает перенос текста на мобильных */
    }

    .financial-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки вместо 6 на мобильных */
    }
    
    .financial-item {
        padding: 10px;
    }
    
    .financial-value {
        font-size: 1rem;
    }
    .contests-grid {
        grid-template-columns: 1fr;
    }

    .contest-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .financial-grid {
        grid-template-columns: 1fr; /* 1 колонка на очень маленьких экранах */
    }
}

/* Анимации для счетчиков */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animated-counter {
    animation: countUp 1s ease-out forwards;
}


/* Стили для графика счета (account chart) */
.account-chart-container {
    position: relative;
    width: 100% !important;
    /* Занимает 100% ширины родителя */
    height: 400px !important;
    /* Фиксированная высота */
    margin: 0 auto;
}

.account-chart-scroll-container {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* Стили для графика лидеров (leaders chart) */
.leaders-chart-container {
    position: relative;
    width: 100% !important;
    /* Занимает 100% ширины родителя */
    height: 400px !important;
    /* Фиксированная высота */
    margin: 0 auto;
}

.leaders-chart-scroll-container {
    width: 100%;
    overflow-x: hidden;
    /* Скрываем горизонтальную прокрутку */
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    max-width: 1166px;
}


/* Стили для формы редактирования счета */
.account-edit-form {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.account-edit-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #333;
}

.account-edit-form .form-group {
    margin-bottom: 15px;
}

.account-edit-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.account-edit-form input[type="text"],
.account-edit-form input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.account-edit-form .field-hint {
    color: #777;
    font-size: 0.9em;
    margin-top: 5px;
    margin-bottom: 0;
}

.account-edit-form .form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.account-edit-form .form-submit,
.account-edit-form .form-cancel {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.account-edit-form .form-submit {
    background-color: #2271b1;
    color: #fff;
}

.account-edit-form .form-cancel {
    background-color: #f0f0f0;
    color: #333;
}

.account-edit-form .form-submit:hover {
    background-color: #135e96;
}

.account-edit-form .form-cancel:hover {
    background-color: #e0e0e0;
}

.account-edit-form .form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.account-edit-form .form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.account-edit-form .form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.account-edit-form .form-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}


/* Стили для кнопки удаления счета */
.account-action-button.delete {
    background-color: #f44336;
    color: white;
    margin-top: 15px;
}

.account-action-button.delete:hover {
    background-color: #d32f2f;
}

.account-action-button.disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: pointer !important;
    opacity: 0.7;
}

.account-action-button.disabled:hover {
    background-color: #bbb !important;
}

.account-action-button.warning-action {
    background-color: #f57c00;
    color: #fff;
    border-color: #e65100;
    margin-top: 10px;
}

.account-action-button.warning-action:hover {
    background-color: #ff9800;
}

.delete-status {
    margin-top: 5px;
    font-size: 14px;
    padding: 5px 0;
}

.delete-status.error {
    color: #f44336;
}

.delete-status.success {
    color: #4CAF50;
}

/* Улучшенная стилизация блока управления графиком */
.contest-leaders-chart {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
}

.contest-leaders-chart h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.chart-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-filter {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.chart-filter label {
    font-weight: 600;
    margin-right: 12px;
    color: #555;
    white-space: nowrap;
}

#leaders_chart_period {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6"><path d="M0 0h12L6 6z" fill="%23555"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    min-width: 120px;
}

#leaders_chart_period:hover {
    border-color: #aaa;
}

#leaders_chart_period:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
    outline: none;
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
    .orders-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    

    .form-group select {
        padding: 12px 15px;
        /* Увеличиваем отступы для лучшего касания на мобильных */
        background-position: right 12px center;
    }
}

.chart-filter {
    width: 100%;
    margin-bottom: 10px;
}

#leaders_chart_period {
    width: 100%;
}

/* Общие стили */
.contests-archive-container,
.contest-single-container,
.account-single-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Стили для архивной страницы конкурсов */
.contests-archive-header {
    margin-bottom: 40px;
    text-align: center;
}

.contests-archive-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.contests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contest-card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.contest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.contest-card.active {
    border-left: 4px solid #4CAF50;
}

.contest-card.upcoming {
    border-left: 4px solid #2196F3;
}

.contest-card.completed {
    border-left: 4px solid #9E9E9E;
}

.contest-card-header {
    position: relative;
}

.contest-thumbnail {
    width: 100%;
    height: auto;
}

.contest-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.contest-card-content {
    padding: 20px;
}

.contest-card-footer {
    text-align: center;
    margin-top: 20px;
}

.contest-details-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.contest-details-button:hover {
    background-color: #005177;
    color: white;
}

/* Стили для одиночного конкурса */
.contest-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    text-align: center;
}

.contest-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.contest-title a {
    color: #333;
    text-decoration: none;
}

.contest-title a:hover {
    color: #0073aa;
}

.contest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    justify-content: center;
    color: #666;
}

.contest-meta>div {
    margin-bottom: 5px;
}

.contest-date-label,
.contest-prize-label,
.contest-participants-label {
    font-weight: bold;
    margin-right: 5px;
}

.contest-excerpt {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.contest-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.contest-status.active {
    background-color: #4CAF50;
    color: white;
}

.contest-status.upcoming {
    background-color: #2196F3;
    color: white;
}

.contest-status.completed,
.contest-status.finished {
    background-color: #9E9E9E;
    color: white;
}

.contest-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .contest-details {
        grid-template-columns: 1fr;
    }
}

.contest-main-content {
    line-height: 1.6;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.contest-featured-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.contest-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.contest-description {
    margin-bottom: 30px;
}

.contest-description h2,
.contest-rules h2,
.contest-participants h2 {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.contest-short-description {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Стили для боковой панели */
.contest-sidebar {
    font-size: 14px;
    align-self: start;
}

.contest-sidebar-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contest-sidebar-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.contest-info-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.contest-info-label {
    font-weight: bold;
    color: #555;
}

.contest-info-value {
    text-align: right;
}

.contest-info-value.active {
    color: #4CAF50;
    font-weight: bold;
}

.contest-info-value.upcoming {
    color: #2196F3;
    font-weight: bold;
}

.contest-info-value.completed {
    color: #9E9E9E;
    font-weight: bold;
}

.contest-info-item a {
    color: #1e88e5;
    text-decoration: none;
}

.contest-info-item a:hover {
    text-decoration: underline;
}

.prize-amount {
    font-weight: bold;
    color: #4CAF50;
}

/* Кнопки регистрации и действий */
.contest-register-button,
.contest-account-button,
.contest-registration-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-bottom: 15px;
    margin-top: 1rem;
}

.contest-register-button:hover,
.contest-account-button:hover,
.contest-registration-button:hover {
    background-color: #45a049;
    color: white;
}

.contest-entry-requirements {
    margin-top: 15px;
    font-size: 13px;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
}

.contest-share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    flex: 1;
    padding: 8px;
    text-align: center;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 12px;
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.telegram {
    background-color: #0088cc;
}

.share-button:hover {
    opacity: 0.9;
    color: white;
}

/* Стили для таблицы участников */
.contest-participants {
    margin-top: 40px;
}

.participants-search {
    margin-bottom: 20px;
}

#search-participant {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.participants-table-container {
    overflow-x: auto;
}

.participants-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
}

.participants-table th {
    background-color: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    font-weight: bold;
}

.participants-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.platform-label {
    margin-left: 4px;
    font-size: 0.75em;
    color: #666;
}

.participants-table tr:hover {
    background-color: #f9f9f9;
}

.participants-table th.sortable {
    cursor: pointer;
    position: relative;
}

.participants-table th.sortable:after {
    content: '↕';
    position: absolute;
    right: 10px;
    opacity: 0.5;
}

.participants-table th.sortable.asc:after {
    content: '↑';
    opacity: 1;
}

.participants-table th.sortable.desc:after {
    content: '↓';
    opacity: 1;
}

/* Pagination for participants table */
.contest-participants-pagination {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.contest-participants-pagination .pagination-ellipsis {
    padding: 8px 4px;
    min-width: auto;
}

.contest-participants-pagination .pagination-ellipsis span {
    display: inline-block;
    padding: 0 4px;
    color: #666;
    font-size: 14px;
    cursor: default;
    user-select: none;
}

.contest-participants-pagination .pagination-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}

.contest-participants-pagination .pagination-list li {
    margin: 0;
}

.contest-participants-pagination .pagination-list a,
.contest-participants-pagination .pagination-list span {
    display: inline-block;
    padding: 8px 14px;
    min-width: 40px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
}

.contest-participants-pagination .pagination-list a:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.contest-participants-pagination .pagination-current {
    font-weight: 600;
    background: #f0f0f0 !important;
    border-color: #999 !important;
}

.contest-participants-pagination .pagination-info {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Стили для индикатора статуса */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle; /* Важно для вертикального выравнивания */
    position: relative;
    top: -1px; /* Небольшая корректировка позиции */
}

.status-connected {
    background-color: #4CAF50;
}

.status-disconnected {
    background-color: #F44336;
}

.status-disqualified {
    background-color: #FF9800;
}

/* Стили для статуса в заголовке счета */
.account-status.disqualified {
    color: #FF9800;
    font-weight: bold;
}

.status-indicator.status-disqualified {
    background-color: #FF9800;
}

/* Стиль для индикатора в таблице админки */
.status-indicator.disqualified {
    background-color: #FF9800;
}

.update-time {
    font-size: 12px;
}

.update-time.recent {
    color: #4CAF50;
}

.update-time.moderate {
    color: #FF9800;
}

.update-time.stale {
    color: #F44336;
}

/* Стили для списка конкурсов */
.contests-list-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.contests-title {
    font-size: 24px;
    margin: 0;
}

.contests-count {
    color: #ff4444;
    margin-left: 10px;
}

.contests-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.contests-table th,
.contests-table td {
    padding: 15px;
    border: 1px solid #ddd;
}

.contests-table th {
    background: #f5f5f5;
    text-align: left;
}

/* Стили для формы регистрации */
.account-registration-form,
.contest-registration-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid #eee;
}

#contest-account-form .form-group {
    margin-bottom: 20px;
}

#contest-account-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#contest-account-form input[type="text"],
#contest-account-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.field-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.form-submit {
    padding: 10px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-cancel {
    padding: 10px 15px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.form-submit:hover {
    background-color: #005177;
}

.form-cancel:hover {
    background-color: #eee;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.form-message.info {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

.registration-notes {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.account-registration-form h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 25px;
    /* Увеличиваем отступ после заголовка */
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.account-registration-form h3,
.contest-registration-form h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Стили для ссылки на условия конкурса */
.contest-terms-notice {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.terms-link-wrapper {
    margin: 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}

.contest-terms-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.contest-terms-link:hover {
    color: #0d47a1;
    border-bottom-color: #0d47a1;
    text-decoration: none;
}

/* Добавить эти стили для фиксированного размера графика */
.chart-container {
    position: relative;
    width: 100% !important;
    /* Занимает 100% ширины родителя */
    height: 400px !important;
    /* Фиксированная высота */
    margin: 0 auto;
}

/* Классы для больших наборов данных */
.chart-container.large-dataset {
    min-height: 350px;
}

.chart-container.very-large-dataset {
    min-height: 400px;
}

/* Улучшение внешнего вида контейнера графика */
.chart-scroll-container {
    width: 100%;
    overflow-x: hidden; /* Изменить с auto на hidden */
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    max-width: 1166px; /* Добавить максимальную ширину */
    /* Важно: обеспечивает горизонтальную прокрутку */
    -webkit-overflow-scrolling: touch;
    /* Плавная прокрутка на iOS */
}

/* Настройка полосы прокрутки для лучшего UX */
.chart-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.chart-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.chart-scroll-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.chart-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Стили для легенды под графиком */
.chart-legend-below {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
}

.chart-legend-below .legend-item {
    margin: 5px 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.chart-legend-below .legend-item:hover {
    background-color: #f5f5f5;
}

.chart-legend-below .legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 2px;
}

.chart-legend-below .legend-label {
    font-size: 14px;
}

/* Стиль для скрытых серий */
.chart-legend-below .legend-item.legend-hidden {
    opacity: 0.5;
}


/* Легенда графика */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0 15px 10px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 2px;
}

.legend-label {
    margin-right: 5px;
    font-weight: 500;
    font-size: 14px;
}

.legend-value {
    font-weight: bold;
}

.chart-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.chart-period-control {
    display: flex;
    align-items: center;
}

#chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.chart-period-control label {
    margin-right: 8px;
    font-weight: 600;
    font-size: 14px;
}

.chart-period-control select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    min-width: 120px;
    cursor: pointer;
}

.chart-period-control select:focus {
    border-color: #4285f4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.hidden {
    display: none;
}

/* Стили для страницы счета */
.account-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.account-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.account-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
}

.account-status {
    display: flex;
    align-items: center;
}

.account-status.connected {
    color: #4CAF50;
}

.account-status.disconnected {
    color: #F44336;
}

.error-tooltip {
    margin-left: 5px;
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #F44336;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 11px;
    cursor: help;
}

.account-details {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {

    .account-sidebar-section {
        margin-top: 20px;
    }
    
    .account-action-button {
        padding: 12px; /* Увеличиваем размер кнопок для удобства на мобильных */
    }
    .account-details {
        grid-template-columns: 1fr;
    }

    .chart-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .chart-period-control {
        width: 100%;
        margin-bottom: 10px;
    }

    .chart-period-control select {
        width: 100%;
    }

    .chart-legend {
        justify-content: flex-start;
    }
}

.account-financial-data {
    margin-bottom: 30px;
}

.financial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.financial-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.financial-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.financial-value {
    font-size: 22px;
    font-weight: bold;
}

.financial-value.profit-positive {
    color: #4CAF50;
}

.financial-value.profit-negative {
    color: #F44336;
}

.account-section {
    margin-bottom: 30px;
}

.account-section h2,
.account-open-orders h2,
.account-order-history h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.orders-table-container {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch; /* Добавляем для плавной прокрутки на iOS */
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
    min-width: 650px; /* Устанавливаем минимальную ширину таблицы */
}

.orders-table th {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    font-weight: bold;
}

.orders-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.orders-table tr:hover {
    background-color: #f9f9f9;
}

.pagination {
    margin: 20px 0;
    text-align: center;
}

.pagination select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.account-main-content,
.account-sidebar {
    min-width: 0;
}

.account-sidebar-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.account-sidebar-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.account-info-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.account-info-label {
    font-weight: bold;
    color: #666;
}

.account-info-value {
    text-align: right;
}

.account-action-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #0073aa;
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

.account-action-button:hover {
    background-color: #005177;
    color: white;
}

.account-action-button.refresh {
    background-color: #4CAF50;
}

.account-action-button.refresh:hover {
    background-color: #3d8b40;
}

.refresh-status {
    margin-top: 10px;
    font-size: 13px;
}

.refresh-status.success {
    color: #4CAF50;
}

.refresh-status.error {
    color: #F44336;
}

.no-orders,
.no-participants {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    color: #666;
}

.order-buy {
    color: #4CAF50;
    font-weight: bold;
}

.order-sell {
    color: #F44336;
    font-weight: bold;
}

/* Стили для записи текущего пользователя */
.current-user-account {
    background-color: rgba(0, 115, 170, 0.05);
}

.current-user-account.highlighted {
    background-color: rgba(0, 115, 170, 0.1);
    animation: highlight-row 2s ease;
}

@keyframes highlight-row {
    0% {
        background-color: rgba(0, 115, 170, 0.3);
    }

    100% {
        background-color: rgba(0, 115, 170, 0.1);
    }
}

/* Стили для ошибок и уведомлений */
.error-message,
.notice-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.error-message {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

.notice-message {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #0d47a1;
}

/* Анимации */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

.loading:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* Стили для подсказки и процентного значения чистой прибыли v1 */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #e0e0e0;
    color: #333;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 5px;
    cursor: help;
    position: relative;
    font-weight: bold;
}

.tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    width: 300px;
    z-index: 10;
    font-weight: normal;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    text-align: left;
}

.tooltip-icon:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
    z-index: 11;
    margin-bottom: 4px;
}

.profit-percent {
    font-size: 16px;
    margin-top: 5px;
    font-weight: 600;
}

/* Стили для мини-графика Equity v1.0.0 */
.equity-curve-item {
    /* Удаляем grid-column: span 2, чтобы блок был стандартного размера */
}

.equity-curve-container {
    padding: 5px 0;
    min-height: 30px;
}

#equityCurveChart {
    width: 100%;
    height: 30px;
    display: block;
}

#equityCurveChart path {
    stroke: #34a853;
    stroke-width: 2;
    fill: none;
}

#equityCurveChart .equity-curve-area {
    fill: rgba(52, 168, 83, 0.1);
    stroke: none;
}

/* Стили для точек на мини-графике */
#equityCurveChart circle {
    fill: #34a853;
    r: 2;
}

/* Анимация загрузки для мини-графика */
.equity-curve-loading {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding: 10px 0;
}

/* Стиль для форматированного вывода просадки */
.drawdown-formatted {
    display: inline-block;
    color: inherit;
}
/* Чтобы убедиться, что profit-negative не добавляет лишний минус */
.profit-negative .drawdown-formatted:before {
    content: none;
}

/* Стили для секции статистики по инструментам v1.0.1 */
.symbol-statistics {
    margin-bottom: 30px;
}

.symbols-controls {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.symbols-controls button {
    margin-right: 10px;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.symbols-controls button:hover {
    background-color: #e8e8e8;
}

.symbol-filter {
    margin-left: auto;
    padding: 5px 10px;
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.symbols-table-container {
    margin-top: 20px;
    overflow-x: auto;
    border: 1px solid #eaeaea;
    border-radius: 4px;
}

.symbols-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.symbols-table th {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
}

.symbols-table th.sortable {
    cursor: pointer;
}

.symbols-table th.sortable:after {
    content: "⇕";
    position: absolute;
    right: 8px;
    opacity: 0.3;
}

.symbols-table th.sortable.asc:after {
    content: "↑";
    opacity: 1;
}

.symbols-table th.sortable.desc:after {
    content: "↓";
    opacity: 1;
}

.symbols-table td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.symbol-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.symbol-row:hover {
    background-color: #f9f9f9;
}

.symbol-name {
    font-weight: 500;
    display: flex;
    align-items: center;
}

.expand-icon {
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-right: 5px;
    font-weight: bold;
    transition: transform 0.2s;
}

.expand-icon.expanded {
    transform: rotate(90deg);
}

.symbol-details {
    display: none;
    background-color: #f9f9f9;
}

.symbol-details-container {
    display: flex;
    padding: 15px 10px;
    gap: 20px;
}

.symbol-details-section {
    flex: 1;
    padding: 0 15px;
}

.symbol-details-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.symbol-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.symbol-details-list li {
    margin-bottom: 8px;
    font-size: 14px;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #777;
    font-style: italic;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .symbols-controls {
        flex-wrap: wrap;
    }
    
    .symbol-filter {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .symbol-details-container {
        flex-direction: column;
    }
    
    .symbol-details-section {
        padding: 10px 0;
    }
}

/* Стили для новой структуры таблицы символов v1.0.1 */
.direction-row {
    background-color: #f9f9f9;
    cursor: pointer;
}

.direction-name {
    padding-left: 30px !important;
    position: relative;
    font-weight: 500;
}

.direction-indent {
    display: inline-block;
    width: 20px;
}

.direction-icon {
    display: inline-block;
    width: 20px;
    text-align: center;
    font-weight: bold;
    transition: transform 0.2s;
}

.direction-icon.expanded {
    transform: rotate(90deg);
}

.direction-row.buy-row .direction-name {
    color: #34a853;
}

.direction-row.sell-row .direction-name {
    color: #ea4335;
}

/* Стили для третьего уровня - строк с положительными и отрицательными сделками */
.trades-row {
    background-color: #f0f0f0;
}

.trades-name {
    padding-left: 50px !important;
    font-size: 13px;
}

.trades-indent {
    display: inline-block;
    width: 15px;
}

.trades-row.positive-trades-row .trades-name {
    color: #34a853;
}

.trades-row.negative-trades-row .trades-name {
    color: #ea4335;
}

/* Стили для кнопки удаления истории сделок */
#clear-order-history {
    background-color: #ff9800; /* Оранжевый цвет вместо красного */
    color: white;
    margin-top: 10px;
    margin-bottom: 5px;
}

#clear-order-history:hover {
    background-color: #f57c00; /* Темно-оранжевый при наведении */
}

#clear-order-status {
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    padding: 5px 0;
}

#clear-order-status.error {
    color: #f44336;
}

#clear-order-status.success {
    color: #4CAF50;
}

.account-error-block {
    background-color: #FFF4F4;
    border: 1px solid #FFDADA;
    border-left: 3px solid #F44336;
    border-radius: 4px;
    padding: 15px 20px;
    margin: 20px 0;
    color: #333;
}

.account-error-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #F44336;
    font-size: 16px;
}

.account-error-description {
    line-height: 1.5;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Стили для блока с информацией о дисквалификации */
.account-error-block.disqualification-block {
    background-color: #FFF3E0;
    border: 1px solid #FF9800;
}

.account-error-block.disqualification-block .account-error-title {
    color: #E65100;
}

/* Стили для дат с всплывающими подсказками */
.orders-table td[title] {
    cursor: help;
    position: relative;
}

.orders-table td[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
    white-space: nowrap;
    margin-bottom: 8px;
}

.orders-table td[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
    z-index: 11;
    margin-bottom: 3px;
}

/* Стили для таблицы участников на архивной странице конкурса */
.contest-archive-members {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contest-archive-members h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.contest-members-table-wrapper {
    overflow-x: auto;
    margin-bottom: 15px;
}

.contest-members-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid #ddd;
}

.contest-members-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid #ddd;
}

.contest-members-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.contest-members-table tr:hover {
    background-color: #f0f0f0;
}

.contest-members-table tr:nth-child(even) {
    background-color: #fafafa;
}

.contest-members-table .member-place {
    font-weight: bold;
    text-align: center;
}

.contest-members-table .member-profit,
.contest-members-table .member-profit-percent {
    font-weight: 600;
}

.contest-members-table .member-status {
    font-weight: 500;
}

.contest-members-table .status-disqualified {
    color: #e74c3c;
}

.contest-members-table .status-quitted {
    color: #f39c12;
}

.contest-members-table .status-normal {
    color: #2ecc71;
}

.no-members-message {
    padding: 15px;
    background-color: #f8f8f8;
    border-left: 4px solid #ddd;
    margin-bottom: 15px;
    color: #666;
    font-style: italic;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .contest-members-table th,
    .contest-members-table td {
        padding: 6px 8px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .contest-archive-members {
        padding: 15px 10px;
    }
    
    .contest-members-table th,
    .contest-members-table td {
        padding: 5px;
        font-size: 12px;
    }
}

/* Стили для ссылок на профили трейдеров */
.trader-name-link {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.trader-name-link:hover {
    color: #004c99;
    text-decoration: underline;
}

/* Стили для страницы статистики трейдера */
.trader-statistics-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Стили для хлебных крошек */
.trader-breadcrumbs {
    margin-bottom: 20px;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.trader-breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
    margin: 0 5px;
}

.trader-breadcrumbs a:first-child {
    margin-left: 0;
}

.trader-breadcrumbs a:hover {
    text-decoration: underline;
}

.trader-breadcrumbs .separator {
    margin: 0 5px;
    color: #999;
}

/* Стили для заголовка страницы */
.trader-header {
    margin-bottom: 30px;
}

.trader-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

/* Стили для блока основной статистики */
.trader-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.trader-stat-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.trader-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 12px;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stat-title {
    font-size: 14px;
    color: #757575;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

/* Стили для блока с торговой статистикой */
.trader-trading-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.trading-stat-block {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.trading-stat-title {
    font-size: 15px;
    color: #757575;
    margin-bottom: 12px;
    font-weight: 500;
}

.trading-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

.trading-stat-graph {
    margin-top: auto;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.trading-stat-block:hover .trading-stat-graph {
    opacity: 1;
}

/* Стили для блока торговых пар */
.trader-trades-by-pair {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.trader-trades-by-pair h2 {
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.trades-pairs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pair-row {
    display: grid;
    grid-template-columns: 100px 1fr 50px;
    align-items: center;
    gap: 15px;
}

.pair-name {
    font-weight: 500;
    color: #333;
}

.pair-bar-container {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.pair-bar {
    height: 100%;
    background-color: #6EBCB3;
    border-radius: 5px;
}

.pair-count {
    font-weight: 700;
    text-align: right;
    color: #333;
}

/* Стили для блока истории конкурсов */
.trader-contest-history {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.trader-contest-history h2 {
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.contest-history-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contest-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}

.contest-history-table th {
    text-align: left;
    padding: 16px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
}

.contest-history-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.contest-history-table tbody tr {
    transition: all 0.2s ease;
}

.contest-history-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.contest-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contest-link:hover {
    color: #2E7D32;
    text-decoration: underline;
}

.status-active {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-finished {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-disqualified {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-quitted {
    color: #fd7e14;
    background: rgba(253, 126, 20, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-unknown {
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.no-contests-message {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Адаптивные стили для страницы статистики трейдера */
@media (max-width: 768px) {
    .trader-statistics-container {
        padding: 15px;
    }
    
    .trader-stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .trader-trading-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }
    
    .contest-history-table th,
    .contest-history-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .trader-name {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .trader-stats-cards {
        grid-template-columns: 1fr;
    }
    
    .trader-trading-stats {
        grid-template-columns: 1fr;
    }
    
    .trader-stat-card,
    .trader-trades-by-pair,
    .trader-contest-history {
        padding: 20px;
    }
    
    .contest-history-table-wrapper {
        font-size: 12px;
    }
    
    .contest-history-table th,
    .contest-history-table td {
        padding: 10px 6px;
        font-size: 12px;
    }
    
    .trader-name {
        font-size: 24px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .trader-statistics-container {
        padding: 15px;
    }
    
    .trader-stats-cards,
    .trader-trading-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pair-row {
        grid-template-columns: 80px 1fr 40px;
    }
    
    .trader-name {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .trader-stats-cards,
    .trader-trading-stats {
        grid-template-columns: 1fr;
    }
}

/* Стили для верхних трейдеров в боковой панели архива конкурсов */
.contests-sidebar .top-leaders {
    margin-top: 30px;
}

.contests-sidebar .leader-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contests-sidebar .leader-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0; /* Предотвращаем сжатие этого элемента */
}

.contests-sidebar .leader-rank.top-1 {
    background: #FFD700;
    color: #333;
}

.contests-sidebar .leader-rank.top-2 {
    background: #C0C0C0;
    color: #333;
}

.contests-sidebar .leader-rank.top-3 {
    background: #CD7F32;
    color: #fff;
}

.contests-sidebar .leader-info {
    flex-grow: 1;
}

.contests-sidebar .leader-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contests-sidebar .leader-contest {
    font-size: 12px;
    color: #757575;
}

.contests-sidebar .leader-profit {
    font-weight: 700;
    font-size: 16px;
    margin-left: 10px;
    flex-shrink: 0; /* Предотвращаем сжатие этого элемента */
}

.contests-sidebar .leader-profit.positive {
    color: #4CAF50;
}

.contests-sidebar .leader-profit.negative {
    color: #F44336;
}

/* Стили для топ участников на странице конкурса */
.contest-sidebar-section.contest-top-players .top-player-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}

.contest-sidebar-section.contest-top-players .top-player-item:hover {
    background: #f5f5f5;
}

.contest-sidebar-section.contest-top-players .top-player-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 10px;
}

.contest-sidebar-section.contest-top-players .top-player-rank-1 {
    background: #FFD700;
    color: #333;
}

.contest-sidebar-section.contest-top-players .top-player-rank-2 {
    background: #C0C0C0;
    color: #333;
}

.contest-sidebar-section.contest-top-players .top-player-rank-3 {
    background: #CD7F32;
    color: #fff;
}

.contest-sidebar-section.contest-top-players .top-player-info {
    flex-grow: 1;
}

.contest-sidebar-section.contest-top-players .top-player-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 3px;
}

.contest-sidebar-section.contest-top-players .top-player-account {
    font-size: 11px;
    color: #757575;
}

.contest-sidebar-section.contest-top-players .top-player-profit {
    text-align: right;
}

.contest-sidebar-section.contest-top-players .top-player-amount {
    font-weight: 600;
    font-size: 13px;
}

.contest-sidebar-section.contest-top-players .top-player-percent {
    font-size: 11px;
    margin-top: 3px;
}

.contest-sidebar-section.contest-top-players .negative {
    color: #F44336;
}

.all-participants-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 8px 0;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

.all-participants-link:hover {
    background: #e0e0e0;
}

/* Стили для блока призовых мест на странице конкурса */
.contest-prizes-block {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.contest-prizes-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contest-prizes-icon {
    font-size: 20px;
    margin-right: 10px;
}

.contest-prizes-header h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.contest-prizes-grid {
    display: grid;
    /* Уменьшаем размер карточек вдвое */
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.prize-item {
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.prize-item:hover {
    transform: translateY(-3px);
}

.prize-item.place-1 {
    border-top: 3px solid #FFD700;
}

.prize-item.place-2 {
    border-top: 3px solid #C0C0C0;
}

.prize-item.place-3 {
    border-top: 3px solid #CD7F32;
}

.prize-place {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    color: #333;
}

.prize-amount {
    font-size: 16px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 5px;
}

.prize-description {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

/* Стили для топ-игроков в боковой панели конкурса */
.top-player-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.top-player-item:hover {
    background-color: #f5f5f5;
}

.top-player-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
}

.top-player-rank-1 {
    background: #FFD700;
    color: #333;
}

.top-player-rank-2 {
    background: #C0C0C0;
    color: #333;
}

.top-player-rank-3 {
    background: #CD7F32;
    color: #fff;
}

.top-player-info {
    flex-grow: 1;
    min-width: 0;
}

.top-player-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-player-account {
    font-size: 11px;
    color: #757575;
}

.top-player-profit {
    text-align: right;
    margin-left: 10px;
    flex-shrink: 0;
}

.top-player-amount {
    font-weight: 600;
    font-size: 13px;
}

.top-player-percent {
    font-size: 11px;
    color: #4CAF50;
}

.top-player-amount.negative,
.top-player-percent.negative {
    color: #F44336;
}

.all-participants-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 8px 0;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background-color 0.2s;
}

.all-participants-link:hover {
    background: #e0e0e0;
}

/* Стили для блока Условия дисквалификации */
.contest-disqualification-block {
    background: #fff3e0;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.contest-disqualification-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #ffecb3;
    cursor: pointer;
}

.contest-disqualification-icon {
    font-size: 20px;
    margin-right: 12px;
}

.contest-disqualification-header h3 {
    margin: 0;
    flex-grow: 1;
    font-size: 18px;
    color: #333;
}

.contest-disqualification-toggle {
    margin-left: 15px;
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.contest-disqualification-header.active .toggle-icon {
    transform: rotate(180deg);
}

.contest-disqualification-list {
    padding: 20px;
}

.disqualification-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0e0c0;
}

.disqualification-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.disqualification-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #e65100;
}

.disqualification-value {
    color: #555;
    line-height: 1.5;
}

/* Стили для блока Статистика конкурса */
.contest-stats-block {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 30px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.contest-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.contest-stats-title {
    display: flex;
    align-items: center;
}

.contest-stats-icon {
    font-size: 20px;
    margin-right: 10px;
}

.contest-stats-title h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.contest-stats-timestamp {
    font-size: 12px;
    color: #999;
}

.contest-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.contest-stat-card {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.contest-stat-title {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contest-stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.contest-stat-value.positive {
    color: #4CAF50;
}

.contest-stat-value.negative {
    color: #F44336;
}

.contest-stat-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.stat-ratio-indicator,
.stat-progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

.stat-ratio-profit,
.stat-progress-fill.profit {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #4CAF50;
    border-radius: 3px 0 0 3px;
}

.stat-ratio-loss,
.stat-progress-fill.loss {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: #F44336;
    border-radius: 0 3px 3px 0;
}

.stat-ratio-separator {
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
    background: #fff;
    transform: translateX(-50%);
}

.profit-percent.positive,
.pnl-percent-small.positive {
    color: #4CAF50;
}

.loss-percent.negative,
.pnl-percent-small.negative {
    color: #F44336;
}

.trade-distribution {
    font-size: 13px;
    color: #666;
}

.trades-by-type {
    display: flex;
    justify-content: space-between;
}

.trades-type-buy .trades-icon {
    color: #4CAF50;
}

.trades-type-sell .trades-icon {
    color: #F44336;
}

.contest-stat-change {
    display: flex;
    align-items: center;
    font-size: 13px;
    margin-top: 5px;
}

.contest-stat-change.positive {
    color: #4CAF50;
}

.contest-stat-change.negative {
    color: #F44336;
}

.contest-stat-change-icon {
    margin-right: 5px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .contest-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contest-stats-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contest-stats-timestamp {
        margin-top: 5px;
    }
    
    .contest-stat-card {
        padding: 12px;
    }
    
    .contest-stat-value {
        font-size: 20px;
    }
    
    .contest-disqualification-header {
        padding: 12px 15px;
    }
    
    .contest-disqualification-list {
        padding: 15px;
    }
}

/* Добавленные стили для архивного конкурса */
.contest-archive-notice {
    padding: 20px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.contest-archive-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.contest-archive-message {
    flex: 1;
    min-width: 280px;
}

.contest-archive-sponsor {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contest-archive-footer {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    text-align: center;
}

.contest-info-value.finished {
    color: #e74c3c;
    font-weight: bold;
}

.member-status.status-disconnected {
    color: #e67e22;
}

/* Стили для виджета схемы регистрации в конкурсе */
.contest-registration-scheme {
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.15);
    overflow: hidden;
    position: relative;
}

.contest-registration-scheme::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.05) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.scheme-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.scheme-header h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1565c0;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.scheme-steps {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.scheme-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 280px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    animation: slideInUp 0.6s ease-out;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}

.step-1 .step-content {
    animation-delay: 0.1s;
}

.step-2 .step-content {
    animation-delay: 0.3s;
}

.step-3 .step-content {
    animation-delay: 0.5s;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    animation: pulse 2s infinite;
}

.step-details h5 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.step-info {
    margin-bottom: 20px;
    text-align: left;
}

.step-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.step-info strong {
    color: #2196f3;
    font-weight: 600;
}

.step-button {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.step-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.step-button:hover::before {
    left: 100%;
}

.step-button:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    color: white;
    text-decoration: none;
}

.step-button.disabled {
    background: #e0e0e0;
    color: #757575;
    cursor: default;
    box-shadow: none;
    pointer-events: none;
}

.step-arrow {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    animation: arrowFlow 2s ease-in-out infinite;
}

.step-3 .step-arrow {
    display: none;
}

.step-arrow svg {
    filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.3));
}

/* Анимации */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
    }
}

@keyframes arrowFlow {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) translateX(10px);
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    33% {
        transform: translateX(10px) translateY(-10px) rotate(120deg);
    }
    66% {
        transform: translateX(-5px) translateY(5px) rotate(240deg);
    }
}

/* Адаптивный дизайн для мобильных устройств */
@media (max-width: 768px) {
    .contest-registration-scheme {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .scheme-header h4 {
        font-size: 20px;
    }
    
    .scheme-steps {
        flex-direction: column;
        gap: 25px;
    }
    
    .scheme-step {
        width: 100%;
    }
    
    .step-content {
        max-width: 100%;
        padding: 20px 15px;
    }
    
    .step-arrow {
        position: static;
        transform: rotate(90deg);
        margin: 15px 0;
        align-self: center;
    }
    
    .step-3 .step-arrow {
        display: none;
    }
    
    .step-arrow svg {
        width: 30px;
        height: 15px;
    }
    
    @keyframes arrowFlow {
        0%, 100% {
            transform: rotate(90deg) translateX(0);
            opacity: 1;
        }
        50% {
            transform: rotate(90deg) translateX(5px);
            opacity: 0.7;
        }
    }
}

@media (max-width: 480px) {
    .contest-registration-scheme {
        padding: 15px 10px;
    }
    
    .scheme-header h4 {
        font-size: 18px;
    }
    
    .step-content {
        padding: 15px 10px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .step-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .step-details h5 {
        font-size: 16px;
    }
    
    .step-info p {
        font-size: 13px;
    }
    
    .step-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Стили для истории изменений счета */
.account-change-history h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

#account-history-wrapper .widefat {
    width: 100%;
    border-collapse: collapse;
}

#account-history-wrapper .widefat th {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    font-weight: bold;
}

#account-history-wrapper .widefat td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

/* Адаптивность для архивного конкурса */
@media (max-width: 768px) {
    .contest-archive-content {
        flex-direction: column;
    }
    
    .contest-archive-sponsor {
        margin-top: 20px;
        justify-content: flex-start;
    }
}

/* Стили для фильтров истории изменений счета */
.history-filters {
    margin: 20px 0;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.history-filter {
    min-width: 150px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

#account-history-wrapper.loading {
    position: relative;
    min-height: 100px;
}

#account-history-wrapper.loading:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8) center no-repeat;
    background-image: url('data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wjRLsoRaDTi6O0xkQFJiiBZJI1PkOVUd6DPBzLBrQfg1AJhcBNgEKbIYGRU0SHgAh+QQJCgAAACwAAAAAEAAQAAADMwi6/A5M7p1TcfEgFLOmqNJlOT3IYjCgJHGZJR5nARJFhJWQ7QWGOKKFHMaLFMaLJSEgAC0h+QQJCgAAACwAAAAAEAAQAAADMgi6q4ZOvShYJJRbPdcAcZjOSCGpX1sKGh0a2AKdwPXOlAa8fVIWY6Z7OD6MEEGBDBMBACh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAOw==');
}

#sort_date {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

#sort_date:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

#sort_date .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Стили для процентного изменения в таблице истории */
.change-percent {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
}

.change-percent.positive {
    color: #28a745;
    background-color: #e3f9ec;
}

.change-percent.negative {
    color: #dc3545;
    background-color: #fbe7e9;
}

@media (max-width: 768px) {
    .history-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .history-filter,
    #sort_date {
        min-width: auto;
        margin-bottom: 5px;
    }
}

/* Стили для пагинации истории изменений */
.history-pagination {
    margin: 20px 0;
    text-align: center;
}

.pagination-info {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-controls .button {
    min-width: 40px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.2;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #ccc;
    background: white;
    color: #333;
    cursor: pointer;
}

.pagination-controls .history-page-btn:hover {
    background-color: #f0f0f1;
    border-color: #0073aa;
    color: #0073aa;
}

.pagination-controls .button-primary {
    background-color: #0073aa;
    border-color: #0073aa;
    color: white;
}

.pagination-controls .button-primary:disabled {
    opacity: 0.7;
    cursor: default;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
    .history-filters {
        flex-direction: column;
        gap: 5px;
    }
    
    .history-filter {
        min-width: 100%;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .pagination-controls button {
        min-width: 30px;
        font-size: 12px;
        padding: 4px 6px;
    }
}

/* =================================================================
   СТИЛИ ДЛЯ РЕЙТИНГА ТРЕЙДЕРОВ
   ================================================================= */

/* Фильтры рейтинга */
.rating-filters {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.rating-filter {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 120px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rating-filter:hover {
    border-color: #4CAF50;
}

.rating-filter:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Используем ту же структуру что и на странице статистики трейдера */
.trader-statistics-wrapper {
    max-width: none;
    padding: 0;
    margin: 0;
    background: #fff;
}

.trader-statistics-wrapper .contests-layout,
.trader-statistics-wrapper .contests-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Стили для таблицы рейтинга трейдеров */
.traders-rating-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.traders-rating-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.traders-rating-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    position: relative;
}

.traders-rating-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.traders-rating-table th.sortable:hover {
    background: #e9ecef;
}

.traders-rating-table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s;
}

.traders-rating-table tbody tr:hover {
    background: #f8f9fa;
}

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

.traders-rating-table td {
    padding: 12px;
    vertical-align: middle;
    font-size: 14px;
    color: #495057;
}

.traders-rating-table .position {
    font-weight: 600;
    color: #6c757d;
    text-align: center;
    width: 50px;
}

.traders-rating-table .trader-name-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.traders-rating-table .trader-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.traders-rating-table .trader-name-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.traders-rating-table .trader-name-link:hover {
    text-decoration: underline;
}

.traders-rating-table .prize-places {
    font-weight: 600;
    color: #28a745;
}

.traders-rating-table .best-place {
    font-weight: 600;
    color: #fd7e14;
}

.traders-rating-table .avg-profit.positive {
    color: #28a745;
    font-weight: 500;
}

.traders-rating-table .avg-profit.negative {
    color: #dc3545;
    font-weight: 500;
}

.traders-rating-table .contests-count {
    color: #6c757d;
}

.traders-rating-table .total-winnings {
    font-weight: 600;
    color: #28a745;
}

.traders-rating-table .loading-message {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .traders-rating-table {
        font-size: 12px;
    }
    
    .traders-rating-table th,
    .traders-rating-table td {
        padding: 8px 6px;
    }
    
    .traders-rating-table .trader-avatar-small {
        width: 24px;
        height: 24px;
    }
}

/* Хлебные крошки */
.breadcrumb-nav {
    margin-bottom: 20px;
    padding: 10px 0;
}

.breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}


.breadcrumb a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #45a049;
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

.contest-single-container .breadcrumbs {
    margin: 0 0 18px;
    float: none;
}

.contest-single-container .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.contest-single-container .breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contest-single-container .breadcrumb li:not(:last-child)::after {
    content: "/";
    color: #a3a3a3;
}

.contest-single-container .breadcrumb a,
.contest-single-container .breadcrumb span[itemprop="name"] {
    color: #6b7280;
}

.contest-single-container .breadcrumb .breadcrumb-active {
    color: #111827;
}

/* Сетка трейдеров - две колонки как на странице конкурсов */
.traders-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 30px;
    padding: 0;
}

/* Карточки трейдеров - очень компактный размер */
.trader-card {
    background: white;
    border-radius: 4px;
    padding: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.trader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.trader-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #4CAF50;
}

.trader-card:hover::before {
    transform: scaleX(1);
}

.trader-card.active {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #fff 0%, #f8fff8 100%);
}

.trader-card.inactive {
    opacity: 0.8;
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
}

/* Заголовок карточки трейдера - очень компактный */
.trader-header {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

.trader-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #666;
    margin-right: 4px;
    overflow: hidden;
    border: 1px solid #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

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

.trader-info {
    flex: 1;
}

.trader-name {
    font-size: 9px;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
    line-height: 1.1;
}

.trader-name-link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.trader-name-link:hover {
    color: #4CAF50;
    text-decoration: underline;
}

.trader-status {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
}

.trader-status.active {
    background: #e8f5e9;
    color: #2e7d32;
    animation: pulse-active 2s infinite;
}

.trader-status.inactive {
    background: #fff3e0;
    color: #f57c00;
}

@keyframes pulse-active {
    0%, 100% { 
        background: #e8f5e9; 
    }
    50% { 
        background: #c8e6c9; 
    }
}

/* Статистика трейдера - очень компактная */
.trader-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-bottom: 0;
}

.trader-stat {
    text-align: center;
    padding: 1px 2px;
    background: #f8f9fa;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.trader-stat:hover {
    background: #e9ecef;
}

.trader-stat.best-place {
    grid-column: span 2;
    background: #e8f5e9;
}

.trader-stat-value {
    font-size: 8px;
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 0px;
}

.trader-stat-value.highlight {
    color: #4CAF50;
    font-size: 11px;
}

.trader-stat-value.positive {
    color: #4CAF50;
}

.trader-stat-value.negative {
    color: #F44336;
}

.trader-stat-label {
    font-size: 6px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.1px;
}

/* Плейсхолдер загрузки */
.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-placeholder p {
    font-size: 18px;
    margin: 0;
    opacity: 0.8;
}

/* Статистика платформ в боковой панели */
.platform-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.platform-stat-item:last-child {
    border-bottom: none;
}

.platform-name {
    font-weight: 600;
    color: #333;
}

.platform-count {
    font-size: 16px;
    font-weight: 700;
    color: #4CAF50;
}

.platform-percent {
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Улучшенные стили для боковой панели */
.contests-sidebar .sidebar-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.contests-sidebar .stats-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.contests-sidebar .stats-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contests-sidebar .stats-description {
    font-size: 12px;
    color: #9e9e9e;
    display: block;
    margin-top: 5px;
}

.no-data {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Адаптивность для рейтинга трейдеров */
@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .rating-filter {
        min-width: auto;
        width: 100%;
    }
    
    .traders-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .trader-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .trader-card {
        padding: 6px;
    }
    
    .trader-avatar {
        width: 20px;
        height: 20px;
        margin-right: 5px;
    }
    
    .trader-name {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .rating-filters {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .trader-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .achievement-item {
        font-size: 13px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Модальное окно для отображения полной информации о дисквалификации */
.disqualification-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.disqualification-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.disqualification-modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.disqualification-modal-header {
    background-color: #FF9800;
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.disqualification-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.disqualification-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.disqualification-modal-close:hover {
    opacity: 0.8;
}

.disqualification-modal-body {
    padding: 20px;
}

.disqualification-modal-body pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #FF9800;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    margin: 0;
}

.disqualification-modal-footer {
    padding: 15px 20px;
    text-align: right;
    border-top: 1px solid #eee;
}

.disqualification-modal-close-btn {
    background-color: #999;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.disqualification-modal-close-btn:hover {
    background-color: #666;
}

/* Стили для дисквалифицированных участников */
.disqualified-text {
    font-weight: bold;
}

/* ============================================
   СТИЛИ ДЛЯ УЛУЧШЕННОЙ АРХИВНОЙ СТРАНИЦЫ КОНКУРСОВ (Вариант 1)
   ============================================ */

/* Hero блок со статистикой */
.contests-hero-stats {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.contests-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.contests-stat-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contests-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.contests-stat-item:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.contests-stat-item:nth-child(2):hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.contests-stat-item:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.contests-stat-item:nth-child(3):hover {
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.contests-stat-icon {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
}

.contests-icon-img {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.contests-stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.contests-stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Компактный SEO-текст */
.contests-intro-text-compact {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    line-height: 1.6;
    color: #333;
}

.contests-intro-text-compact h2 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #222;
}

.contests-intro-text-compact > p {
    font-size: 14px;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.7;
}

.contests-intro-text-compact > p strong {
    color: #333;
}

/* Контейнер заголовка с кнопкой создания конкурса */
.fx_content-title16.flex_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.fx_content-title16.flex_title .fx_content-title-link {
    flex: 1;
    min-width: 0;
}

/* Contest single heading and breadcrumb restoration */
.contest-single-container .breadcrumbs.alignleft,
.account-single-container .breadcrumbs.alignleft {
    float: none;
    display: block;
    margin: 0 0 18px;
}

.contest-single-container .breadcrumb.clearfix,
.account-single-container .breadcrumb.clearfix {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.45;
}

.contest-single-container .breadcrumb.clearfix li,
.account-single-container .breadcrumb.clearfix li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    float: none;
    padding: 0;
    padding-left: 0;
    position: static;
    font: inherit;
    color: inherit;
}

.contest-single-container .breadcrumb.clearfix li::before,
.account-single-container .breadcrumb.clearfix li::before {
    display: none !important;
}

.contest-single-container .breadcrumb.clearfix li:not(:last-child)::after,
.account-single-container .breadcrumb.clearfix li:not(:last-child)::after {
    content: "/";
    color: #c7ced8;
    font-weight: 400;
}

.contest-single-container .breadcrumb.clearfix a,
.contest-single-container .breadcrumb.clearfix span[itemprop="name"],
.account-single-container .breadcrumb.clearfix a,
.account-single-container .breadcrumb.clearfix span[itemprop="name"] {
    color: #8792a5;
    text-decoration: none;
}

.contest-single-container .breadcrumb.clearfix .breadcrumb-active,
.account-single-container .breadcrumb.clearfix .breadcrumb-active {
    color: #556070;
    font-weight: 500;
}

.contest-single-container,
.account-single-container {
    position: relative;
    padding-top: 28px;
}

.contest-single-container::before,
.account-single-container::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 220px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(240, 185, 11, 0.16), transparent 38%),
        linear-gradient(180deg, #fffaf0 0%, #ffffff 72%);
    pointer-events: none;
}

.contest-single-container > *,
.account-single-container > * {
    position: relative;
    z-index: 1;
}

.contest-single-container .section_offset,
.account-single-container .section_offset {
    margin-bottom: 10px;
}

.contest-single-container .fx_content-title16.flex_title,
.account-single-container .fx_content-title16.flex_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 18px;
}

.contest-single-container .fx_content-title16.flex_title .fx_content-title-link,
.contest-single-container .account-title,
.contest-single-container .contest-title-new,
.contest-single-container .contest-participants h2,
.account-single-container .fx_content-title16.flex_title .fx_content-title-link,
.account-single-container .account-title {
    color: #32343a;
    font-family: 'pf_dindisplay_proregular', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.contest-single-container .fx_content-title16.flex_title .fx_content-title-link,
.account-single-container .fx_content-title16.flex_title .fx_content-title-link {
    display: block;
    margin: 0;
    font-size: 44px;
    line-height: 1.02;
    position: relative;
    padding-bottom: 18px;
}

.contest-single-container .fx_content-title16.flex_title .fx_content-title-link::after,
.account-single-container .fx_content-title16.flex_title .fx_content-title-link::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin-top: 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f0b90b 0%, #ffd76a 100%);
}

.contest-single-container .account-header,
.account-single-container .account-header {
    margin: 0 0 24px;
    padding: 0 0 20px;
    border-bottom: 1px solid #edf1f5;
}

.contest-single-container .account-title,
.account-single-container .account-title {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.04;
}

.contest-single-container .contest-title-new {
    margin: 0 0 16px;
    font-size: 42px;
    line-height: 1.04;
}

.contest-single-container .contest-details {
    gap: 24px;
    align-items: start;
}

.contest-single-container .contest-main-content,
.account-single-container .account-main-content > .account-section,
.account-single-container .account-sidebar-section {
    border: 1px solid #eceff3;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.contest-single-container .contest-main-content {
    padding: 28px 32px;
}

.contest-single-container .contest-featured-image {
    margin-bottom: 24px;
    border-radius: 18px;
}

.contest-single-container .contest-image {
    border-radius: 18px;
}

.contest-single-container .contest-description {
    margin-bottom: 24px;
}

.contest-single-container .contest-short-description {
    margin-bottom: 18px;
    font-size: 18px;
    line-height: 1.6;
    color: #1f2937;
    font-weight: 500;
}

.contest-single-container .contest-description p,
.contest-single-container .contest-rules p,
.contest-single-container .contest-description li,
.contest-single-container .contest-rules li {
    color: #596579;
    font-size: 15px;
    line-height: 1.72;
}

.contest-single-container .contest-prizes-block,
.contest-single-container .contest-disqualification-block,
.contest-single-container .contest-rules {
    margin-top: 24px;
    padding: 22px 24px;
    border: 1px solid #eceff3;
    border-radius: 18px;
    background: #fffdfa;
}

.contest-single-container .contest-prizes-header h3,
.contest-single-container .contest-rules h3,
.contest-single-container .contest-disqualification-header h3 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    line-height: 1.2;
}

.contest-single-container .contest-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 14px;
}

.contest-single-container .contest-sidebar-section {
    margin: 0;
    padding: 22px 22px 18px;
    border: 1px solid #eceff3;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.contest-single-container .contest-sidebar-title,
.contest-single-container .contest-top-players-title {
    margin: 0 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid #edf1f5;
    color: #111827;
    font-family: 'pf_dindisplay_proregular', Arial, sans-serif;
    font-size: 24px;
    line-height: 1.12;
    font-weight: 400;
}

.contest-single-container .contest-info-item {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid #f0f3f7;
}

.contest-single-container .contest-info-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contest-single-container .contest-info-label {
    color: #98a2b3;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contest-single-container .contest-info-value {
    color: #111827;
    text-align: left;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.contest-single-container .contest-info-value.active {
    color: #1f9d55;
}

.contest-single-container .contest-info-value.upcoming {
    color: #f59e0b;
}

.contest-single-container .contest-info-value.completed,
.contest-single-container .contest-info-value.finished {
    color: #64748b;
}

.contest-single-container .contest-info-item a {
    color: #2f5aff;
    font-weight: 600;
}

.contest-single-container .contest-register-button,
.contest-single-container .contest-account-button,
.contest-single-container .contest-registration-button {
    min-height: 50px;
    margin: 6px 0 0;
    padding: 13px 18px;
    border: 1px solid #e3b30a;
    border-radius: 14px;
    background: linear-gradient(180deg, #f7c62f 0%, #f0b90b 100%);
    color: #151515;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(240, 185, 11, 0.18);
}

.contest-single-container .contest-register-button:hover,
.contest-single-container .contest-account-button:hover,
.contest-single-container .contest-registration-button:hover {
    background: linear-gradient(180deg, #ffd24d 0%, #f0b90b 100%);
    color: #111827;
}

.contest-single-container .registration-closed-message {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
}

.contest-single-container .contest-top-players-icon {
    font-size: 20px;
}

.contest-single-container .top-player-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f3f7;
    text-decoration: none;
}

.contest-single-container .top-player-item:last-of-type {
    border-bottom: 0;
}

.contest-single-container .top-player-rank {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #fff7df;
    color: #b7791f;
    font-size: 14px;
    font-weight: 700;
}

.contest-single-container .top-player-name {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

.contest-single-container .top-player-account {
    color: #98a2b3;
    font-size: 12px;
}

.contest-single-container .top-player-amount,
.contest-single-container .top-player-percent {
    font-variant-numeric: tabular-nums;
}

.contest-single-container .all-participants-link {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    color: #2f5aff;
    font-weight: 600;
    text-decoration: none;
}

.contest-single-container .contest-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contest-single-container .share-button {
    min-width: 108px;
    padding: 11px 14px;
    border: 1px solid #eceff3;
    border-radius: 999px;
    background: #f8fafc;
    color: #475467;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.contest-single-container .share-button:hover {
    background: #fff7df;
    border-color: #f0d98a;
    color: #111827;
}

.account-single-container .account-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
}

.account-single-container .account-owner,
.account-single-container .account-connection-status,
.account-single-container .account-updated {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #eceff3;
    border-radius: 999px;
    background: #ffffff;
    color: #556070;
    font-size: 14px;
    line-height: 1.2;
}

.account-single-container .account-owner {
    color: #111827;
}

.account-single-container .account-owner .trader-name-link {
    margin-left: 4px;
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.account-single-container .account-participation-status {
    display: inline-flex;
    align-items: center;
}

.account-single-container .account-participation-status .status-disqualified,
.account-single-container .account-participation-status .status-quitted,
.account-single-container .account-participation-status .status-participating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.account-single-container .account-participation-status .status-participating {
    background: #fff7df !important;
    background-color: #fff7df !important;
    color: #8a6500 !important;
}

.account-single-container .account-participation-status .status-disqualified {
    background: #fff4e8 !important;
    background-color: #fff4e8 !important;
    color: #f28a1a !important;
}

.account-single-container .account-participation-status .status-quitted {
    background: #f3f4f6 !important;
    background-color: #f3f4f6 !important;
    color: #6b7280 !important;
}

.account-single-container .account-connection-status {
    background: #f6fbf7;
    color: #2f7d32;
}

.account-single-container .account-updated {
    background: #f8fafc;
    color: #667085;
}

.account-single-container .status-indicator {
    width: 9px;
    height: 9px;
    margin-right: 8px;
}

.account-single-container .account-error-block {
    margin: 0 0 20px;
    padding: 18px 20px;
    border-width: 1px;
    border-left-width: 1px;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.account-single-container .account-error-block.disqualification-block {
    background: linear-gradient(180deg, #fff7e9 0%, #fffdf8 100%);
    border-color: #f2c879;
}

.account-single-container .connection-error-block {
    background: linear-gradient(180deg, #fff5f5 0%, #fffdfd 100%);
    border-color: #f3c5c5;
}

.account-single-container .account-error-title {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.35;
}

.account-single-container .account-error-description {
    color: #596579;
    font-size: 14px;
    line-height: 1.6;
}

.account-single-container .account-details {
    gap: 24px;
}

.account-single-container .account-main-content > .account-section,
.account-single-container .account-sidebar-section {
    padding: 22px 24px;
}

.account-single-container .account-section h2,
.account-single-container .account-open-orders h2,
.account-single-container .account-order-history h2,
.account-single-container .account-sidebar-section h3 {
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f5;
    color: #111827;
    font-family: 'pf_dindisplay_proregular', Arial, sans-serif;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 400;
}

.account-single-container .financial-grid {
    gap: 14px;
}

.account-single-container .financial-item {
    border: 1px solid #edf1f5;
    border-radius: 16px;
    background: #f9fbfd;
}

.account-single-container .account-info-item {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid #f0f3f7;
}

.account-single-container .account-info-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.account-single-container .account-info-label {
    color: #98a2b3;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.account-single-container .account-info-value {
    color: #111827;
    text-align: left;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.account-single-container .account-action-button {
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
}

.account-single-container .account-action-button:hover {
    background: #1f2937;
    color: #fff;
}

.account-single-container .account-action-button.secondary,
.account-single-container .account-action-button.utility {
    background: #f8fafc;
    color: #344054;
    border-color: #dbe3ee;
}

.account-single-container .account-action-button.secondary:hover,
.account-single-container .account-action-button.utility:hover {
    background: #f1f5f9;
    color: #1f2937;
}

.account-single-container .account-action-button.refresh {
    background: linear-gradient(180deg, #f7c62f 0%, #f0b90b 100%);
    border-color: #e3b30a;
    color: #151515;
}

.account-single-container .account-action-button.refresh:hover {
    background: linear-gradient(180deg, #ffd24d 0%, #f0b90b 100%);
    color: #111827;
}

.account-single-container .account-action-button.refresh[disabled] {
    cursor: wait;
    filter: saturate(0.92);
}

.account-single-container .refresh-status {
    margin-top: 12px;
}

.account-single-container .account-refresh-panel {
    display: grid;
    gap: 10px;
    padding: 14px 14px 13px;
    border: 1px solid #efe2a1;
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(247, 198, 47, 0.18), transparent 42%),
        linear-gradient(180deg, #fffdf4 0%, #fff8dc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.account-single-container .account-refresh-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account-single-container .account-refresh-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7a5b00;
}

.account-single-container .account-refresh-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(122, 91, 0, 0.2);
    border-top-color: #c98d00;
    border-radius: 999px;
    animation: account-refresh-spin 0.85s linear infinite;
    flex: 0 0 auto;
}

.account-single-container .account-refresh-timer {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    color: #7c6b2d;
    font-variant-numeric: tabular-nums;
}

.account-single-container .account-refresh-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #1f2937;
}

.account-single-container .account-refresh-meta {
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
}

.account-single-container .account-refresh-progress {
    position: relative;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(122, 91, 0, 0.12);
}

.account-single-container .account-refresh-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #f0b90b 0%, #f7c62f 55%, #ffd86a 100%);
    transition: width 0.35s ease;
}

.account-single-container .refresh-status.is-success .account-refresh-panel {
    border-color: #b7ebc1;
    background:
        radial-gradient(circle at top right, rgba(74, 222, 128, 0.14), transparent 42%),
        linear-gradient(180deg, #f5fff7 0%, #ecfdf3 100%);
}

.account-single-container .refresh-status.is-success .account-refresh-badge {
    color: #15803d;
}

.account-single-container .refresh-status.is-success .account-refresh-spinner {
    border-color: rgba(21, 128, 61, 0.15);
    border-top-color: #16a34a;
    animation-duration: 1.2s;
}

.account-single-container .refresh-status.is-success .account-refresh-progress-bar {
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
}

.account-single-container .refresh-status.is-error .account-refresh-panel {
    border-color: #fecaca;
    background:
        radial-gradient(circle at top right, rgba(248, 113, 113, 0.12), transparent 42%),
        linear-gradient(180deg, #fff7f7 0%, #fef2f2 100%);
}

.account-single-container .refresh-status.is-error .account-refresh-badge {
    color: #b42318;
}

.account-single-container .refresh-status.is-error .account-refresh-spinner {
    border-color: rgba(180, 35, 24, 0.14);
    border-top-color: #ef4444;
    animation: none;
}

.account-single-container .refresh-status.is-error .account-refresh-progress-bar {
    background: linear-gradient(90deg, #f97316 0%, #ef4444 100%);
}

.account-single-container .refresh-status.is-idle {
    display: none;
}

@keyframes account-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

.account-single-container .account-action-button.delete {
    background: #fff;
    color: #b54708;
    border-color: #f7d6bf;
}

.account-single-container .account-action-button.delete:hover {
    background: #fff7f1;
    color: #9a3412;
}

.account-single-container .account-action-button.subtle-danger {
    color: #c2410c;
    border-color: #f5c9ad;
    background: #fffaf5;
}

.account-single-container .account-action-button.subtle-danger:hover {
    background: #fff3e8;
    color: #9a3412;
}

.account-single-container .account-action-button.disabled,
.account-single-container .account-action-button.disabled:hover {
    background: #f2f4f7 !important;
    color: #98a2b3 !important;
    border-color: #e4e7ec !important;
    cursor: not-allowed !important;
    opacity: 1;
}

.account-single-container .orders-table-container,
.account-single-container .symbols-table-container {
    border: 1px solid #edf1f5;
    border-radius: 16px;
    overflow: auto;
    background: #fff;
}

.contest-single-container .contest-participants {
    margin-top: 44px;
    padding: 24px 24px 18px;
    border: 1px solid #eceff3;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.contest-single-container .contest-participants h2 {
    margin: 0 0 14px;
    font-size: 40px;
    line-height: 1.05;
}

.contest-single-container .participants-search {
    margin-bottom: 16px;
}

.contest-single-container #search-participant {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.35;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.contest-single-container #search-participant::placeholder {
    color: #9aa4b2;
}

.contest-single-container .participants-table-container,
.contest-single-container .contest-members-table-wrapper {
    overflow-x: auto;
    border: 1px solid #eceff3;
    border-radius: 14px;
    background: #fff;
}

.contest-single-container .participants-table,
.contest-single-container .contest-members-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    line-height: 1.35;
    table-layout: auto;
}

.contest-single-container .participants-table th,
.contest-single-container .contest-members-table th {
    padding: 12px 12px;
    background: #f7f9fc;
    border-bottom: 1px solid #e7ebf0;
    color: #6b7280;
    font-family: 'pf_dindisplay_proregular', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-transform: none;
}

.contest-single-container .participants-table td,
.contest-single-container .contest-members-table td {
    padding: 12px 12px;
    border-bottom: 1px solid #eef2f6;
    color: #374151;
    font-size: 14px;
    line-height: 1.35;
    vertical-align: middle;
    background: #fff;
}

.contest-single-container .participants-table tbody tr:last-child td,
.contest-single-container .contest-members-table tbody tr:last-child td {
    border-bottom: 0;
}

.contest-single-container .participants-table tbody tr:hover td,
.contest-single-container .contest-members-table tbody tr:hover td {
    background: #fafcff;
}

.contest-single-container .participants-table td a,
.contest-single-container .contest-members-table td a {
    font-weight: 500;
    color: #2f5aff;
    text-decoration: none;
}

.contest-single-container .platform-label {
    display: block;
    margin-top: 4px;
    margin-left: 0;
    font-size: 11px;
    line-height: 1.2;
    color: #98a2b3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.contest-single-container .status-indicator {
    width: 10px;
    height: 10px;
    margin-right: 8px;
    vertical-align: -1px;
}

.contest-single-container .participants-table th.sortable,
.contest-single-container .contest-members-table th.sortable {
    padding-right: 24px;
}

.contest-single-container .participants-table th.sortable:after,
.contest-single-container .contest-members-table th.sortable:after {
    right: 8px;
    font-size: 12px;
}

.contest-single-container .participants-table th:nth-child(1),
.contest-single-container .participants-table td:nth-child(1) {
    width: 44px;
    min-width: 44px;
    text-align: center;
}

.contest-single-container .participants-table th:nth-child(2),
.contest-single-container .participants-table td:nth-child(2) {
    min-width: 140px;
}

.contest-single-container .participants-table th:nth-child(3),
.contest-single-container .participants-table td:nth-child(3) {
    min-width: 92px;
}

.contest-single-container .participants-table th:nth-child(4),
.contest-single-container .participants-table th:nth-child(5),
.contest-single-container .participants-table td:nth-child(4),
.contest-single-container .participants-table td:nth-child(5) {
    min-width: 104px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.contest-single-container .participants-table th:nth-child(6),
.contest-single-container .participants-table td:nth-child(6) {
    width: 62px;
    min-width: 62px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.contest-single-container .participants-table th:nth-child(7),
.contest-single-container .participants-table td:nth-child(7) {
    min-width: 116px;
}

.contest-single-container .participants-table th:nth-child(8),
.contest-single-container .participants-table td:nth-child(8) {
    min-width: 122px;
}

.contest-single-container .participants-table th:nth-child(9),
.contest-single-container .participants-table td:nth-child(9) {
    min-width: 94px;
    white-space: nowrap;
    text-align: right;
}

.contest-single-container .participants-table .participant-account a {
    font-weight: 600;
}

.contest-single-container .participants-table .trader-name-link {
    color: #111827;
}

.contest-single-container .participants-table .trader-name-link:hover,
.contest-single-container .participants-table .participant-account a:hover {
    color: #f0b90b;
}

.contest-single-container .participants-table .status-disqualified,
.contest-single-container .participants-table .status-quitted,
.contest-single-container .participants-table .status-participating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.contest-single-container .participants-table .status-disqualified {
    background: #fff4e8;
    color: #f28a1a;
}

.contest-single-container .participants-table .status-quitted {
    background: #f3f4f6;
    color: #6b7280;
}

.contest-single-container .participants-table .status-participating {
    background: #f5f7fa;
    color: #4b5563;
}

.contest-single-container .participants-table td:nth-child(8) {
    color: #4b5563;
    white-space: nowrap;
}

.contest-single-container .participants-table .update-time {
    font-size: 12px;
    color: #98a2b3;
    white-space: nowrap;
}

.contest-single-container .participants-table .update-time.recent {
    color: #66bb6a;
}

.contest-single-container .participants-table .update-time.moderate {
    color: #f0b90b;
}

.contest-single-container .participants-table .update-time.stale {
    color: #ef5350;
}

.contest-single-container .participants-table tbody tr.current-user-account td {
    background: #fffbed;
}

.contest-single-container .contest-participants-pagination {
    margin-top: 16px;
}

@media (max-width: 991px) {
    .contest-single-container .fx_content-title16.flex_title .fx_content-title-link,
    .contest-single-container .account-title,
    .contest-single-container .contest-title-new,
    .account-single-container .fx_content-title16.flex_title .fx_content-title-link,
    .account-single-container .account-title {
        font-size: 36px;
    }

    .contest-single-container .contest-participants h2 {
        font-size: 34px;
    }

    .contest-single-container .contest-main-content {
        padding: 24px 24px;
    }

    .contest-single-container .contest-sidebar-title,
    .contest-single-container .contest-top-players-title,
    .account-single-container .account-section h2,
    .account-single-container .account-open-orders h2,
    .account-single-container .account-order-history h2,
    .account-single-container .account-sidebar-section h3 {
        font-size: 24px;
    }

    .contest-single-container .participants-table th,
    .contest-single-container .contest-members-table th {
        font-size: 12px;
        padding: 11px 10px;
    }

    .contest-single-container .participants-table td,
    .contest-single-container .contest-members-table td {
        font-size: 13px;
        padding: 11px 10px;
    }
}

@media (max-width: 767px) {
    .contest-single-container .breadcrumb.clearfix {
        font-size: 13px;
        gap: 6px;
    }

    .account-single-container .breadcrumb.clearfix {
        font-size: 13px;
        gap: 6px;
    }

    .contest-single-container .fx_content-title16.flex_title .fx_content-title-link,
    .contest-single-container .account-title,
    .contest-single-container .contest-title-new,
    .account-single-container .fx_content-title16.flex_title .fx_content-title-link,
    .account-single-container .account-title {
        font-size: 28px;
    }

    .contest-single-container .contest-participants h2 {
        font-size: 28px;
    }

    .contest-single-container,
    .account-single-container {
        padding-top: 20px;
    }

    .contest-single-container::before,
    .account-single-container::before {
        height: 180px;
        border-radius: 20px;
    }

    .contest-single-container .contest-main-content,
    .account-single-container .account-main-content > .account-section,
    .account-single-container .account-sidebar-section {
        border-radius: 18px;
    }

    .contest-single-container .contest-main-content,
    .account-single-container .account-main-content > .account-section,
    .account-single-container .account-sidebar-section,
    .contest-single-container .contest-sidebar-section,
    .contest-single-container .contest-prizes-block,
    .contest-single-container .contest-disqualification-block,
    .contest-single-container .contest-rules {
        padding: 18px 18px;
    }

    .contest-single-container .contest-sidebar-title,
    .contest-single-container .contest-top-players-title,
    .account-single-container .account-section h2,
    .account-single-container .account-open-orders h2,
    .account-single-container .account-order-history h2,
    .account-single-container .account-sidebar-section h3 {
        font-size: 22px;
    }

    .account-single-container .account-owner,
    .account-single-container .account-connection-status,
    .account-single-container .account-updated,
    .account-single-container .account-participation-status .status-disqualified,
    .account-single-container .account-participation-status .status-quitted,
    .account-single-container .account-participation-status .status-participating {
        min-height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .contest-single-container .contest-participants {
        padding: 18px 16px 14px;
        border-radius: 14px;
    }

    .contest-single-container .participants-table th,
    .contest-single-container .contest-members-table th {
        font-size: 12px;
        padding: 10px 9px;
    }

    .contest-single-container .participants-table td,
    .contest-single-container .contest-members-table td {
        font-size: 12px;
        padding: 10px 9px;
    }

    .contest-single-container #search-participant {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 13px;
    }
}

/* Кнопка создания конкурса в заголовке */
.ft-create-contest-btn-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    margin-left: auto;
    vertical-align: middle;
    white-space: nowrap;
    flex-shrink: 0;
}

.ft-create-contest-btn-header:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    color: #fff;
    text-decoration: none;
}

.ft-create-contest-icon {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
}

.ft-create-contest-text {
    display: inline-block;
}

/* Адаптивность для кнопки создания конкурса */
@media (max-width: 768px) {
    .fx_content-title16.flex_title {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .fx_content-title16.flex_title .fx_content-title-link {
        flex: none;
        width: 100%;
    }

    .ft-create-contest-btn-header {
        margin-left: 0;
        width: 100%;
        max-width: 300px;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .ft-create-contest-btn-header {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .ft-create-contest-icon {
        font-size: 18px;
    }
}
    font-weight: 600;
}

/* Компактная секция "Почему выбирают" */
.contests-why-choose-compact {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.contests-why-choose-compact h2 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #222;
}

.contests-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.contests-why-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.contests-why-item:hover {
    background: #e9ecef;
}

.contests-why-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contests-why-icon-img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
}

.contests-why-content {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.contests-why-content strong {
    color: #333;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

/* FAQ Аккордеон */
.contests-faq-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.contests-faq-section h2 {
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 600;
    color: #222;
}

.contests-faq-accordion {
    margin-bottom: 30px;
}

.contests-faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.contests-faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contests-faq-question {
    width: 100%;
    padding: 18px 20px;
    background: #f9f9f9;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.3s ease;
    font-family: inherit;
}

.contests-faq-question:hover {
    background: #f0f0f0;
}

.contests-faq-question.active {
    background: #e8f4f8;
    border-bottom: 1px solid #e0e0e0;
}

.contests-faq-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.contests-faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.contests-faq-answer {
    display: none;
    padding: 20px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.contests-faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .contests-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contests-stat-item {
        padding: 20px 15px;
    }

    .contests-stat-value {
        font-size: 28px;
    }

    .contests-why-grid {
        grid-template-columns: 1fr;
    }

    .contests-faq-question {
        padding: 15px;
    }

    .contests-faq-question h3 {
        font-size: 16px;
    }

    .contests-faq-answer {
        padding: 15px;
    }
}
