/* ===== MODERN TABLE STYLES ===== */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--dark-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.modern-table thead {
    background: var(--gradient-primary);
}

.modern-table th {
    padding: 1.25rem 1.5rem;
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
}

.modern-table th:first-child {
    border-top-left-radius: var(--radius-lg);
}

.modern-table th:last-child {
    border-top-right-radius: var(--radius-lg);
}

.modern-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

.modern-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.modern-table td {
    padding: 1.25rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
    border: none;
    vertical-align: middle;
}

.modern-table td:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* Стили для изображений внутри таблицы */
.modern-table td img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
    display: block;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Для фото в отдельной ячейке */
.modern-table td:has(img) {
    padding: 0.75rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
}

/* Размеры фото в зависимости от контекста */
.modern-table td img {
    max-height: 180px;
    width: auto;
    max-width: 250px;
}

/* Ховер эффект для фото */
.modern-table tbody tr:hover td img {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 255, 136, 0.3);
}

/* Для фото рядом с текстом */
.modern-table td:not(:first-child):not(:last-child) img {
    max-height: 120px;
    max-width: 180px;
}

/* Для первой ячейки с фото */
.modern-table td:first-child img {
    max-height: 150px;
    max-width: 200px;
}

/* Для последней ячейки с фото */
.modern-table td:last-child img {
    max-height: 150px;
    max-width: 200px;
}

/* Контейнер для фото с текстом */
.modern-table td > div:has(img) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.modern-table td > div:has(img) img {
    flex-shrink: 0;
}

/* Price cell стили */
.price-cell {
    font-weight: 700;
}

.price-cell .price-highlight {
    width: 100%;
    text-align: center;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover .price-highlight {
    background: rgba(0, 255, 136, 0.2);
    transform: translateX(-3px);
}