:root {
        /* Professional Dark Theme - Unified */
        --bg-base: #0B0E13;
        --bg-elevated: #141821;
        --bg-card: #1A1F2E;
        --bg-hover: #222938;
        
        --fg-primary: #F0F2F5;
        --fg-secondary: #A8B0BD;
        --fg-tertiary: #6B7280;
        
        --accent-primary: #3B82F6;
        --accent-hover: #2563EB;
        --accent-muted: rgba(59, 130, 246, 0.1);
        
        /* Цвета для графиков и визуализации */
        --chart-emerald: #10B981;
        --chart-sapphire: #3B82F6;
        --chart-ruby: #EF4444;
        --chart-amber: #F59E0B;
        --chart-amethyst: #8B5CF6;
        --chart-cyan: #06B6D4;
        
        /* Семантические цвета */
        --success: #10B981;
        --warning: #F59E0B;
        --danger: #EF4444;
        
        --border-subtle: rgba(255, 255, 255, 0.06);
        --border-medium: rgba(255, 255, 255, 0.1);
        
        --glass-surface: rgba(20, 24, 33, 0.35);
        --glass-border: rgba(255, 255, 255, 0.08);
        --card-surface: rgba(26, 31, 46, 0.6);
        --card-surface-hover: rgba(26, 31, 46, 0.8);
        --card-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
        
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
      }

      /* Light Theme */
      .light-theme {
        --bg-base: #FFFFFF;
        --bg-elevated: #F8F9FA;
        --bg-card: #FFFFFF;
        --bg-hover: #F1F3F5;
        
        --fg-primary: #0F172A;
        --fg-secondary: #1E293B;
        --fg-tertiary: #475569;
        
        --accent-primary: #3B82F6;
        --accent-hover: #2563EB;
        --accent-muted: rgba(59, 130, 246, 0.1);
        
        --border-subtle: rgba(0, 0, 0, 0.08);
        --border-medium: rgba(0, 0, 0, 0.12);
        
        --glass-surface: rgba(255, 255, 255, 0.4);
        --glass-border: rgba(15, 23, 42, 0.12);
        --card-surface: rgba(255, 255, 255, 0.55);
        --card-surface-hover: rgba(255, 255, 255, 0.65);
        --card-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);

        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
      }

      .light-theme .bg-light {
        background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
      }

      .light-theme .profile-dropdown {
        background: color-mix(in srgb, var(--bg-card) 85%, transparent);
        backdrop-filter: blur(24px) saturate(170%);
        -webkit-backdrop-filter: blur(24px) saturate(170%);
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 
          inset 1px 0 0 0 color-mix(in srgb, rgba(255, 255, 255, 0.4) 50%, transparent),
          inset -1px 0 0 0 color-mix(in srgb, rgba(0, 0, 0, 0.05) 30%, transparent),
          4px 0 24px color-mix(in srgb, rgba(0, 0, 0, 0.1) 50%, transparent),
          1px 0 8px color-mix(in srgb, rgba(0, 0, 0, 0.08) 40%, transparent);
      }

      .light-theme .menu-header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      }

      .light-theme .profile-menu.active::before {
        background: rgba(0, 0, 0, 0.3);
      }

      .light-theme .news-filters {
        background: color-mix(in srgb, var(--glass-surface) 35%, transparent);
        backdrop-filter: blur(18px) saturate(160%);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        border: 1px solid #CBD5E1;
      }

      .light-theme .news-card {
        background: color-mix(in srgb, var(--card-surface) 40%, transparent);
        backdrop-filter: blur(16px) saturate(150%);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
      }

      .light-theme .bookmark-card {
        background: color-mix(in srgb, var(--card-surface) 40%, transparent);
        backdrop-filter: blur(16px) saturate(150%);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
        box-shadow: 
          inset 0 1px 0 0 color-mix(in srgb, rgba(255, 255, 255, 0.5) 50%, transparent),
          inset 0 -1px 0 0 color-mix(in srgb, rgba(0, 0, 0, 0.05) 30%, transparent),
          0 8px 24px color-mix(in srgb, rgba(15, 23, 42, 0.08) 50%, transparent),
          0 2px 8px color-mix(in srgb, rgba(15, 23, 42, 0.06) 40%, transparent);
      }

      .light-theme .bookmark-card:hover {
        box-shadow: 
          inset 0 1px 0 0 color-mix(in srgb, rgba(255, 255, 255, 0.6) 60%, transparent),
          inset 0 -1px 0 0 color-mix(in srgb, rgba(0, 0, 0, 0.08) 40%, transparent),
          0 12px 32px color-mix(in srgb, rgba(15, 23, 42, 0.12) 60%, transparent),
          0 4px 12px color-mix(in srgb, rgba(15, 23, 42, 0.1) 50%, transparent);
      }

      .light-theme .stat-card {
        background: color-mix(in srgb, var(--card-surface) 40%, transparent);
        backdrop-filter: blur(16px) saturate(150%);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
      }

      /* Simple Theme - Простая тема без эффектов (работает для темной и светлой) */
      /* Просто отключаем эффекты, используя те же цвета что и в обычной теме */
      .simple-theme {
        /* Убираем прозрачность - все элементы полностью непрозрачные */
        --glass-surface: var(--bg-card);
        --glass-border: var(--border-subtle);
        --card-surface: var(--bg-card);
        --card-surface-hover: var(--bg-hover);
        --card-shadow: var(--shadow-md);
      }

      /* Для темной простой темы - используем те же цвета что и в обычной темной */
      /* Не переопределяем цвета, просто убираем прозрачность через opacity и backdrop-filter */
      .simple-theme:not(.light-theme) {
        /* accent-muted остается с прозрачностью в переменной, но мы его не используем с прозрачностью */
      }

      /* Для светлой простой темы - используем те же цвета что и в обычной светлой */
      .simple-theme.light-theme {
        /* accent-muted остается с прозрачностью в переменной, но мы его не используем с прозрачностью */
      }

      /* Отключаем все эффекты для простой темы - убираем прозрачность и blur */
      .simple-theme * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
      }

      /* Убираем прозрачность из всех элементов - делаем полностью непрозрачными */
      .simple-theme .bg-light {
        background: var(--bg-base) !important;
        opacity: 1 !important;
      }

      .simple-theme .profile-dropdown {
        background: var(--bg-card) !important;
        opacity: 1 !important;
      }

      .simple-theme .news-filters {
        background: var(--bg-card) !important;
        opacity: 1 !important;
        border: none !important;
      }

      .simple-theme .news-card {
        background: var(--bg-card) !important;
        opacity: 1 !important;
        border: none !important;
      }

      .simple-theme .bookmark-card {
        background: var(--bg-card) !important;
        opacity: 1 !important;
        border: none !important;
      }

      .simple-theme .stat-card {
        background: var(--bg-card) !important;
        opacity: 1 !important;
        border: none !important;
      }

      .simple-theme .modal-content {
        background: var(--bg-card) !important;
        opacity: 1 !important;
      }

      .simple-theme .comment-modal-dialog {
        background: var(--bg-card) !important;
        opacity: 1 !important;
      }

      .simple-theme .navbar {
        background: var(--bg-elevated) !important;
        opacity: 1 !important;
      }

      .simple-theme .navbar-container {
        background: var(--bg-elevated) !important;
        opacity: 1 !important;
      }

      .simple-theme .profile-menu.active::before {
        background: rgba(0, 0, 0, 0.5) !important;
        opacity: 1 !important;
      }

      .simple-theme.light-theme .profile-menu.active::before {
        background: rgba(0, 0, 0, 0.3) !important;
        opacity: 1 !important;
      }

      /* Убираем лишние обводки - используем те же стили что и в обычной теме */
      .simple-theme .date-carousel-item {
        border: 1px solid var(--border-subtle) !important;
      }

      .simple-theme .date-carousel-item.active {
        border: 2px solid var(--accent-primary) !important;
      }

      .simple-theme.light-theme .filter-badge {
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.15);
      }
      
      .simple-theme:not(.light-theme) .filter-badge {
        border: none !important;
      }

      .simple-theme .group-badge {
        border: none !important;
      }

      .simple-theme .group-block {
        border: none !important;
      }

      .simple-theme .date-carousel {
        border-top: none !important;
        border-bottom: none !important;
      }

      .simple-theme .filters-toggle {
        border: none !important;
      }

      .simple-theme .news-header {
        border-bottom: none !important;
      }

      .simple-theme .group-block-header {
        border-bottom: none !important;
      }

      .simple-theme .menu-header {
        border-bottom: none !important;
      }

      .simple-theme .profile-dropdown {
        border-right: none !important;
      }

      /* Простая тема использует те же стили что и обычная, только без эффектов */
      /* Все остальные стили наследуются от обычной темы */


      .light-theme .filters-mobile-toggle {
        background: rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.3);
        color: var(--fg-primary);
      }

      .light-theme .navbar {
        background: transparent;
      }
      .light-theme .navbar-container {
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
      }

      /* Текст в светлой теме - более контрастный */
      .light-theme .news-title {
        color: var(--accent-primary) !important;
      }

      .light-theme .news-title:hover {
        color: var(--accent-hover) !important;
      }

      .light-theme .news-description {
        color: #1E293B !important;
      }

      .light-theme .news-meta-line {
        color: #475569 !important;
      }

      .light-theme .news-sources {
        color: #475569 !important;
      }

      .light-theme .group-block-label,
      .light-theme .rating-label {
        color: #475569 !important;
      }

      .light-theme .news-source-link {
        color: var(--accent-primary) !important;
      }

      /* Графы в светлой теме - темные линии и узлы на светлом фоне */
      .light-theme #graphContainer svg {
        background: #FFFFFF !important;
      }

      .light-theme #graphContainer svg .link {
        stroke: rgba(0, 0, 0, 0.2) !important;
      }

      .light-theme #graphContainer svg .node circle {
        fill: #FFFFFF !important;
        stroke: rgba(0, 0, 0, 0.3) !important;
      }

      .light-theme #graphContainer svg .node text {
        fill: #0F172A !important;
      }

      .light-theme #graphContainer svg .node:hover circle {
        stroke: var(--accent-primary) !important;
      }

      /* Все текстовые элементы в светлой теме */
      .light-theme p,
      .light-theme span,
      .light-theme div:not(.news-card):not(.filter-badge):not(.group-badge) {
        color: inherit;
      }

      /* Фильтры в светлой теме - серый фон и обводка для видимости на белом фоне */
      .light-theme .filter-badge {
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.15);
        color: var(--fg-secondary);
      }

      .light-theme .filter-badge:hover {
        background: rgba(0, 0, 0, 0.1);
        border-color: rgba(0, 0, 0, 0.25);
        color: var(--fg-primary);
      }

      /* Группы в светлой теме */
      .light-theme .group-badge {
        background: rgba(0, 0, 0, 0.05);
        color: #0F172A;
      }

      html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
      }

      html {
        overflow-y: scroll; /* Всегда показываем ползунок, чтобы избежать сдвига контента */
        overflow-x: hidden; /* Предотвращаем горизонтальный скролл */
        width: 100%;
        height: 100%;
      }

      html, body {
        height: 100%;
        background: var(--bg-base);
        color: var(--fg-primary);
        margin: 0;
        padding: 0;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                    color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        width: 100%;
        overflow-x: hidden;
        position: relative;
      }
      
      body {
        overflow: visible; /* НЕ создаем второй скроллбар, скролл идет только через html */
        font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        font-size: 15px;
        font-weight: 300;
        line-height: 1.6;
        letter-spacing: -0.01em;
        -webkit-tap-highlight-color: transparent;
      }

      /* Плавные переходы для всех цветовых свойств при смене темы */
      html {
        transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transition: color 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
      }

      body {
        transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transition: color 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
      }

      /* Плавные переходы для основных элементов интерфейса */
      .news-card, .stat-card, .navbar-container,
      .profile-dropdown, .news-filters, .filter-badge, .group-badge,
      .news-title, .news-excerpt, .news-meta-line, .news-source-link,
      .dropdown-item, .menu-header, .group-block-label,
      .navbar, .nav-tab, .news-rating, .rating-stars,
      .news-groups, .user-groups, .group-block,
      .news-header-row, .news-id, .news-bookmark svg,
      .rating-label, .star, .news-source-link-container {
        transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transition: color 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transition: border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transition: box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transition: fill 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transition: stroke 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transition: backdrop-filter 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transition: -webkit-backdrop-filter 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
      }
      
      button, a, .star, .news-card, .menu-toggle, .bookmark-btn {
        -webkit-tap-highlight-color: transparent;
      }
      
      body:has(#welcomeScreen:not([style*="display: none"])) {
        overflow: hidden;
      }

      /* Subtle gradient overlay */
      .bg-light {
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
      }

      .scene {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
      }

      /* Welcome Screen */
      .brand {
        text-align: center;
        max-width: 800px;
        padding: 3rem;
      }

      .title {
        font-size: clamp(3rem, 10vw, 6rem);
        font-weight: 200;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        line-height: 1;
        margin-bottom: 1.5rem;
        opacity: 0;
        filter: blur(20px);
        animation: focusIn 1.8s ease-out 0.3s forwards;
      }

      .title .brill {
        color: var(--fg-primary);
      }
      
      .title .pulse {
        color: var(--accent-primary);
      }

      @keyframes focusIn {
        0% {
          opacity: 0;
          filter: blur(20px);
          transform: scale(1.05);
        }
        100% {
          opacity: 1;
          filter: blur(0px);
          transform: scale(1);
        }
      }

      @media (prefers-reduced-motion: reduce) {
        * {
          animation: none !important;
          transition: none !important;
        }
      }

      /* Auth Container */
      .auth-container {
        position: fixed;
        top: 2rem;
        right: 2.5rem;
        z-index: 1001;
        opacity: 0;
        filter: blur(10px);
        animation: focusIn 1.5s ease-out 1.2s forwards;
      }

      @media (max-width: 768px) {
        .auth-container {
          top: 1rem;
          right: 1rem;
          left: 1rem;
          width: auto;
        }
      }

      .login-btn {
        padding: 0.75rem 2rem;
        background: var(--accent-primary);
        border: none;
        border-radius: 6px;
        color: white;
        font-size: 0.9rem;
        font-weight: 400;
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: inherit;
        box-shadow: var(--shadow-md);
      }

      .login-btn:hover {
        background: var(--accent-hover);
        transform: translateY(-1px);
        box-shadow: var(--shadow-lg);
      }

      /* Profile Menu */
      .profile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1001;
        pointer-events: none;
      }

      .profile-menu.active {
        pointer-events: auto;
      }

      .profile-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: -1;
      }

      body.menu-open {
        overflow: hidden;
        touch-action: none;
        -ms-touch-action: none;
        position: fixed;
        width: 100%;
        height: 100%;
      }

      @media (max-width: 768px) {
        body.menu-open {
          touch-action: none;
          -ms-touch-action: none;
          -webkit-user-select: none;
          user-select: none;
        }
        
        body.menu-open * {
          touch-action: none;
          -ms-touch-action: none;
        }
      }

      body.menu-open .dashboard-content,
      body.menu-open main:not(.profile-menu) {
        filter: blur(8px);
        transition: filter 0.3s ease;
      }

      body.menu-open .profile-menu {
        filter: none !important;
      }

      .profile-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-sm);
      }

      .profile-btn:hover {
        background: var(--bg-hover);
        border-color: var(--border-medium);
      }

      .profile-avatar {
        font-size: 1.2rem;
      }

      .profile-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        width: 240px;
        max-width: 75vw;
        height: 100vh;
        background: rgba(26, 31, 46, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-right: 1px solid var(--border-medium);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow-y: auto;
      }

      .menu-header {
        height: 4.5rem;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-medium);
      }

      .menu-content {
        flex: 1;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
      }

      .profile-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
      }

      .menu-close-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        color: var(--fg-tertiary);
        font-size: 1.5rem;
        transition: all 0.2s ease;
      }

      .light-theme .menu-close-btn {
        color: var(--fg-tertiary);
      }

      .menu-close-btn .material-symbols-outlined {
        font-family: 'Material Symbols Outlined';
        font-weight: normal;
        font-style: normal;
        font-size: 24px;
        line-height: 1;
        letter-spacing: normal;
        text-transform: none;
        display: inline-block;
        white-space: nowrap;
        word-wrap: normal;
        direction: ltr;
        transform: scaleX(-1);
        -webkit-font-feature-settings: 'liga';
        font-feature-settings: 'liga';
        -webkit-font-smoothing: antialiased;
      }

      .menu-close-btn:hover {
        background: var(--bg-hover);
      }

      .dropdown-item {
        width: 100%;
        padding: 1rem 1.25rem;
        background: transparent;
        border: none;
        color: var(--fg-primary);
        font-size: 1rem;
        font-weight: 400;
        cursor: pointer;
        transition: background 0.15s ease;
        font-family: inherit;
        text-align: left;
        display: block;
        border-radius: 8px;
        margin-bottom: 0.5rem;
      }

      .dropdown-item:last-child {
        margin-top: 30vh;
        margin-bottom: 0;
        background: transparent;
        color: #ef4444;
        border: none;
      }

      .dropdown-item:last-child:hover {
        background: var(--bg-hover);
        border: none;
      }

      .dropdown-item:hover:not(:last-child) {
        background: var(--bg-hover);
      }

      /* Navbar */
      .navbar-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: color-mix(in srgb, var(--bg-card) 15%, transparent);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 
          inset 0 1px 0 0 color-mix(in srgb, rgba(255, 255, 255, 0.1) 30%, transparent),
          inset 0 -1px 0 0 color-mix(in srgb, rgba(0, 0, 0, 0.1) 20%, transparent),
          0 4px 16px color-mix(in srgb, rgba(0, 0, 0, 0.15) 40%, transparent),
          0 1px 4px color-mix(in srgb, rgba(0, 0, 0, 0.1) 30%, transparent);
        transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .light-theme .navbar-container {
        background: color-mix(in srgb, var(--bg-card) 15%, transparent);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 
          inset 0 1px 0 0 color-mix(in srgb, rgba(255, 255, 255, 0.3) 50%, transparent),
          inset 0 -1px 0 0 color-mix(in srgb, rgba(0, 0, 0, 0.05) 30%, transparent),
          0 4px 16px color-mix(in srgb, rgba(0, 0, 0, 0.08) 40%, transparent),
          0 1px 4px color-mix(in srgb, rgba(0, 0, 0, 0.05) 30%, transparent);
      }

      .navbar {
        max-width: 1400px;
        margin: 0 auto;
        padding: 1.5rem 2rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        position: relative;
        min-height: 60px;
      }

      .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 6px;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        flex-shrink: 0;
        position: absolute;
        left: 2rem;
        z-index: 1;
      }

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

      .menu-toggle.active {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
      }

      .nav-tabs {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
        align-items: center;
        flex: 1;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
      }

      .filters-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 6px;
        transition: background 0.2s ease;
        position: absolute;
        right: 2rem;
        z-index: 2;
        color: var(--fg-secondary);
        flex-shrink: 0;
      }

      .filters-toggle:hover {
        background: var(--bg-hover);
      }

      .filters-toggle .material-symbols-outlined {
        font-size: 1.8rem;
        color: var(--fg-tertiary);
        font-display: swap;
        opacity: 1;
        visibility: visible;
      }

      .light-theme .filters-toggle .material-symbols-outlined {
        color: var(--fg-tertiary);
      }

      .filters-badge {
        position: absolute;
        top: -2px;
        right: -2px;
        background: var(--fg-tertiary);
        color: var(--bg-base);
        border-radius: 10px;
        min-width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: 600;
        padding: 0 4px;
        line-height: 1;
      }

      .light-theme .filters-badge {
        background: var(--fg-tertiary);
        color: #FFFFFF;
      }

      .nav-tab {
        padding: 0.65rem 1.25rem;
        background: transparent;
        border: none;
        border-radius: 6px;
        color: var(--fg-secondary);
        font-size: 0.9rem;
        font-weight: 300;
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: inherit;
      }

      .nav-tab:hover {
        color: var(--fg-primary);
        background: var(--bg-hover);
      }

      .nav-tab.active {
        background: var(--accent-muted);
        color: var(--accent-primary);
      }

      .nav-tab.disabled {
        opacity: 0.25;
        filter: blur(2px);
        user-select: none;
      }

      .hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 24px;
      }

      .hamburger span {
        width: 24px;
        height: 2px;
        background: var(--fg-tertiary);
        border-radius: 2px;
        transition: all 0.3s;
      }

      .light-theme .hamburger span {
        background: var(--fg-tertiary);
      }

      @media (max-width: 768px) {
        .navbar {
          display: flex;
          align-items: center;
          padding: 1.25rem 1rem;
          position: relative;
          min-height: 56px;
        }

        .menu-toggle {
          position: absolute;
          left: 1rem;
          z-index: 1;
          flex-shrink: 0;
        }

        .nav-tabs {
          display: flex;
          gap: 0.5rem;
          justify-content: center;
          align-items: center;
          flex: 1;
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
          width: auto;
        }

        .filters-toggle {
          right: 1rem;
          z-index: 2;
        }

        .filters-toggle .material-symbols-outlined {
          font-size: 1.3rem;
        }

        .nav-tab {
          padding: 0.5rem 1rem;
          font-size: 0.85rem;
        }

        .profile-menu {
          position: fixed;
          top: 4.5rem;
          left: 0;
          right: 0;
          z-index: 1000;
        }
      }

      /* Dashboard Content */
      .dashboard-content {
        padding: 5rem 2rem 2rem;
        max-width: 1400px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
      }

      @media (max-width: 768px) {
        .dashboard-content {
          padding: 4.5rem 1rem 1.5rem;
          width: 100%;
          box-sizing: border-box;
        }
      }

      .tab-content {
        display: none;
      }

      .tab-content.active {
        display: block;
        animation: fadeIn 0.3s ease-out;
      }

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

      /* Stats Grid */
      .stats-grid-modal {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        margin-top: 1rem;
      }

      .stats-modal-content {
        max-width: 600px;
      }

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

      .stat-card {
        padding: 2rem;
        background: color-mix(in srgb, var(--card-surface) 40%, transparent);
        backdrop-filter: blur(16px) saturate(150%);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
        border-radius: 12px;
        border: 1px solid var(--border-subtle);
        box-shadow: 
          inset 0 1px 0 0 color-mix(in srgb, rgba(255, 255, 255, 0.08) 50%, transparent),
          inset 0 -1px 0 0 color-mix(in srgb, rgba(0, 0, 0, 0.08) 30%, transparent),
          0 6px 20px color-mix(in srgb, rgba(0, 0, 0, 0.2) 45%, transparent),
          0 2px 6px color-mix(in srgb, rgba(0, 0, 0, 0.15) 35%, transparent);
        transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.2s ease;
      }

      @media (max-width: 768px) {
        .stat-card {
          padding: 1.5rem;
          width: 100%;
          box-sizing: border-box;
        }
      }

      .stat-card:hover {
        background: color-mix(in srgb, var(--card-surface-hover) 50%, transparent);
        border-color: var(--border-medium);
        box-shadow: 
          inset 0 1px 0 0 color-mix(in srgb, rgba(255, 255, 255, 0.1) 60%, transparent),
          inset 0 -1px 0 0 color-mix(in srgb, rgba(0, 0, 0, 0.1) 40%, transparent),
          0 10px 28px color-mix(in srgb, rgba(0, 0, 0, 0.25) 55%, transparent),
          0 4px 10px color-mix(in srgb, rgba(0, 0, 0, 0.2) 45%, transparent);
        transform: translateY(-2px);
      }

      .mock-blur {
        filter: blur(4px);
        user-select: none;
        pointer-events: none;
      }

      .stat-label {
        font-size: 0.85rem;
        color: var(--fg-tertiary);
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.75rem;
      }

      .stat-value {
        font-size: 2.25rem;
        font-weight: 300;
        color: var(--fg-primary);
        margin-bottom: 0.5rem;
        line-height: 1;
      }

      .stat-change {
        font-size: 0.9rem;
        font-weight: 400;
      }

      .stat-change.positive { color: var(--success); }
      .stat-change.negative { color: var(--danger); }

      /* News Layout */
      .news-content-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        width: 100%;
        box-sizing: border-box;
      }

      @media (max-width: 768px) {
        .news-content-layout {
          width: 100%;
          margin-top: 0.5rem;
          gap: 0.75rem;
        }
      }

      .news-filters {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0.75rem 1rem;
        background: color-mix(in srgb, var(--glass-surface) 35%, transparent);
        backdrop-filter: blur(18px) saturate(160%);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        border-radius: 12px;
        border: 1px solid var(--glass-border);
        position: sticky;
        top: 4rem;
        z-index: 10;
        min-height: 60px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        box-shadow: 
          inset 0 1px 0 0 color-mix(in srgb, rgba(255, 255, 255, 0.1) 40%, transparent),
          inset 0 -1px 0 0 color-mix(in srgb, rgba(0, 0, 0, 0.08) 25%, transparent),
          0 6px 20px color-mix(in srgb, rgba(0, 0, 0, 0.2) 45%, transparent),
          0 2px 6px color-mix(in srgb, rgba(0, 0, 0, 0.15) 35%, transparent);
        transition: transform 0.3s ease, 
                    opacity 0.2s ease, 
                    padding 0.2s ease,
                    background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .filters-mobile-toggle {
        display: none;
        background: var(--glass-surface);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--glass-border);
        color: var(--fg-secondary);
        padding: 0.75rem 1rem;
        border-radius: 12px;
        font-size: 0.8rem;
        font-family: inherit;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        box-shadow: 0 6px 16px rgba(15, 18, 26, 0.5);
        z-index: 25;
      }

      .filters-mobile-toggle:hover {
        background: var(--card-surface-hover);
        border-color: var(--accent-primary);
      }

      .filters-mobile-toggle.filters-hidden {
        opacity: 0.5;
        background: rgba(20, 24, 33, 0.2);
        padding: 0.5rem;
        min-width: 44px;
        justify-content: center;
      }

      .light-theme .filters-mobile-toggle.filters-hidden {
        background: rgba(255, 255, 255, 0.2);
      }

      .filters-mobile-toggle.filters-hidden .toggle-text {
        display: none;
      }

      .filters-mobile-toggle .toggle-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        transition: transform 0.2s ease;
        line-height: 1;
      }

      .news-list-wrapper,
      .bookmarks-list-wrapper {
        width: 100%;
        min-width: 0;
        position: relative;
        box-sizing: border-box;
      }

      @media (max-width: 768px) {
        html, body {
          overflow-x: hidden;
          width: 100%;
        }
        
        .news-list-wrapper,
        .bookmarks-list-wrapper {
          width: 100%;
          padding: 0;
          box-sizing: border-box;
        }
        
        .news-card {
          width: 100%;
          max-width: 100%;
          box-sizing: border-box;
          padding: 1.25rem 1rem;
          margin-left: 0;
          margin-right: 0;
        }
        
        .news-card * {
          max-width: 100%;
          word-wrap: break-word;
          overflow-wrap: break-word;
          box-sizing: border-box;
        }
        
        .news-title,
        .news-excerpt,
        .news-source-link,
        .news-source-link-container,
        .news-itog-block,
        .news-groups,
        .user-groups {
          width: 100%;
          max-width: 100%;
          box-sizing: border-box;
          word-wrap: break-word;
          overflow-wrap: break-word;
        }
        
        .news-title a {
          word-wrap: break-word;
          overflow-wrap: break-word;
          display: inline-block;
          max-width: 100%;
        }
        
        #exportExcelContainer {
          padding: 0 0.5rem;
        }
      }
      
      /* Стили для закладок */
      /* Единая анимация появления для всех контейнеров */
      #bookmarksContainer.bookmarks-appearing,
      #newsContainer.news-appearing,
      #bookmarksList.bookmarks-appearing {
        animation: contentGlassFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
      }

      @keyframes contentGlassFadeIn {
        0% {
          opacity: 0;
          transform: translateY(15px) scale(0.98);
          backdrop-filter: blur(0px);
          -webkit-backdrop-filter: blur(0px);
        }
        50% {
          backdrop-filter: blur(8px);
          -webkit-backdrop-filter: blur(8px);
        }
        100% {
          opacity: 1;
          transform: translateY(0) scale(1);
          backdrop-filter: blur(16px);
          -webkit-backdrop-filter: blur(16px);
        }
      }

      @keyframes bookmarksFadeIn {
        from {
          opacity: 0;
          transform: translateY(10px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      @keyframes bookmarksGlassFadeIn {
        0% {
          opacity: 0;
          transform: translateY(15px) scale(0.98);
          backdrop-filter: blur(0px);
          -webkit-backdrop-filter: blur(0px);
        }
        50% {
          backdrop-filter: blur(8px);
          -webkit-backdrop-filter: blur(8px);
        }
        100% {
          opacity: 1;
          transform: translateY(0) scale(1);
          backdrop-filter: blur(16px);
          -webkit-backdrop-filter: blur(16px);
        }
      }

      .bookmarks-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1rem;
      }
      
      @media (max-width: 768px) {
        .bookmarks-grid {
          grid-template-columns: 1fr;
          gap: 0.75rem;
        }
      }
      
      .bookmark-card {
        background: color-mix(in srgb, var(--card-surface) 40%, transparent);
        border-radius: 12px;
        padding: 0.75rem;
        border: 1px solid var(--border-subtle);
        transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.2s ease;
        backdrop-filter: blur(16px) saturate(150%);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
        box-shadow: 
          inset 0 1px 0 0 color-mix(in srgb, rgba(255, 255, 255, 0.08) 50%, transparent),
          inset 0 -1px 0 0 color-mix(in srgb, rgba(0, 0, 0, 0.08) 30%, transparent),
          0 8px 24px color-mix(in srgb, rgba(0, 0, 0, 0.2) 50%, transparent),
          0 2px 8px color-mix(in srgb, rgba(0, 0, 0, 0.15) 40%, transparent);
      }
      
      .bookmark-card:hover {
        background: color-mix(in srgb, var(--card-surface-hover) 50%, transparent);
        border-color: var(--border-medium);
        box-shadow: 
          inset 0 1px 0 0 color-mix(in srgb, rgba(255, 255, 255, 0.1) 60%, transparent),
          inset 0 -1px 0 0 color-mix(in srgb, rgba(0, 0, 0, 0.1) 40%, transparent),
          0 12px 32px color-mix(in srgb, rgba(0, 0, 0, 0.25) 60%, transparent),
          0 4px 12px color-mix(in srgb, rgba(0, 0, 0, 0.2) 50%, transparent);
        transform: translateY(-2px);
      }
      
      .bookmark-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.25rem;
      }
      
      .bookmark-id {
        font-size: 0.7rem;
        color: var(--fg-tertiary);
      }
      
      .bookmark-rating {
        font-size: 0.75rem;
        color: #FFD700;
        margin-left: auto;
      }
      
      .bookmark-title {
        font-size: 0.9rem;
        font-weight: 400;
        color: var(--fg-primary);
        margin: 0.5rem 0;
        line-height: 1.4;
      }
      
      .bookmark-title a {
        color: var(--accent-primary);
        text-decoration: none;
      }
      
      .bookmark-title a:hover {
        text-decoration: underline;
      }
      
      .bookmark-excerpt {
        font-size: 0.8rem;
        color: var(--fg-secondary);
        line-height: 1.5;
        margin: 0.5rem 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      
      .bookmark-source {
        font-size: 0.75rem;
        color: var(--fg-tertiary);
        margin: 0.5rem 0;
      }
      
      .bookmark-source a {
        color: var(--fg-tertiary);
        text-decoration: none;
      }
      
      .bookmark-source a:hover {
        color: var(--fg-secondary);
        text-decoration: underline;
      }
      
      .bookmark-groups {
        margin-top: 0.5rem;
      }
      
      .bookmark-groups .group-block-header {
        margin-bottom: 0.25rem;
      }
      
      .bookmark-groups .group-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem;
      }

      .news-filters.collapsed {
        background: rgba(26, 31, 46, 0.3);
      }

      .filters-toolbar {
        display: flex;
        flex: 1 1 auto;
        flex-wrap: wrap;
        gap: 0.8rem;
        align-items: center;
        justify-content: space-between;
      }

      .filters-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        align-items: center;
        flex: 1 1 60%;
      }

      .filters-info {
        display: none;
        flex: 1 1 auto;
        flex-wrap: wrap;
        gap: 0.6rem;
        font-size: 0.8rem;
        color: var(--fg-secondary);
        align-items: center;
      }

      .filters-info-line {
        display: flex;
        gap: 0.35rem;
        align-items: center;
        white-space: nowrap;
      }

      .filters-info-label {
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-size: 0.72rem;
        color: var(--fg-tertiary);
      }

      .news-filters.collapsed .filters-list {
        display: none;
      }

      .news-filters.collapsed .filters-info {
        display: flex;
      }

      .filters-view-toggle {
        display: flex;
        gap: 0.5rem;
        flex: 0 0 auto;
      }

      .filter-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.4rem 0.9rem;
        border-radius: 999px;
        font-size: 0.8rem;
        font-weight: 400;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: var(--fg-secondary);
        cursor: pointer;
        transition: all 0.2s ease;
        font-family: inherit;
      }

      @media (max-width: 768px) {
        .news-filters {
          position: fixed;
          left: 1rem;
          right: 1rem;
          top: calc(4.5rem + 1rem);
          max-width: calc(100% - 2rem);
          margin: 0 auto;
          flex-direction: column;
          align-items: stretch;
          gap: 0.75rem;
          box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
          transform: translateX(0);
          padding: 0.9rem 1rem 1rem;
          z-index: 20;
        }

        .news-filters.mobile-hidden {
          transform: translateX(100%);
          pointer-events: none;
        }

        .news-filters.mobile-hidden .filters-toolbar {
          opacity: 0;
          pointer-events: none;
        }

        .filters-toolbar {
          width: 100%;
          flex-direction: column;
          align-items: stretch;
        }

        .filters-list {
          flex-wrap: wrap;
        }

        .filters-mobile-toggle {
          display: inline-flex !important;
          position: fixed;
          top: calc(4.5rem + 0.75rem);
          right: 1rem;
          pointer-events: auto;
          align-items: center;
          z-index: 25;
        }
      }

      .filter-badge:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.15);
        color: var(--fg-primary);
      }

      .filter-badge.active {
        font-weight: 500;
      }

      /* Базовые цвета для неактивных фильтров групп 0-5 */
      .filter-badge[data-filter="0"] {
        color: #10B981;
      }

      .filter-badge[data-filter="1"] {
        color: #3B82F6;
      }

      .filter-badge[data-filter="2"] {
        color: #F59E0B;
      }

      .filter-badge[data-filter="3"] {
        color: #EC4899;
      }

      .filter-badge[data-filter="4"] {
        color: #8B5CF6;
      }

      .filter-badge[data-filter="5"] {
        color: #2DD4BF;
      }

      .filter-badge[data-filter="0"].active { 
        background: rgba(16, 185, 129, 0.2);
        border-color: rgba(16, 185, 129, 0.5);
        color: #10B981;
      }

      .filter-badge[data-filter="1"].active { 
        background: rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.5);
        color: #3B82F6;
      }

      .filter-badge[data-filter="2"].active { 
        background: rgba(245, 158, 11, 0.2);
        border-color: rgba(245, 158, 11, 0.5);
        color: #F59E0B;
      }

      .filter-badge[data-filter="3"].active { 
        background: rgba(236, 72, 153, 0.2);
        border-color: rgba(236, 72, 153, 0.5);
        color: #EC4899;
      }

      .filter-badge[data-filter="no-rating"] {
        color: #EF4444;
      }

      .filter-badge[data-filter="no-rating"]:hover {
        color: #EF4444;
      }

      .filter-badge[data-filter="no-rating"].active {
        background: rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.5);
        color: #EF4444;
        font-weight: 600;
      }

      .filter-badge[data-filter="4"].active { 
        background: rgba(139, 92, 246, 0.2);
        border-color: rgba(139, 92, 246, 0.5);
        color: #8B5CF6;
      }

      .filter-badge[data-filter="5"].active { 
        background: rgba(45, 212, 191, 0.2);
        border-color: rgba(45, 212, 191, 0.5);
        color: #2DD4BF;
      }

      .filter-badge[data-filter="6"].active { 
        background: rgba(248, 113, 113, 0.2);
        border-color: rgba(248, 113, 113, 0.5);
        color: #F87171;
      }

      .filter-badge[data-filter="7"].active { 
        background: rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.5);
        color: #EF4444;
      }

      .filter-badge[data-filter="8"].active { 
        background: rgba(251, 146, 60, 0.2);
        border-color: rgba(251, 146, 60, 0.5);
        color: #FB923C;
      }

      .filter-badge[data-filter="9"].active { 
        background: rgba(34, 197, 94, 0.2);
        border-color: rgba(34, 197, 94, 0.5);
        color: #22C55E;
      }

      .filter-badge[data-filter="10"].active { 
        background: rgba(99, 102, 241, 0.2);
        border-color: rgba(99, 102, 241, 0.5);
        color: #6366F1;
      }

      .filter-badge[data-filter="11"].active { 
        background: rgba(168, 85, 247, 0.2);
        border-color: rgba(168, 85, 247, 0.5);
        color: #A855F7;
      }

      .filter-badge[data-filter="12"].active { 
        background: rgba(217, 119, 6, 0.2);
        border-color: rgba(217, 119, 6, 0.5);
        color: #D97706;
      }

      .filter-badge[data-filter="13"].active { 
        background: rgba(20, 184, 166, 0.2);
        border-color: rgba(20, 184, 166, 0.5);
        color: #14B8A6;
      }

      /* Базовые цвета для неактивных фильтров групп 7-13 */
      .filter-badge[data-filter="7"] {
        color: #EF4444;
      }

      .filter-badge[data-filter="8"] {
        color: #FB923C;
      }

      .filter-badge[data-filter="9"] {
        color: #22C55E;
      }

      .filter-badge[data-filter="10"] {
        color: #6366F1;
      }

      .filter-badge[data-filter="11"] {
        color: #A855F7;
      }

      .filter-badge[data-filter="12"] {
        color: #D97706;
      }

      .filter-badge[data-filter="13"] {
        color: #14B8A6;
      }

      /* News Section */
      /* Карусель дат - новая версия с нативным скроллом */
      .date-carousel {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 2rem 0;
        position: relative;
        max-width: 100%;
        overflow: hidden;
      }

      .date-carousel ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        gap: 20px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
        padding-inline: calc(50% - 110px);
        box-sizing: border-box;
        align-items: center;
        scroll-padding-inline: calc(50% - 110px);
      }

      .date-carousel ul::-webkit-scrollbar {
        display: none;
      }

      @media (max-width: 768px) {
        .date-carousel ul {
          gap: 12px;
          padding-inline: calc(50% - 66px);
          scroll-padding-inline: calc(50% - 66px);
        }
      }

      .date-carousel-item {
        width: 200px;
        padding: 1rem 1.5rem;
        flex-shrink: 0;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        box-sizing: border-box;
        background: color-mix(in srgb, var(--card-surface) 30%, transparent);
        backdrop-filter: blur(16px) saturate(150%);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
        border-radius: 12px;
        border: 1px solid var(--border-subtle);
        box-shadow: 
          inset 0 1px 0 0 color-mix(in srgb, rgba(255, 255, 255, 0.08) 50%, transparent),
          inset 0 -1px 0 0 color-mix(in srgb, rgba(0, 0, 0, 0.08) 30%, transparent),
          0 4px 16px color-mix(in srgb, rgba(0, 0, 0, 0.15) 40%, transparent),
          0 2px 6px color-mix(in srgb, rgba(0, 0, 0, 0.1) 30%, transparent);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-align: center;
      }

      .date-carousel-item:hover {
        background: color-mix(in srgb, var(--card-surface-hover) 40%, transparent);
        border-color: var(--border-medium);
      }

      .date-carousel-item.active {
        opacity: 1;
        transform: scale(1);
        background: color-mix(in srgb, var(--card-surface) 45%, transparent);
        border: 2px solid var(--accent-primary) !important;
        box-shadow: 
          inset 0 1px 0 0 color-mix(in srgb, rgba(255, 255, 255, 0.12) 60%, transparent),
          inset 0 -1px 0 0 color-mix(in srgb, rgba(0, 0, 0, 0.1) 40%, transparent),
          0 8px 24px color-mix(in srgb, rgba(0, 0, 0, 0.2) 50%, transparent),
          0 4px 12px color-mix(in srgb, rgba(0, 0, 0, 0.15) 40%, transparent);
      }
      
      /* Карусель недель для закладок */
      /* Карусель недель теперь такая же как карусель дат */
      .week-carousel {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1.5rem 0;
        margin: 2rem 0;
        position: relative;
        overflow: hidden;
      }

      .week-carousel ul {
        display: flex;
        gap: 1rem;
        padding: 0 2rem;
        margin: 0;
        list-style: none;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--border-subtle) transparent;
      }

      .week-carousel ul::-webkit-scrollbar {
        height: 4px;
      }

      .week-carousel ul::-webkit-scrollbar-track {
        background: transparent;
      }

      .week-carousel ul::-webkit-scrollbar-thumb {
        background: var(--border-subtle);
        border-radius: 2px;
      }

      @media (max-width: 768px) {
        .week-carousel ul {
          padding: 0 1rem;
        }
      }

      /* Элементы карусели недель используют те же стили что и date-carousel-item */
      .week-carousel-item {
        /* Стили наследуются от .date-carousel-item через JavaScript */
      }
      
      .week-carousel-range {
        /* Стили наследуются от .date-carousel-day-month */
      }
      
      .week-carousel-year {
        /* Стили наследуются от .date-carousel-year */
      }
      
      .week-carousel-count {
        font-size: 1.4rem;
        font-weight: 300;
        color: var(--fg-primary);
        text-align: center;
        line-height: 1;
      }
      
      .bookmarks-list {
        width: 100%;
      }
      
      @media (max-width: 768px) {
        .week-carousel {
          padding: 1rem;
          gap: 0.5rem;
        }
        
        .week-carousel-item {
          width: 110px;
          padding: 0.75rem 1rem;
        }
        
        .week-carousel-range {
          font-size: 0.75rem;
        }
        
        .week-carousel-year {
          font-size: 0.7rem;
        }
        
        .week-carousel-count {
          font-size: 1.2rem;
        }
      }

      .date-carousel-day-month {
        font-size: 0.9rem;
        font-weight: 400;
        color: var(--fg-tertiary);
        text-align: center;
        margin-bottom: 0.25rem;
        line-height: 1.2;
      }

      .date-carousel-item.active .date-carousel-day-month {
        color: var(--fg-primary);
        font-weight: 500;
      }

      .date-carousel-year {
        font-size: 0.75rem;
        font-weight: 300;
        color: var(--fg-tertiary);
        text-align: center;
        margin-bottom: 0.5rem;
        line-height: 1.2;
      }

      .date-carousel-item.active .date-carousel-year {
        color: var(--fg-secondary);
      }

      .date-carousel-count {
        font-size: 1.4rem;
        font-weight: 300;
        color: var(--fg-primary);
        text-align: center;
        line-height: 1;
      }

      @media (max-width: 768px) {
        .date-carousel-item {
          width: 120px;
          padding: 0.6rem 0.75rem;
        }

        .date-carousel-day-month {
          font-size: 0.7rem;
        }

        .date-carousel-year {
          font-size: 0.6rem;
          margin-bottom: 0.35rem;
        }

        .date-carousel-count {
          font-size: 1rem;
        }
      }

      .light-theme .date-carousel-item {
        background: color-mix(in srgb, rgba(255, 255, 255, 0.4) 30%, transparent);
        box-shadow: 
          inset 0 1px 0 0 color-mix(in srgb, rgba(255, 255, 255, 0.5) 50%, transparent),
          inset 0 -1px 0 0 color-mix(in srgb, rgba(0, 0, 0, 0.05) 30%, transparent),
          0 4px 16px color-mix(in srgb, rgba(15, 23, 42, 0.08) 40%, transparent),
          0 2px 6px color-mix(in srgb, rgba(15, 23, 42, 0.06) 30%, transparent);
      }

      .light-theme .date-carousel-item.active {
        background: color-mix(in srgb, rgba(255, 255, 255, 0.55) 45%, transparent);
        border: 2px solid var(--accent-primary) !important;
        box-shadow: 
          inset 0 1px 0 0 color-mix(in srgb, rgba(255, 255, 255, 0.6) 60%, transparent),
          inset 0 -1px 0 0 color-mix(in srgb, rgba(0, 0, 0, 0.08) 40%, transparent),
          0 8px 24px color-mix(in srgb, rgba(15, 23, 42, 0.12) 50%, transparent),
          0 4px 12px color-mix(in srgb, rgba(15, 23, 42, 0.1) 40%, transparent);
      }

      .light-theme .date-carousel-item:hover {
        background: color-mix(in srgb, rgba(255, 255, 255, 0.5) 40%, transparent);
      }

      .news-header {
        text-align: center;
        padding: 2rem 0;
        margin: 2.5rem 0;
        position: relative;
      }

      @media (max-width: 768px) {
        .news-header {
          padding: 1.5rem 0;
          margin: 1.5rem 0;
        }
      }

      .news-header::before,
      .news-header::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--border-subtle) 20%, var(--border-subtle) 80%, transparent);
      }

      .news-header::before {
        top: 0;
      }

      .news-header::after {
        bottom: 0;
      }

      .news-header h2 {
        font-size: 0.9rem;
        font-weight: 400;
        color: var(--fg-tertiary);
        text-transform: uppercase;
        letter-spacing: 0.15em;
        margin-bottom: 1rem;
      }

      .news-stats {
        display: flex;
        gap: 1rem;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
      }

      .news-stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.75rem 1.5rem;
        background: color-mix(in srgb, var(--bg-card) 30%, transparent);
        backdrop-filter: blur(12px) saturate(150%);
        -webkit-backdrop-filter: blur(12px) saturate(150%);
        border-radius: 8px;
        border: 1px solid var(--border-subtle);
        min-width: 90px;
        transition: all 0.2s ease,
                    background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
      }

      @media (max-width: 768px) {
        .news-stat-item {
          padding: 0.6rem 1rem;
          min-width: 70px;
        }
      }

      .news-stat-item:hover {
        background: color-mix(in srgb, var(--bg-card) 45%, transparent);
        border-color: var(--border-medium);
      }

      .light-theme .news-stat-item {
        background: color-mix(in srgb, rgba(255, 255, 255, 0.4) 30%, transparent);
      }

      .light-theme .news-stat-item:hover {
        background: color-mix(in srgb, rgba(255, 255, 255, 0.5) 45%, transparent);
      }

      .light-theme .date-carousel-item {
        background: color-mix(in srgb, rgba(255, 255, 255, 0.4) 30%, transparent);
      }

      .light-theme .date-carousel-item.active {
        background: color-mix(in srgb, rgba(255, 255, 255, 0.55) 45%, transparent);
        border: 2px solid var(--accent-primary) !important;
      }

      .light-theme .date-carousel-item:hover {
        background: color-mix(in srgb, rgba(255, 255, 255, 0.5) 40%, transparent);
      }

      .news-stat-value {
        font-size: 1.25rem;
        font-weight: 300;
        color: var(--fg-primary);
        line-height: 1;
      }

      .news-stat-label {
        font-size: 0.65rem;
        color: var(--fg-tertiary);
        text-transform: uppercase;
        letter-spacing: 0.1em;
      }

      .news-loading {
        text-align: center;
        padding: 4rem;
        color: var(--fg-tertiary);
        font-size: 1rem;
      }

      .news-loading-inline {
        padding: 1.5rem;
        font-size: 0.85rem;
        color: var(--fg-tertiary);
        opacity: 0.85;
      }

      .news-alert {
        padding: 1rem 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 10px;
        border: 1px solid rgba(59, 130, 246, 0.25);
        background: rgba(59, 130, 246, 0.08);
        color: var(--fg-primary);
        font-size: 0.9rem;
        line-height: 1.5;
      }

      .news-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 1.5rem;
        margin-bottom: 3rem;
      }

      @media (max-width: 768px) {
        .news-grid {
          grid-template-columns: 1fr;
          gap: 1rem;
          margin-bottom: 2rem;
          width: 100%;
        }
      }

      .news-card {
        padding: 2rem;
        background: color-mix(in srgb, var(--card-surface) 40%, transparent);
        backdrop-filter: blur(16px) saturate(150%);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
        border-radius: 12px;
        border: 1px solid var(--border-subtle);
        box-shadow: 
          inset 0 1px 0 0 color-mix(in srgb, rgba(255, 255, 255, 0.08) 50%, transparent),
          inset 0 -1px 0 0 color-mix(in srgb, rgba(0, 0, 0, 0.08) 30%, transparent),
          0 8px 24px color-mix(in srgb, rgba(0, 0, 0, 0.2) 50%, transparent),
          0 2px 8px color-mix(in srgb, rgba(0, 0, 0, 0.15) 40%, transparent);
        transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 1rem;
      }

      @media (max-width: 768px) {
        .news-card {
          padding: 1.25rem 1rem;
          width: 100%;
          max-width: 100%;
          box-sizing: border-box;
          margin-left: 0;
          margin-right: 0;
        }
      }

      .news-card-hidden {
        opacity: 0.6;
        border-color: rgba(248, 113, 113, 0.5);
        position: relative;
      }

      .news-card-add {
        cursor: pointer;
        align-items: center;
        justify-content: center;
        min-height: 200px;
        border-style: dashed;
        border-color: var(--glass-border);
        background: var(--card-surface);
      }

      .news-card-add:hover {
        background: var(--card-surface-hover);
        border-color: var(--accent-primary);
        transform: translateY(-2px);
      }

      .news-card-add-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        color: var(--fg-tertiary);
      }

      .news-card-add-icon {
        font-size: 3rem;
        font-weight: 200;
        line-height: 1;
        color: var(--fg-secondary);
        transition: all 0.2s ease;
      }

      .news-card-add:hover .news-card-add-icon {
        color: var(--accent-primary);
        transform: scale(1.1);
      }

      .news-card-add-label {
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
      }

      .news-hidden-tag {
        position: absolute;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(248, 113, 113, 0.2);
        color: #F87171;
        padding: 0.2rem 0.6rem;
        border-radius: 4px;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        z-index: 1;
      }

      .news-card:hover {
        background: color-mix(in srgb, var(--card-surface-hover) 50%, transparent);
        border-color: var(--border-medium);
        box-shadow: 
          inset 0 1px 0 0 color-mix(in srgb, rgba(255, 255, 255, 0.1) 60%, transparent),
          inset 0 -1px 0 0 color-mix(in srgb, rgba(0, 0, 0, 0.1) 40%, transparent),
          0 12px 32px color-mix(in srgb, rgba(0, 0, 0, 0.25) 60%, transparent),
          0 4px 12px color-mix(in srgb, rgba(0, 0, 0, 0.2) 50%, transparent);
        transform: translateY(-2px);
      }

      .news-title {
        font-size: 1.15rem;
        font-weight: 400;
        color: var(--accent-primary);
        line-height: 1.4;
        margin: 0.25rem 0;
      }

      .news-title a {
        color: var(--accent-primary);
        text-decoration: none;
        cursor: pointer;
        transition: color 0.2s ease;
      }

      .news-title a:hover {
        color: var(--accent-hover);
        text-decoration: underline;
      }

      .news-title a:visited {
        color: var(--accent-primary);
      }

      @media (max-width: 768px) {
        .news-title {
          font-size: 1.05rem;
          line-height: 1.35;
        }
      }

      .news-title-important {
        color: var(--accent-primary) !important;
      }

      .news-title-normal {
        color: var(--accent-primary) !important;
      }

      .news-excerpt {
        font-size: 0.95rem;
        color: var(--fg-secondary);
        font-weight: 300;
        line-height: 1.7;
        flex-grow: 1;
        margin: 0.25rem 0;
      }

      .news-itog-block {
        margin-top: 1em;
        font-weight: 600;
      }

      .news-itog-block strong {
        font-weight: 600;
      }

      @media (max-width: 768px) {
        .news-excerpt {
          font-size: 0.9rem;
          line-height: 1.6;
        }
      }

      .news-rating {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0.25rem 0;
      }

        @media (max-width: 768px) {
        .news-rating {
          flex-direction: column;
          align-items: center;
          gap: 0.75rem;
          padding: 0.25rem 0;
        }

        .rating-comment-btn {
          width: auto;
          padding: 0.35rem 1rem;
          font-size: 0.8rem;
          align-self: center;
        }

        .rating-buttons {
          width: 100%;
        }
      }

      .rating-stars {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        flex: 1;
      }

      .rating-label {
        font-size: 0.78rem;
        color: var(--fg-tertiary) !important;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: inherit;
      }

      .rating-stars-container {
        display: flex;
        gap: 0.3rem;
        justify-content: center;
      }

      .star {
        font-size: 1.75rem;
        color: rgba(255, 255, 255, 0.15);
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
      }

      .light-theme .star {
        color: rgba(15, 23, 42, 0.2);
      }

      .star:hover {
        color: #FFD700;
        transform: scale(1.15);
      }

      .star.active {
        color: #FFD700;
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
      }

      .light-theme .star.active {
        color: #FFD700;
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
      }

      .rating-comment-btn {
        background: rgba(59, 130, 246, 0.12);
        border: 1px solid rgba(59, 130, 246, 0.4);
        border-radius: 999px;
        color: var(--fg-primary);
        padding: 0.4rem 1.4rem;
        font-size: 0.85rem;
        font-weight: 400;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1);
      }

      .rating-comment-btn::before {
        content: '✦';
        font-size: 0.75rem;
        opacity: 0.8;
      }

      .rating-comment-btn:hover {
        background: rgba(59, 130, 246, 0.2);
        border-color: var(--accent-primary);
        transform: translateY(-1px);
      }

      .rating-comment-btn.has-comment {
        background: rgba(16, 185, 129, 0.15);
        border-color: rgba(16, 185, 129, 0.5);
      }

      .rating-comment-btn.has-comment::before {
        content: '✔';
        font-size: 0.75rem;
      }

      .rating-buttons {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
      }

      .rating-comment-btn {
        display: none; /* Скрываем кнопку пояснения, функционал оставляем */
      }

      .rating-share-btn {
        background: rgba(139, 92, 246, 0.12);
        border: 1px solid rgba(139, 92, 246, 0.4);
        border-radius: 999px;
        color: var(--fg-primary);
        padding: 0.4rem 1.4rem;
        font-size: 0.85rem;
        font-weight: 400;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.1);
      }

      .rating-share-btn::before {
        content: '🔗';
        font-size: 0.75rem;
        opacity: 0.8;
      }

      .rating-share-btn:hover {
        background: rgba(139, 92, 246, 0.2);
        border-color: rgba(139, 92, 246, 0.6);
        transform: translateY(-1px);
      }

      @media (max-width: 768px) {
        .rating-buttons {
          flex-direction: column;
          width: 100%;
        }

        .rating-share-btn {
          width: 100%;
          justify-content: center;
        }
      }

      .news-card.news-highlighted {
        animation: highlightPulse 2s ease-in-out;
        border: 2px solid rgba(59, 130, 246, 0.6);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
        opacity: 1 !important;
        visibility: visible !important;
      }
      
      .news-card.news-highlighted,
      .news-card-guest.news-highlighted {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
      }

      @keyframes highlightPulse {
        0% {
          border-color: rgba(59, 130, 246, 1);
          box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
          transform: scale(1.02);
          opacity: 1;
          visibility: visible;
        }
        50% {
          border-color: rgba(59, 130, 246, 0.6);
          box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
          transform: scale(1);
          opacity: 1;
          visibility: visible;
        }
        100% {
          border-color: rgba(59, 130, 246, 0.3);
          box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
          opacity: 1;
          visibility: visible;
          transform: scale(1);
        }
      }

      .share-notification {
        position: fixed;
        top: 20px;
        right: 20px;
        background: rgba(16, 185, 129, 0.95);
        color: white;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 10000;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        font-size: 0.9rem;
        font-weight: 500;
      }

      .share-notification.show {
        opacity: 1;
        transform: translateY(0);
      }

      .share-notification.error {
        background: rgba(239, 68, 68, 0.95);
      }

      .news-sources {
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid var(--border-subtle);
        font-size: 0.85rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
      }

      .news-header-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
        padding-bottom: 0;
      }

      .news-id {
        font-size: 0.8rem;
        color: var(--fg-tertiary);
      }

      .news-bookmark {
        width: 32px;
        height: 32px;
        cursor: pointer;
        border: none;
        background: transparent;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
      }

      .news-bookmark svg {
        width: 28px;
        height: 28px;
        stroke: var(--fg-tertiary);
        fill: none;
        stroke-width: 2;
        transition: all 0.2s ease;
      }

      .news-bookmark:hover svg {
        stroke: var(--accent-primary);
      }

      .news-bookmark.bookmarked svg {
        stroke: #EF4444;
        fill: #EF4444;
      }

      .news-bookmark.bookmarked:hover svg {
        stroke: #DC2626;
        fill: #DC2626;
      }

      .news-divider {
        height: 1px;
        background: var(--border-subtle);
        margin: 0.25rem 0;
        border: none;
        padding: 0;
      }

      .news-meta-line {
        font-size: 0.8rem;
        color: var(--fg-tertiary);
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
      }

      .news-groups {
        margin-top: 0.25rem;
      }

      .group-block {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
      }

      .group-block-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
      }

      .group-block-label {
        color: var(--fg-tertiary) !important;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-size: 0.78rem;
      }

      .group-block-actions {
        display: flex;
        align-items: center;
        gap: 0.4rem;
      }

      .group-block-content {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        align-items: center;
      }

      .group-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        align-items: center;
      }

      .group-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.2rem 0.6rem;
        border-radius: 999px;
        font-size: 0.75rem;
        font-weight: 500;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
      }

      .group-badge[data-group="0"] { border-color: rgba(16, 185, 129, 0.4); color: #10B981; }
      .group-badge[data-group="1"] { border-color: rgba(59, 130, 246, 0.4); color: #3B82F6; }
      .group-badge[data-group="2"] { border-color: rgba(245, 158, 11, 0.4); color: #F59E0B; }
      .group-badge[data-group="3"] { border-color: rgba(236, 72, 153, 0.4); color: #EC4899; }
      .group-badge[data-group="4"] { border-color: rgba(139, 92, 246, 0.4); color: #8B5CF6; }
      .group-badge[data-group="5"] { border-color: rgba(45, 212, 191, 0.4); color: #2DD4BF; }
      .group-badge[data-group="6"] { border-color: rgba(248, 113, 113, 0.4); color: #F87171; }
      .group-badge[data-group="7"] { border-color: rgba(239, 68, 68, 0.4); color: #EF4444; }
      .group-badge[data-group="8"] { border-color: rgba(251, 146, 60, 0.4); color: #FB923C; }
      .group-badge[data-group="9"] { border-color: rgba(34, 197, 94, 0.4); color: #22C55E; }
      .group-badge[data-group="10"] { border-color: rgba(99, 102, 241, 0.4); color: #6366F1; }
      .group-badge[data-group="11"] { border-color: rgba(168, 85, 247, 0.4); color: #A855F7; }
      .group-badge[data-group="12"] { border-color: rgba(217, 119, 6, 0.4); color: #D97706; }
      .group-badge[data-group="13"] { border-color: rgba(20, 184, 166, 0.4); color: #14B8A6; }

      .group-edit-btn {
        border: none;
        background: rgba(59, 130, 246, 0.15);
        color: var(--fg-primary);
        padding: 0.25rem 0.6rem;
        border-radius: 6px;
        font-size: 0.75rem;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .group-edit-btn:hover {
        background: rgba(59, 130, 246, 0.3);
      }

      .group-editor {
        width: 100%;
        border: 1px solid var(--border-subtle);
        border-radius: 8px;
        padding: 0.5rem;
        background: rgba(26, 31, 46, 0.6);
        display: none;
        flex-wrap: wrap;
        gap: 0.5rem;
      }

      .light-theme .group-editor {
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
      }

      .group-editor.active {
        display: flex;
      }

      .group-editor label {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.8rem;
        cursor: pointer;
      }

      .group-editor label input {
        accent-color: var(--accent-primary);
        cursor: pointer;
      }

      .user-groups {
        margin-top: 0.5rem;
        display: none;
        flex-direction: column;
        gap: 0.5rem;
      }

      .user-groups.visible {
        display: flex;
      }

      .group-edit-link {
        color: var(--accent-primary);
        text-decoration: none;
        font-size: 0.78rem;
        cursor: pointer;
        transition: color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
      }

      .group-edit-link:hover {
        color: var(--accent-hover);
        text-decoration: underline;
      }

      .user-groups-label {
        color: var(--fg-tertiary);
        text-transform: uppercase;
        letter-spacing: 0.05em;
      }

      .user-group-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        min-height: 32px;
        align-items: center;
      }

      .user-group-chip {
        cursor: pointer;
        transition: transform 0.2s ease, border-color 0.2s ease;
      }

      .user-group-chip:hover {
        transform: translateY(-1px);
        border-color: var(--accent-primary);
      }

      .user-group-chip-empty {
        cursor: default;
        opacity: 0.6;
        border-style: dashed;
      }

      .user-group-add-chip {
        background: transparent;
        color: var(--fg-secondary);
        border: 1px dashed rgba(255, 255, 255, 0.2);
        cursor: pointer;
        font-size: 1rem;
        padding: 0.2rem 0.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
      }

      .light-theme .user-group-add-chip {
        border-color: rgba(15, 23, 42, 0.2);
      }

      .user-group-add-chip:hover {
        color: var(--accent-primary);
        border-color: var(--accent-primary);
        transform: translateY(-1px);
      }

      .group-checkbox {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.85rem;
        padding: 0.3rem 0.4rem;
        border-radius: 6px;
        transition: background 0.2s ease;
        cursor: pointer;
      }

      .group-checkbox:hover {
        background: rgba(255, 255, 255, 0.05);
      }

      .light-theme .group-checkbox:hover {
        background: rgba(59, 130, 246, 0.08);
      }

      .group-checkbox input {
        accent-color: var(--accent-primary);
        cursor: pointer;
      }

      .user-group-popover {
        position: absolute;
        z-index: 2100;
        min-width: 240px;
        background: rgba(20, 24, 33, 0.95);
        border: 1px solid var(--border-medium);
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
        padding: 1rem;
        animation: fadeIn 0.2s ease-out;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
      }

      .light-theme .user-group-popover {
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 10px 10px -5px rgba(15, 23, 42, 0.1);
      }

      .user-group-popover h4 {
        margin: 0 0 0.5rem 0;
        font-size: 0.9rem;
        font-weight: 400;
        color: var(--fg-primary);
      }

      .light-theme .user-group-popover h4 {
        color: var(--fg-primary);
      }

      .user-group-pill-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-bottom: 0.75rem;
      }

      .user-group-pill {
        cursor: pointer;
        user-select: none;
        transition: transform 0.2s ease, border-color 0.2s ease;
      }

      .user-group-pill.selected {
        border-color: var(--accent-primary);
        background: rgba(59, 130, 246, 0.15);
        box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
      }

      .user-group-pill:hover {
        border-color: var(--accent-primary);
        transform: translateY(-1px);
      }

      .user-group-popover .popover-actions {
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
        margin-top: 0.75rem;
      }

      .popover-btn {
        padding: 0.4rem 0.9rem;
        border-radius: 6px;
        border: 1px solid transparent;
        background: rgba(255, 255, 255, 0.05);
        color: var(--fg-primary);
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .popover-btn.primary {
        background: var(--accent-primary);
        color: #fff;
        border-color: var(--accent-primary);
      }

      .popover-btn.secondary:hover {
        border-color: var(--border-medium);
      }

      .popover-btn.primary:hover {
        background: var(--accent-hover);
      }

      body.modal-open {
        overflow: hidden;
      }

      #commentModal {
        position: fixed;
        inset: 0;
        background: rgba(11, 14, 19, 0.78);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 3000;
      }

      .light-theme #commentModal {
        background: rgba(255, 255, 255, 0.65);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
      }

      #commentModal.visible {
        display: flex;
      }

      .comment-modal-dialog {
        background: linear-gradient(145deg, rgba(26, 31, 46, 0.95), rgba(20, 24, 33, 0.98));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 1.5rem;
        border: 1px solid var(--border-medium);
        box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
        width: min(560px, 90vw);
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.25s ease;
      }

      .light-theme .comment-modal-dialog {
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.85));
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--glass-border);
        box-shadow: 0 25px 45px rgba(15, 23, 42, 0.15), 0 10px 20px rgba(15, 23, 42, 0.1);
      }

      @media (max-width: 768px) {
        .comment-modal-dialog {
          width: calc(100vw - 2rem);
          max-width: calc(100vw - 2rem);
          margin: 1rem;
          padding: 1.25rem;
        }
      }

      #commentModal.visible .comment-modal-dialog {
        transform: translateY(0);
        opacity: 1;
      }

      .comment-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
      }

      .comment-modal-title {
        font-size: 1.1rem;
        font-weight: 400;
        color: var(--fg-primary);
      }

      .comment-modal-close {
        background: none;
        border: none;
        color: var(--fg-tertiary);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.25rem;
        transition: color 0.2s ease;
      }

      .comment-modal-close:hover {
        color: var(--fg-primary);
      }

      .comment-modal-news-title {
        font-size: 0.9rem;
        color: var(--fg-secondary);
        margin-bottom: 0.75rem;
      }

      .comment-modal-description {
        font-size: 0.9rem;
        color: var(--fg-tertiary);
        margin-bottom: 1rem;
        line-height: 1.4;
      }

      .comment-modal-textarea {
        width: 100%;
        min-height: 120px;
        border-radius: 10px;
        border: 1px solid var(--border-medium);
        background: rgba(0, 0, 0, 0.25);
        padding: 0.85rem;
        color: var(--fg-primary);
        font-family: inherit;
        font-size: 0.95rem;
        resize: vertical;
      }

      .light-theme .comment-modal-textarea {
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-color: var(--glass-border);
      }

      .comment-modal-textarea:focus {
        outline: none;
        border-color: var(--accent-primary);
        box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
      }

      .comment-modal-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
        gap: 1rem;
      }

      .comment-modal-error {
        color: #F87171;
        font-size: 0.85rem;
      }

      .comment-modal-actions {
        display: flex;
        gap: 0.5rem;
      }

      .comment-modal-btn {
        padding: 0.5rem 1.2rem;
        border-radius: 8px;
        border: 1px solid transparent;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.2s ease;
        background: rgba(255, 255, 255, 0.05);
        color: var(--fg-primary);
      }

      .comment-modal-btn.primary {
        background: var(--accent-primary);
        border-color: var(--accent-primary);
        color: #fff;
      }

      .comment-modal-btn.primary:hover {
        background: var(--accent-hover);
      }

      .comment-modal-btn.secondary:hover {
        border-color: var(--border-medium);
      }

      #createNewsModal {
        position: fixed;
        inset: 0;
        background: rgba(11, 14, 19, 0.78);
        backdrop-filter: blur(16px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 3000;
      }

      #createNewsModal.visible {
        display: flex;
      }

      .create-news-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        max-height: 60vh;
        overflow-y: auto;
        padding-right: 0.5rem;
      }

      @media (max-width: 768px) {
        .create-news-form {
          max-height: 70vh;
          padding-right: 0.25rem;
        }
      }

      .create-news-field {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
      }

      .create-news-field label {
        font-size: 0.85rem;
        color: var(--fg-secondary);
        text-transform: uppercase;
        letter-spacing: 0.05em;
      }

      .create-news-input,
      .create-news-textarea {
        width: 100%;
        border-radius: 8px;
        border: 1px solid var(--border-medium);
        background: rgba(0, 0, 0, 0.25);
        padding: 0.75rem;
        color: var(--fg-primary);
        font-family: inherit;
        font-size: 0.9rem;
        resize: vertical;
      }

      .create-news-input:focus,
      .create-news-textarea:focus {
        outline: none;
        border-color: var(--accent-primary);
        box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
      }

      .create-news-textarea {
        min-height: 80px;
      }

      .create-news-groups {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
      }

      .create-news-group-checkbox {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-subtle);
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .create-news-group-checkbox:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--border-medium);
      }

      .create-news-group-checkbox input[type="checkbox"] {
        accent-color: var(--accent-primary);
        cursor: pointer;
      }

      .create-news-group-checkbox input[type="checkbox"]:checked + span {
        color: var(--accent-primary);
      }

      .admin-news-actions {
        display: flex;
        justify-content: flex-end;
        margin-top: 0.75rem;
      }

      .admin-controls {
        display: none;
        justify-content: flex-end;
        gap: 0.5rem;
        margin-bottom: 1rem;
      }

      .admin-btn {
        padding: 0.4rem 0.9rem;
        background: rgba(248, 113, 113, 0.2);
        border: 1px solid rgba(248, 113, 113, 0.4);
        border-radius: 6px;
        color: #F87171;
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .admin-btn:hover {
        background: rgba(248, 113, 113, 0.35);
      }

      .admin-btn.secondary {
        background: rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.4);
        color: #3B82F6;
      }

      .admin-btn.secondary:hover {
        background: rgba(59, 130, 246, 0.35);
      }

      .news-sources-label {
        color: var(--fg-tertiary);
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-size: 0.75rem;
      }

      .news-source-link {
        color: var(--accent-primary);
        text-decoration: none;
        font-weight: 300;
        transition: color 0.2s ease;
      }

      .news-source-link:hover {
        color: var(--accent-hover);
        text-decoration: underline;
      }

      .news-source-link-container {
        font-size: 0.85rem;
        color: var(--fg-secondary);
      }

      h2 {
        font-size: 1.5rem;
        font-weight: 300;
        color: var(--fg-primary);
        margin-bottom: 2rem;
      }

      /* View Toggle Buttons */
      .view-toggle-btn {
        padding: 0.6rem 1.2rem;
        background: var(--glass-surface);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        color: var(--fg-primary);
        font-size: 0.9rem;
        font-weight: 300;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      .view-toggle-btn:hover {
        background: var(--card-surface-hover);
        border-color: var(--glass-border);
        color: var(--fg-primary);
      }

      .view-toggle-btn.active {
        background: var(--accent-primary);
        border-color: var(--accent-primary);
        color: white;
      }

       /* Graph Styles */
       #graphViz {
         position: relative;
         overflow: hidden;
         /* Мягкие края с градиентной маской */
         -webkit-mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
         mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
       }

      @media (max-width: 768px) {
        #graphContainer {
          width: 100%;
          padding: 0;
        }

        #graphViz {
          width: 100% !important;
          height: 600px !important;
        }
       }

      .graph-node {
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .graph-node:hover {
        stroke: var(--accent-primary);
        stroke-width: 3px;
      }

      .graph-link {
        stroke: rgba(59, 130, 246, 0.4);
        stroke-width: 2px;
      }

      .graph-tooltip {
        position: absolute;
        padding: 1rem;
        background: rgba(26, 31, 46, 0.95);
        backdrop-filter: blur(12px);
        border: 1px solid var(--border-medium);
        border-radius: 8px;
        color: var(--fg-primary);
        font-size: 0.85rem;
        pointer-events: none;
        z-index: 1000;
        max-width: 300px;
        box-shadow: var(--shadow-lg);
      }

      .graph-tooltip h4 {
        margin: 0 0 0.5rem 0;
        font-size: 1rem;
        font-weight: 400;
        color: var(--accent-primary);
      }

      .graph-tooltip p {
        margin: 0.25rem 0;
        color: var(--fg-secondary);
      }

      /* Enhanced Graph Tooltip */
      .graph-tooltip-enhanced {
        position: absolute;
        padding: 1rem;
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        color: #F8FAFC;
        font-size: 0.875rem;
        pointer-events: none;
        z-index: 1000;
        max-width: 280px;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
        border-bottom: 2px solid;
        border-image: linear-gradient(90deg, #10B981, #3B82F6, #8B5CF6) 1;
      }

      .tooltip-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.75rem;
      }

      .tooltip-header h3 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        color: #E5E7EB;
        flex: 1;
      }

      .article-count {
        background: linear-gradient(135deg, #10B981, #059669);
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 600;
        color: white;
      }

      .tooltip-content {
        color: #D1D5DB;
      }

      .sources-list {
        margin-top: 0.5rem;
      }

      .sources-list strong {
        color: #E5E7EB;
        display: block;
        margin-bottom: 0.25rem;
      }

      .error-message {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        color: #EF4444;
        padding: 2rem;
        text-align: center;
        background: rgba(239, 68, 68, 0.1);
        border-radius: 12px;
        border: 1px solid rgba(239, 68, 68, 0.2);
      }

      /* Modal Styles */
      .modal {
        display: none;
        position: fixed;
        z-index: 2000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
      }

      .modal-content {
        background: var(--bg-card);
        margin: 10% auto;
        padding: 2rem;
        border: 1px solid var(--border-medium);
        border-radius: 12px;
        width: 90%;
        max-width: 400px;
        box-shadow: var(--shadow-lg);
        position: relative;
      }

      @media (max-width: 768px) {
        .modal-content {
          margin: 1rem;
          padding: 1.5rem;
          width: calc(100% - 2rem);
          max-width: calc(100% - 2rem);
        }
      }

      .modal-close {
        position: absolute;
        right: 1rem;
        top: 1rem;
        font-size: 2rem;
        color: var(--fg-secondary);
        cursor: pointer;
        transition: color 0.2s ease;
      }

      .modal-close:hover {
        color: var(--fg-primary);
      }

      .modal-content h2 {
        margin: 0 0 1.5rem 0;
        font-size: 1.5rem;
        font-weight: 300;
        color: var(--fg-primary);
      }

      .modal-input {
        width: 100%;
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        background: var(--bg-elevated);
        border: 1px solid var(--border-subtle);
        border-radius: 6px;
        color: var(--fg-primary);
        font-size: 0.9rem;
        font-family: inherit;
        transition: border-color 0.2s ease;
      }

      .modal-input:focus {
        outline: none;
        border-color: var(--accent-primary);
      }

      .modal-btn {
        width: 100%;
        padding: 0.75rem;
        background: var(--accent-primary);
        border: none;
        border-radius: 6px;
        color: white;
        font-size: 0.9rem;
        font-weight: 400;
        cursor: pointer;
        transition: background 0.2s ease;
        font-family: inherit;
        margin-bottom: 1rem;
      }

      .modal-btn:hover {
        background: var(--accent-hover);
      }

      /* Стили для модального окна выбора темы */
      .theme-selector-modal {
        max-width: 600px;
        width: 90%;
      }

      .theme-selector-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 24px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
      }

      .theme-option {
        cursor: pointer;
        border: 2px solid var(--border-subtle);
        border-radius: 12px;
        padding: 16px;
        background: var(--bg-card);
        transition: all 0.2s ease;
        position: relative;
      }

      .theme-option:hover {
        border-color: var(--accent-primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      }

      .theme-option.selected {
        border-color: var(--accent-primary);
        background: var(--accent-muted);
        box-shadow: 0 0 0 3px var(--accent-muted);
      }

      .theme-option-preview {
        width: 100%;
        height: 120px;
        margin-bottom: 12px;
        border-radius: 8px;
        overflow: hidden;
        background: var(--bg-base);
      }

      .theme-preview-card {
        width: 100%;
        height: 100%;
        position: relative;
        background: #1A1F2E;
        border-radius: 6px;
        overflow: hidden;
      }

      .theme-preview-card.light {
        background: #FFFFFF;
      }

      .theme-preview-card.simple {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
      }

      .theme-preview-card:not(.light):not(.simple) {
        background: #1A1F2E;
      }

      .theme-preview-card.light:not(.simple) {
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
      }

      .theme-preview-card.simple:not(.light) {
        background: #2A2A2A;
      }

      .theme-preview-card.light.simple {
        background: #FFFFFF;
      }

      .theme-preview-header {
        height: 30%;
        background: #141821;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      }

      .theme-preview-card.light .theme-preview-header {
        background: #F8F9FA;
        border-bottom-color: rgba(0, 0, 0, 0.08);
      }

      .theme-preview-card.simple:not(.light) .theme-preview-header {
        background: #1A1A1A;
        border-bottom: none;
      }

      .theme-preview-card.light.simple .theme-preview-header {
        background: #FFFFFF;
        border-bottom: none;
      }

      .theme-preview-content {
        height: 70%;
        padding: 8px;
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

      .theme-preview-content::before {
        content: '';
        width: 80%;
        height: 8px;
        background: #222938;
        border-radius: 4px;
      }

      .theme-preview-content::after {
        content: '';
        width: 60%;
        height: 8px;
        background: #222938;
        border-radius: 4px;
        margin-top: 4px;
      }

      .theme-preview-card.light .theme-preview-content::before,
      .theme-preview-card.light .theme-preview-content::after {
        background: #F1F3F5;
      }

      .theme-preview-card.simple:not(.light) .theme-preview-content::before,
      .theme-preview-card.simple:not(.light) .theme-preview-content::after {
        background: #333333;
      }

      .theme-preview-card.light.simple .theme-preview-content::before,
      .theme-preview-card.light.simple .theme-preview-content::after {
        background: #F5F5F5;
      }

      .theme-option-label {
        text-align: center;
      }

      .theme-option-name {
        font-weight: 500;
        color: var(--fg-primary);
        margin-bottom: 4px;
      }

      .theme-option-subtitle {
        font-size: 0.85rem;
        color: var(--fg-secondary);
      }

      .theme-selector-actions {
        display: flex;
        justify-content: center;
        gap: 12px;
      }

      .theme-selector-actions .comment-modal-btn {
        min-width: 150px;
      }

      .modal-switch {
        text-align: center;
        color: var(--fg-secondary);
        font-size: 0.85rem;
        margin: 0;
      }

      .modal-switch a {
        color: var(--accent-primary);
        text-decoration: none;
        cursor: pointer;
      }

      .modal-switch a:hover {
        text-decoration: underline;
      }

      .modal-error {
        padding: 0.75rem;
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.3);
        border-radius: 6px;
        color: #EF4444;
        font-size: 0.85rem;
        margin-top: 1rem;
      }

      .single-news-container {
        display: flex !important;
        justify-content: center;
        align-items: flex-start;
        min-height: 100vh;
        padding: 2rem 1rem;
        background: var(--bg-base);
        opacity: 1 !important;
        visibility: visible !important;
      }

      .news-card-guest {
        max-width: 800px;
        width: 100%;
        margin: 0 auto;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
      }

      .news-error {
        max-width: 600px;
        margin: 4rem auto;
        padding: 2rem;
        text-align: center;
        background: var(--bg-card);
        border-radius: 12px;
        box-shadow: var(--card-shadow);
      }

      .news-error h2 {
        color: var(--fg-primary);
        margin-bottom: 1rem;
        font-size: 1.5rem;
      }

      .news-error p {
        color: var(--fg-secondary);
        margin-bottom: 1.5rem;
        font-size: 1rem;
      }

      #exportExcelContainer {
        display: flex !important;
        justify-content: flex-end;
        margin: 1.5rem 2rem;
        padding: 0;
        opacity: 1 !important;
        visibility: visible !important;
      }
      
      @media (max-width: 768px) {
        #exportExcelContainer {
          margin: 1rem 1rem;
        }
      }

      .export-excel-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: rgba(16, 185, 129, 0.15) !important;
        border: 1px solid rgba(16, 185, 129, 0.4) !important;
        border-radius: 8px;
        color: #10B981 !important;
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 10 !important;
      }

      .export-excel-btn:hover {
        background: rgba(16, 185, 129, 0.25);
        border-color: rgba(16, 185, 129, 0.6);
        transform: translateY(-1px);
      }

      .export-excel-btn .material-symbols-outlined {
        font-size: 1.2rem;
      }