/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Переопределение стилей Ant Design Vue кнопок */
.ant-input-group .ant-btn {
    padding: 0 !important;
}

/* Общие стили для страниц компаний */
.company-page-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.company-page-container h1 {
    margin-bottom: 50px;
}

.company-info {
    margin-top: 20px;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.company-financial-title {
    margin-top: 40px;
    margin-bottom: 20px;
}

.company-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Группы финансовых отчетов */
.financial-report-group {
    margin-bottom: 40px;
}

.financial-report-group h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
    color: #262626;
    font-size: 20px;
}

.financial-report-group .company-charts-grid {
    margin-top: 20px;
}

/* Стили дисклеймера */
.disclaimer {
    background: #fff7e6;
    border: 2px solid #ffa940;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.disclaimer-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.disclaimer-title {
    color: #d46b08;
    display: block;
    margin-bottom: 8px;
}

.disclaimer-text {
    margin: 0;
    color: #595959;
    line-height: 1.6;
}

/* Стили для модальных окон анализа */
.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Стили для контента анализа */
.analysis-content h2 {
    color: #262626;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
}

.analysis-content h3 {
    color: #595959;
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 12px;
}

.analysis-content p {
    color: #595959;
    line-height: 1.8;
    margin-bottom: 12px;
}

.analysis-content strong {
    color: #262626;
    font-weight: 600;
}

.analysis-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.analysis-content li {
    color: #595959;
    line-height: 1.8;
    margin-bottom: 8px;
}

.analysis-content hr {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 30px 0;
}

/* Специальные блоки контента анализа */
.asset-type {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.asset-type p {
    margin-bottom: 10px;
    color: #262626;
}

.year-analysis {
    background: #fafafa;
    padding: 15px;
    border-left: 4px solid #d9d9d9;
    margin-bottom: 15px;
    border-radius: 4px;
}

.year-analysis.highlight-peak {
    background: #fff7e6;
    border-left-color: #fa8c16;
}

.year-analysis.highlight-decline {
    background: #fff1f0;
    border-left-color: #f5222d;
}

.year-analysis.highlight-recovery {
    background: #f6ffed;
    border-left-color: #52c41a;
}

.conclusion {
    background: #e6f7ff;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #1890ff;
}

.conclusion p {
    margin-bottom: 10px;
}

.conclusion p:last-child {
    margin-bottom: 0;
}

.investor-notes {
    background: #f6ffed;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #52c41a;
    margin-top: 20px;
}

.investor-notes p {
    margin-bottom: 10px;
    color: #262626;
}

.investor-notes p:last-child {
    margin-bottom: 0;
}

/* Стили для аккордеонов финансовых отчетов */
.financial-report-accordion {
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fafafa;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    user-select: none;
}

.accordion-header:hover {
    background-color: #f0f0f0;
}

.accordion-header h3 {
    margin: 0;
    color: #262626;
    font-size: 18px;
}

.accordion-icon {
    font-size: 16px;
    color: #1890ff;
    transition: transform 0.3s;
}

.accordion-icon.rotated {
    transform: rotate(-180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.open {
    max-height: 5000px;
    transition: max-height 0.5s ease-in;
}

.accordion-content .company-charts-grid {
    padding: 30px;
}

/* Навигация и ссылки */
.back-link {
    margin-bottom: 20px;
}

.back-link a {
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
}

.back-link a:hover {
    text-decoration: underline;
}

/* SEO блок информации */
.seo-info-block {
    background: #f0f5ff;
    border-left: 4px solid #1890ff;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.seo-info-block h2 {
    margin: 0 0 15px 0;
    color: #1890ff;
    font-size: 18px;
}

.seo-info-block p {
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.seo-info-block p:last-child {
    margin-bottom: 0;
}

/* Стили для главной страницы */
.home-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.home-card {
    max-width: 800px;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 40px;
    text-align: center;
}

.home-card h1 {
    margin: 0 0 10px 0;
    color: #1890ff;
    font-size: 36px;
}

.home-subtitle {
    margin: 0 0 40px 0;
    color: #666;
    font-size: 18px;
}

.home-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-link-card {
    display: block;
    border: 2px solid #d9d9d9;
    border-radius: 8px;
    padding: 30px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.home-link-card:hover {
    border-color: #1890ff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
    transform: translateY(-2px);
}

.home-link-card h2 {
    margin: 0 0 10px 0;
    color: #1890ff;
    font-size: 24px;
}

.home-link-card p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.link-arrow {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #1890ff;
    transition: transform 0.3s;
}

.home-link-card:hover .link-arrow {
    transform: translateY(-50%) translateX(5px);
}

/* ===== ОСНОВНЫЕ ПЕРЕМЕННЫЕ ===== */
:root {
    /* Главный акцентный цвет */
    --color-primary: #1890ff;
    --color-primary-hover: #096dd9;
    --color-primary-light: rgba(24, 144, 255, 0.1);

    /* Темные цвета для текста и элементов */
    --color-dark: #191a23;
    --color-dark-secondary: #36363d;
    --color-text-primary: #474748;
    --color-text-secondary: #6c6c6e;

    /* Светлые фоны */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f6f7f9;
    --color-bg-light: #fafbfc;

    /* Дополнительные цвета */
    --color-border: #e5e7eb;
}

/* ===== НАВИГАЦИЯ (HEADER) ===== */
.header {
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link-admin {
    color: #722ed1;
    font-weight: 600;
}

.nav-link-admin:hover {
    color: #9254de;
}

/* ===== USER MENU ===== */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
    color: var(--color-text-primary);
}

.user-menu-toggle:hover {
    background: var(--color-bg-secondary);
}

.user-menu-toggle svg {
    width: 24px;
    height: 24px;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-username {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    color: var(--color-dark);
    font-size: 14px;
}

.user-menu-logout {
    display: block;
    padding: 12px 16px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.user-menu-logout:hover {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
}

/* ===== КНОПКИ ===== */
.btn {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 16px;
    padding: 5px 18px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    outline: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(24, 144, 255, 0.25);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.35);
}

/* ===== КОНТЕЙНЕРЫ И СЕКЦИИ ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-dark);
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты и мобильные устройства */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .logo {
        font-size: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .container {
        padding: 0 16px;
    }
}

/* ===== ЮРИДИЧЕСКИЕ СТРАНИЦЫ ===== */
.legal-section {
    padding: 120px 0 80px;
}

.legal-content {
    line-height: 1.8;
    color: var(--color-text-primary);
    margin-bottom: 60px;
}

.legal-content section {
    margin-bottom: 40px;
}

.legal-content h1 {
    margin-bottom: 48px;
    color: var(--color-dark);
    font-size: 42px;
    font-weight: 700;
}

.legal-content h2 {
    margin-top: 48px;
    margin-bottom: 24px;
    color: var(--color-dark);
    font-size: 24px;
    font-weight: 700;
    padding-bottom: 12px;
}

.legal-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--color-dark);
    font-size: 18px;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 24px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-content strong {
    color: var(--color-dark);
    font-weight: 600;
}

.legal-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 16px;
}

/* Адаптивность юридических страниц */
@media (max-width: 768px) {
    .legal-section {
        padding: 80px 0 60px;
    }

    .legal-content h1 {
        font-size: 32px;
        margin-bottom: 32px;
    }

    .legal-content h2 {
        font-size: 20px;
        margin-top: 32px;
    }

    .legal-content h3 {
        font-size: 16px;
    }
}

/* ========== TICKET SYSTEM STYLES ========== */

/* Tickets Container */
.tickets-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ticket-view-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

.tickets-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #262626;
}

/* Filters */
.tickets-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-select,
.search-input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.filter-select {
    min-width: 150px;
}

.search-input {
    flex: 1;
    min-width: 250px;
}

.filter-select:focus,
.search-input:focus {
    outline: none;
    border-color: #1890ff;
}

/* Stats Cards */
.tickets-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

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

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: #262626;
}

/* Ticket List */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ticket-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.ticket-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ticket-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ticket-id {
    font-size: 14px;
    color: #8c8c8c;
    font-weight: 500;
}

.ticket-badges {
    display: flex;
    gap: 8px;
}

.ticket-subject {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 12px;
}

.ticket-message {
    color: #595959;
    line-height: 1.6;
    margin-bottom: 12px;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #8c8c8c;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-status {
    color: white;
}

.badge-open {
    background: #52c41a;
}

.badge-in_progress {
    background: #1890ff;
}

.badge-closed {
    background: #8c8c8c;
}

.badge-priority {
    color: white;
}

.badge-priority-low {
    background: #95de64;
}

.badge-priority-medium {
    background: #ffa940;
}

.badge-priority-high {
    background: #ff7875;
}

.badge-priority-urgent {
    background: #ff4d4f;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close {
    color: #8c8c8c;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.modal-close:hover {
    color: #262626;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #262626;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #262626;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #1890ff;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

/* Ticket View */
.ticket-view-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.ticket-view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.ticket-view-id {
    font-size: 14px;
    color: #8c8c8c;
    margin-bottom: 8px;
}

.ticket-view-subject {
    font-size: 28px;
    font-weight: 600;
    color: #262626;
    margin: 0;
}

.ticket-view-badges {
    display: flex;
    gap: 8px;
}

.ticket-view-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.meta-item {
    font-size: 14px;
    color: #595959;
}

.meta-item strong {
    color: #262626;
    font-weight: 500;
}

.ticket-view-message {
    color: #595959;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* Replies */
#repliesSection h2 {
    font-size: 24px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 20px;
}

#repliesList {
    margin-bottom: 30px;
}

.reply-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.reply-admin {
    background: #e6f7ff;
    border-left: 4px solid #1890ff;
}

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

.reply-author {
    font-weight: 500;
    color: #262626;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-badge {
    background: #1890ff;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.reply-date {
    font-size: 13px;
    color: #8c8c8c;
}

.reply-message {
    color: #595959;
    line-height: 1.6;
    white-space: pre-wrap;
}

.reply-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.reply-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #262626;
}

.no-replies {
    text-align: center;
    padding: 40px;
    color: #8c8c8c;
    font-size: 16px;
}

.no-tickets {
    text-align: center;
    padding: 60px;
    color: #8c8c8c;
    font-size: 16px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #8c8c8c;
    font-size: 16px;
}

.error {
    background: #fff1f0;
    color: #ff4d4f;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.back-link {
    margin-bottom: 20px;
}

.back-link a {
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link a:hover {
    color: #40a9ff;
}

/* Responsive */
@media (max-width: 768px) {
    .tickets-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .tickets-filters {
        flex-direction: column;
    }

    .filter-select,
    .search-input {
        width: 100%;
        min-width: auto;
    }

    .tickets-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ticket-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ticket-view-header {
        flex-direction: column;
        gap: 15px;
    }

    .ticket-view-meta {
        flex-direction: column;
        gap: 10px;
    }

    .reply-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
}

/* ========== ADMIN PANEL STYLES ========== */

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.admin-header {
    text-align: center;
    margin-bottom: 60px;
}

.admin-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #262626;
    margin-bottom: 10px;
}

.admin-subtitle {
    font-size: 18px;
    color: #8c8c8c;
    margin: 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.admin-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
}

.admin-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.admin-card-icon {
    width: 48px;
    height: 48px;
    color: #1890ff;
    margin-bottom: 20px;
}

.admin-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #262626;
    margin: 0 0 12px 0;
}

.admin-card p {
    color: #8c8c8c;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.admin-card-link {
    color: #1890ff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
}

.admin-card-link:hover {
    color: #40a9ff;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.admin-stats .stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.admin-stats .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.admin-stats .stat-value {
    color: white;
}

@media (max-width: 768px) {
    .admin-header h1 {
        font-size: 32px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== ADMIN USERS PAGE STYLES ========== */

.admin-users-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.admin-users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.admin-users-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #262626;
    margin: 0;
}

.btn-secondary {
    background: #f5f5f5;
    color: #262626;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #d9d9d9;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #e8e8e8;
    border-color: #bfbfbf;
}

.users-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background: #fafafa;
}

.users-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #262626;
    border-bottom: 2px solid #f0f0f0;
}

.users-table td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #595959;
}

.users-table tbody tr:hover {
    background: #fafafa;
}

.users-table .loading,
.users-table .error,
.users-table .no-data {
    text-align: center;
    padding: 40px;
    color: #8c8c8c;
}

.users-table .error {
    color: #ff4d4f;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-active {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.badge-inactive {
    background: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-icon:hover {
    background: #f0f0f0;
}

.pagination {
    margin-top: 30px;
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.pagination-info {
    color: #595959;
    font-size: 14px;
}

/* Modal Styles */
.modal-close {
    font-size: 28px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .admin-users-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .users-table {
        font-size: 14px;
    }

    .users-table th,
    .users-table td {
        padding: 12px 8px;
    }

    .pagination-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Стили для страницы настроек */
.back-link {
    display: inline-block;
    margin-top: 10px;
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #40a9ff;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.alert-error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
}

.settings-form-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.settings-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.settings-card-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.settings-card-header h2 {
    font-size: 24px;
    color: #262626;
    margin-bottom: 10px;
}

.settings-description {
    color: #8c8c8c;
    font-size: 14px;
}

.settings-form .form-group {
    margin-bottom: 25px;
}

.settings-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #262626;
    font-size: 14px;
}

.input-with-addon {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    flex: 1;
    padding: 10px 50px 10px 15px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.input-addon {
    position: absolute;
    right: 15px;
    color: #8c8c8c;
    font-size: 16px;
    pointer-events: none;
}

.form-hint {
    display: block;
    margin-top: 8px;
    color: #8c8c8c;
    font-size: 13px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #1890ff;
    color: white;
}

.btn-primary:hover {
    background-color: #40a9ff;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #595959;
}

.btn-secondary:hover {
    background-color: #e8e8e8;
}

.settings-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-block {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-block h3 {
    font-size: 18px;
    color: #262626;
    margin-bottom: 15px;
}

.info-block p {
    color: #595959;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-block ul {
    list-style: none;
    padding: 0;
}

.info-block ul li {
    color: #595959;
    font-size: 14px;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.info-block ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1890ff;
    font-weight: bold;
}

/* Адаптивность для страницы настроек */
@media (max-width: 992px) {
    .settings-form-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ========== СТИЛИ ДЛЯ ФОРМ АУТЕНТИФИКАЦИИ ========== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f2f5;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #262626;
    margin: 0 0 8px 0;
}

.auth-header p {
    color: #8c8c8c;
    margin: 0;
    font-size: 14px;
}

.auth-form {
    margin-bottom: 24px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #262626;
    font-size: 14px;
}

.auth-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    box-sizing: border-box;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.auth-form .form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.auth-form .form-checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-form .form-checkbox-label {
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

.auth-form .invalid-feedback {
    color: #ff4d4f;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.auth-form ul.form-error-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0 0;
}

.auth-form ul.form-error-list li {
    color: #ff4d4f;
    font-size: 13px;
    margin-bottom: 4px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 24px;
}

.btn-submit:hover {
    background-color: #40a9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.auth-footer p {
    color: #595959;
    font-size: 14px;
    margin: 0;
}

.auth-footer a {
    color: #1890ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: #40a9ff;
    text-decoration: underline;
}

/* Адаптивность для форм аутентификации */
@media (max-width: 576px) {
    .auth-card {
        padding: 24px;
    }

    .auth-header h1 {
        font-size: 24px;
    }
}

/* ============================================
   Модальное окно подписки
   ============================================ */

.subscription-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.subscription-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.subscription-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 48px 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    text-align: center;
}

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

.subscription-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #8c8c8c;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscription-modal-close:hover {
    background-color: #f5f5f5;
    color: #262626;
}

.subscription-modal-icon {
    margin: 0 auto 24px;
    color: #faad14;
}

.subscription-modal-title {
    font-size: 28px;
    font-weight: 600;
    color: #262626;
    margin: 0 0 16px 0;
}

.subscription-modal-description {
    font-size: 16px;
    color: #595959;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.subscription-modal-price {
    background: linear-gradient(135deg, #f0f2f5 0%, #e6f7ff 100%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
}

.subscription-modal-price-label {
    display: block;
    font-size: 14px;
    color: #8c8c8c;
    margin-bottom: 8px;
}

.subscription-modal-price-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #1890ff;
}

.subscription-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscription-modal-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.subscription-modal-btn-primary {
    background-color: #1890ff;
    color: white;
}

.subscription-modal-btn-primary:hover {
    background-color: #40a9ff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
    transform: translateY(-2px);
}

.subscription-modal-btn-secondary {
    background-color: white;
    color: #1890ff;
    border: 2px solid #1890ff;
}

.subscription-modal-btn-secondary:hover {
    background-color: #e6f7ff;
    border-color: #40a9ff;
    color: #40a9ff;
}

.subscription-modal-note {
    font-size: 14px;
    color: #8c8c8c;
    margin-top: 16px;
    line-height: 1.5;
}

/* Адаптивность модального окна */
@media (max-width: 576px) {
    .subscription-modal-content {
        padding: 32px 24px;
        width: 95%;
    }

    .subscription-modal-title {
        font-size: 24px;
    }

    .subscription-modal-description {
        font-size: 14px;
    }

    .subscription-modal-price-value {
        font-size: 28px;
    }

    .subscription-modal-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Стили для премиум-контента */
.premium-content {
    position: relative;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #faad14 0%, #ffd666 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.premium-badge svg {
    width: 14px;
    height: 14px;
}

.premium-content.locked {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.premium-content.locked:hover {
    opacity: 0.8;
}

/* Cookie consent стили */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f9fafb;
    border-top: 2px solid #e5e7eb;
    padding: 30px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.cookie-consent.hide {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.cookie-text a {
    color: #3b82f6;
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #2563eb;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-accept {
    background: #10b981;
    color: white;
}

.cookie-accept:hover {
    background: #059669;
}

.cookie-reject {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.cookie-reject:hover {
    background: #e5e7eb;
}

/* Мобильная адаптация cookie consent */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 20px 15px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-buttons {
        justify-content: center;
        margin-top: 16px;
    }

    .cookie-btn {
        flex: 1;
        max-width: 140px;
    }

    .cookie-text h3 {
        font-size: 16px;
    }

    .cookie-text p {
        font-size: 13px;
    }
}

/* ========== КОМПАНИИ - СПИСОК ========== */

.companies-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.companies-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
}

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

.companies-header-title h1 {
    margin: 0 0 10px 0;
    color: #1890ff;
}

.companies-header-title p {
    margin: 0;
    color: #666;
}

.companies-header-links {
    margin-top: 15px;
}

.dividends-calendar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1890ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    background: #e6f7ff;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.dividends-calendar-link:hover {
    background: #bae7ff;
    color: #096dd9;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.dividends-calendar-link svg {
    stroke: currentColor;
}

.companies-divider {
    border-top: 1px solid #f0f0f0;
    padding-top: 30px;
}

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

.company-card {
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    background: #fafafa;
}

.company-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.company-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.company-logo {
    width: 50px;
    height: 50px;
    background: #1890ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    margin-right: 15px;
}

.company-card-info h3 {
    margin: 0;
    color: #1890ff;
}

.company-ticker {
    margin: 5px 0 0 0;
    color: #999;
    font-size: 12px;
}

.company-description {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

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

.company-link {
    flex: 1;
    text-align: center;
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px;
    border: 1px solid #1890ff;
    border-radius: 4px;
    transition: all 0.3s;
}

.company-link:hover {
    background: #1890ff;
    color: white;
}

.company-placeholder {
    border: 1px dashed #d9d9d9;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.company-placeholder-text {
    text-align: center;
    color: #999;
}

.company-placeholder-text p {
    margin: 0;
    font-size: 14px;
}

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

    .companies-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* TODO блоки для диаграмм без анализа */
.chart-analysis-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fafafa;
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    margin-top: 10px;
}

.chart-analysis-placeholder .btn-analyze {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.chart-analysis-placeholder .todo-note {
    color: #8c8c8c;
    font-size: 13px;
    margin: 0;
    font-style: italic;
}

/* ========== ПОСТЫ - СПИСОК ========== */

.posts-section {
    padding: 40px 0;
}

.posts-section .container {
    max-width: 1200px;
}

.posts-header {
    text-align: center;
    margin-bottom: 60px;
}

.posts-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #262626;
    margin: 0 0 10px 0;
}

.posts-subtitle {
    font-size: 18px;
    color: #8c8c8c;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8c8c8c;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.post-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 24px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.post-category {
    display: inline-block;
    padding: 4px 12px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.post-date {
    font-size: 13px;
    color: #8c8c8c;
}

.post-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
}

.post-title a {
    color: #262626;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #1890ff;
}

.post-summary {
    color: #595959;
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-size: 14px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.read-more {
    color: #1890ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.read-more:hover {
    color: #40a9ff;
}

.post-views {
    font-size: 13px;
    color: #8c8c8c;
}

/* ========== ПОСТ - ПРОСМОТР ========== */

.post-show-section {
    padding: 40px 0;
}

.post-show-section .container {
    max-width: 900px;
}

.post-article {
    background: white;
    border-radius: 12px;
    padding: 48px 64px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f0f0f0;
}

.post-meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.back-link {
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    font-weight: 500;
}

.back-link:hover {
    color: #40a9ff;
}

.post-category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.post-main-title {
    font-size: 44px;
    font-weight: 700;
    color: #262626;
    line-height: 1.3;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
}

.post-info {
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 14px;
    color: #8c8c8c;
    margin-bottom: 24px;
}

.post-date-full,
.post-views-full {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-lead {
    font-size: 19px;
    color: #262626;
    line-height: 1.8;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f6f8fa 0%, #f0f4f8 100%);
    border-left: 4px solid #1890ff;
    border-radius: 6px;
    margin-bottom: 12px;
    font-weight: 400;
}

.post-featured-image {
    width: 100%;
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Стили для содержимого поста с поддержкой Markdown */
.post-body {
    color: #262626;
    line-height: 1.9;
    font-size: 17px;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    color: #262626;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 40px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.post-body h1 {
    font-size: 36px;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 16px;
}

.post-body h2 {
    font-size: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.post-body h3 {
    font-size: 24px;
}

.post-body h4 {
    font-size: 20px;
}

.post-body h5 {
    font-size: 18px;
}

.post-body h6 {
    font-size: 16px;
    color: #595959;
}

.post-body p {
    margin: 0 0 24px 0;
}

.post-body strong {
    font-weight: 600;
    color: #262626;
}

.post-body em {
    font-style: italic;
}

.post-body a {
    color: #1890ff;
    text-decoration: none;
    border-bottom: 1px solid #91d5ff;
    transition: all 0.3s;
}

.post-body a:hover {
    color: #40a9ff;
    border-bottom-color: #40a9ff;
}

.post-body ul,
.post-body ol {
    margin: 0 0 24px 0;
    padding-left: 32px;
}

.post-body ul {
    list-style-type: disc;
}

.post-body ol {
    list-style-type: decimal;
}

.post-body li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.post-body li > ul,
.post-body li > ol {
    margin-top: 12px;
    margin-bottom: 0;
}

.post-body blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    background: #f6f8fa;
    border-left: 4px solid #d9d9d9;
    border-radius: 4px;
    color: #595959;
    font-style: italic;
}

.post-body blockquote p {
    margin-bottom: 0;
}

.post-body code {
    background: #f6f8fa;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 15px;
    color: #d63384;
    border: 1px solid #e8e8e8;
}

.post-body pre {
    background: #282c34;
    color: #abb2bf;
    padding: 20px 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 32px 0;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-body pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: inherit;
    font-size: 14px;
}

.post-body hr {
    border: none;
    border-top: 2px solid #e8e8e8;
    margin: 48px 0;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-body table thead {
    background: #fafafa;
}

.post-body table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #262626;
    border-bottom: 2px solid #e8e8e8;
}

.post-body table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.post-body table tbody tr:hover {
    background: #fafafa;
}

.post-body table tbody tr:last-child td {
    border-bottom: none;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.post-footer-meta {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-updated {
    font-size: 13px;
    color: #8c8c8c;
}

.back-to-list {
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.back-to-list:hover {
    color: #40a9ff;
}

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

    .posts-header h1 {
        font-size: 32px;
    }

    .post-article {
        padding: 24px;
    }

    .post-main-title {
        font-size: 28px;
    }

    .post-meta-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .post-footer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ========================================
   Стили для Markdown контента
   ======================================== */

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

.post-body h1 {
    font-size: 32px;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 12px;
}

.post-body h2 {
    font-size: 28px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 8px;
}

.post-body h3 {
    font-size: 24px;
}

.post-body h4 {
    font-size: 20px;
}

.post-body h5 {
    font-size: 18px;
}

.post-body h6 {
    font-size: 16px;
    color: #666;
}

.post-body p {
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 16px;
}

.post-body a {
    color: #1890ff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.post-body a:hover {
    border-bottom-color: #1890ff;
}

.post-body strong {
    font-weight: 600;
    color: #1a1a1a;
}

.post-body em {
    font-style: italic;
}

.post-body ul,
.post-body ol {
    margin-bottom: 16px;
    padding-left: 32px;
}

.post-body ul {
    list-style-type: disc;
}

.post-body ol {
    list-style-type: decimal;
}

.post-body li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.post-body li > ul,
.post-body li > ol {
    margin-top: 8px;
    margin-bottom: 8px;
}

.post-body blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 4px solid #1890ff;
    background-color: #f6f8fa;
    color: #666;
    font-style: italic;
}

.post-body blockquote p:last-child {
    margin-bottom: 0;
}

.post-body code {
    background-color: #f6f8fa;
    color: #e83e8c;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

.post-body pre {
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.post-body pre code {
    background-color: transparent;
    color: #24292e;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
}

.post-body hr {
    border: none;
    border-top: 2px solid #e8e8e8;
    margin: 32px 0;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 14px;
}

.post-body table th,
.post-body table td {
    border: 1px solid #e8e8e8;
    padding: 12px;
    text-align: left;
}

.post-body table th {
    background-color: #fafafa;
    font-weight: 600;
    color: #1a1a1a;
}

.post-body table tr:hover {
    background-color: #f6f8fa;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-body .task-list-item {
    list-style-type: none;
    margin-left: -32px;
}

.post-body .task-list-item input[type="checkbox"] {
    margin-right: 8px;
}

/* Адаптивность для Markdown контента */
@media (max-width: 768px) {
    .post-body h1 {
        font-size: 28px;
    }

    .post-body h2 {
        font-size: 24px;
    }

    .post-body h3 {
        font-size: 20px;
    }

    .post-body h4 {
        font-size: 18px;
    }

    .post-body p {
        font-size: 15px;
    }

    .post-body pre {
        padding: 12px;
        font-size: 13px;
    }

    .post-body table {
        font-size: 13px;
    }

    .post-body table th,
    .post-body table td {
        padding: 8px;
    }
}

/* ========================================
   Белая подложка для контента
   ======================================== */

.content-white-bg {
    background: #ffffff;
    border-radius: 8px;
    padding: 32px;
    margin-top: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .content-white-bg {
        padding: 20px;
        border-radius: 4px;
    }
}

/* ========================================
   Фиксированная кнопка Telegram
   ======================================== */

.telegram-float-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: telegram-pulse 2s infinite;
}

.telegram-float-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
    text-decoration: none;
    color: white;
    animation: none;
}

.telegram-float-button:active {
    transform: translateY(-1px);
}

.telegram-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.telegram-text {
    white-space: nowrap;
}

/* Анимация пульсации для привлечения внимания */
@keyframes telegram-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 136, 204, 0.7);
    }
}

/* Адаптация для планшетов */
@media (max-width: 992px) {
    .telegram-float-button {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .telegram-icon {
        width: 22px;
        height: 22px;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .telegram-float-button {
        bottom: 15px;
        right: 15px;
        padding: 12px;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        justify-content: center;
    }

    .telegram-text {
        display: none;
    }

    .telegram-icon {
        width: 28px;
        height: 28px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .telegram-float-button {
        bottom: 12px;
        right: 12px;
        width: 52px;
        height: 52px;
    }

    .telegram-icon {
        width: 26px;
        height: 26px;
    }
}

/* Стили для заголовка страницы календаря дивидендов */
.dividend-calendar-section {
    padding: 40px 20px;
}

.dividend-calendar-section .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.dividend-calendar-section .page-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.dividend-calendar-section .page-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .dividend-calendar-section {
        padding: 20px 10px;
    }

    .dividend-calendar-section .page-header h1 {
        font-size: 24px;
    }

    .dividend-calendar-section .page-subtitle {
        font-size: 16px;
    }
}

/* Адаптивный контейнер для встроенного видео (iframe, embed, object) */
.embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 1rem;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Стили для таблицы дивидендов */
.year-dividends-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 40px;
}

.year-dividends-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.dividends-table-wrapper {
    overflow-x: auto;
}

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

.dividends-table thead {
    background: #fafafa;
}

.dividends-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #595959;
    border-bottom: 2px solid #e8e8e8;
}

.dividends-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.dividends-table tbody tr:hover {
    background-color: #fafafa;
}

.dividends-table td {
    padding: 14px 16px;
}

.date-cell {
    color: #262626;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
}

.gosa-cell {
    background: #fff7e6;
}

.fixation-cell {
    background: #f6ffed;
}

.date-value {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
}

.no-date {
    color: #bfbfbf;
    font-style: italic;
}

.company-cell {
    color: #595959;
}

.company-cell strong {
    color: #262626;
    font-weight: 600;
}

.amount-cell {
    text-align: right;
    font-weight: 600;
    color: #262626;
}

.price-cell {
    text-align: right;
    color: #595959;
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.price-value {
    font-weight: 500;
}

.price-date {
    font-size: 11px;
    color: #8c8c8c;
    font-weight: 400;
}

.no-price {
    color: #bfbfbf;
    font-style: italic;
}

.yield-cell {
    text-align: center;
    font-weight: 600;
}

.yield-value {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.yield-value.yield-high {
    background: #f6ffed;
    color: #52c41a;
}

.yield-value.yield-medium {
    background: #e6f7ff;
    color: #1890ff;
}

.yield-value.yield-low {
    background: #fff7e6;
    color: #fa8c16;
}

.no-yield {
    color: #bfbfbf;
    font-style: italic;
}

.type-cell,
.status-cell {
    text-align: center;
}

.type-badge,
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.type-badge.type-gosa {
    background: #fff7e6;
    color: #d46b08;
}

.type-badge.type-fixation {
    background: #f6ffed;
    color: #389e0d;
}

.status-badge.status-paid {
    background: #52c41a;
    color: white;
}

.status-badge.status-upcoming {
    background: #1890ff;
    color: white;
}

.dividend-row.paid {
    opacity: 0.75;
}

.no-data {
    text-align: center;
    color: #8c8c8c;
    padding: 40px 16px;
    font-size: 16px;
}

/* Адаптивность таблицы */
@media (max-width: 768px) {
    .dividends-table {
        font-size: 12px;
    }

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

    .type-badge,
    .status-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* ==============================================
   Admin Company Edit Page Styles
   ============================================== */
.admin-company-edit {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: #f5f5f5;
    min-height: 100vh;
}

.admin-company-edit .page-header {
    margin-bottom: 32px;
}

.admin-company-edit .page-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #262626;
    margin: 0;
}

.admin-company-edit .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1890ff;
    text-decoration: none;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.admin-company-edit .back-link:hover {
    color: #40a9ff;
}

.admin-company-edit .company-edit-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-company-edit .form-card,
.admin-company-edit .tickers-card,
.admin-company-edit .info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-company-edit .ant-card {
    border-radius: 12px;
}

.admin-company-edit .ant-card-head {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 24px;
}

.admin-company-edit .ant-card-head-title {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
}

.admin-company-edit .ant-card-body {
    padding: 24px;
}

.admin-company-edit .form-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #8c8c8c;
    line-height: 1.5;
}

.admin-company-edit .form-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
}

.admin-company-edit .ant-form-item {
    margin-bottom: 24px;
}

.admin-company-edit .ant-form-item-label > label {
    font-weight: 500;
    color: #262626;
    font-size: 14px;
}

.admin-company-edit .ant-input,
.admin-company-edit .ant-input-textarea textarea,
.admin-company-edit .ant-select-selector {
    border-radius: 6px;
}

.admin-company-edit .ant-btn {
    border-radius: 6px;
    font-weight: 500;
}

.admin-company-edit .ant-btn-primary {
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

.admin-company-edit .ant-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.admin-company-edit .ant-table {
    font-size: 14px;
}

.admin-company-edit .ant-table-thead > tr > th {
    background: #fafafa;
    font-weight: 600;
    color: #262626;
}

.admin-company-edit .ant-descriptions-bordered .ant-descriptions-item-label {
    background: #fafafa;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
    .admin-company-edit {
        padding: 20px 12px;
    }

    .admin-company-edit .page-header h1 {
        font-size: 24px;
    }

    .admin-company-edit .ant-card-body {
        padding: 16px;
    }
}

/* Торговая информация */
.trading-info-block {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.trading-info-block h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

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

.trading-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.trading-info-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.trading-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.trading-positive {
    color: #52c41a;
}

.trading-negative {
    color: #ff4d4f;
}

/* Адаптивность для торговой информации */
@media (max-width: 768px) {
    .trading-info-grid {
        grid-template-columns: 1fr;
    }
}
/* Исследования компании на странице компании */
.company-research-section {
    margin-top: 20px;
    margin-bottom: 70px;
}

.research-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.research-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.research-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #1890ff;
    transform: translateY(-2px);
}

.research-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.research-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
    margin: 0;
    flex: 1;
}

.research-card-date {
    font-size: 13px;
    color: #8c8c8c;
    white-space: nowrap;
}

.research-card-summary {
    font-size: 14px;
    color: #595959;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

.research-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1890ff;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.research-card-link:hover {
    color: #40a9ff;
    gap: 8px;
}

/* Адаптивность для исследований */
@media (max-width: 768px) {
    .research-list {
        grid-template-columns: 1fr;
    }

    .research-card-header {
        flex-direction: column;
        gap: 8px;
    }

    .research-card-title {
        font-size: 16px;
    }
}
