:root {
    --muted:240 4.8% 95.9%;
    --border: 240 3.7% 17.9%;
    --radius: 0.5rem;
    --foreground: 0 0% 85%;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 30s linear infinite;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 80%, rgba(240, 147, 251, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(118, 75, 162, 0.1) 0%, transparent 60%);
    animation: pulse-background 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -2;
}

/* #heroChart{

  width:1000px !important;
  height:900px !important;

} */

@keyframes pulse-background {
    0% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1) rotate(2deg);
    }
    100% {
        opacity: 0.4;
        transform: scale(0.95) rotate(-1deg);
    }
}

/* Floating particles effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(102, 126, 234, 0.6) 0%, transparent 50%),
        radial-gradient(1px 1px at 40px 70px, rgba(240, 147, 251, 0.6) 0%, transparent 50%),
        radial-gradient(1px 1px at 90px 40px, rgba(118, 75, 162, 0.6) 0%, transparent 50%),
        radial-gradient(1px 1px at 130px 80px, rgba(102, 126, 234, 0.4) 0%, transparent 50%),
        radial-gradient(1px 1px at 160px 30px, rgba(240, 147, 251, 0.4) 0%, transparent 50%),
        radial-gradient(2px 2px at 200px 100px, rgba(118, 75, 162, 0.3) 0%, transparent 50%);
    background-repeat: repeat;
    background-size: 300px 200px;
    animation: float-particles 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float-particles {
    0% {
        transform: translateY(0px) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Subtle grid pattern overlay */
body {
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 30s linear infinite;
}

@keyframes grid-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-100px);
    }
}

.font_normal {
    font-weight: 400;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: hsl(240 20% 6%);;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



.nav-links {
  display: none; /* закрыто по умолчанию */
  gap: 2rem;
}

.nav-links.show {
  display: flex; /* открываем только через .show */
}

@media (min-width: 769px) {
  .nav-links {
    display: flex; /* на десктопе всегда видно */
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: hsl(240 20% 6%);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-search {
    display: none;
  }

  #modelSearchInput {
    display: none;
  }
}

.nav-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding:9px;
}

.rounded-md {
    border-radius:calc(var(--radius) - 2px);
    border-color: hsl(var(--border)/.5);
}

.span a {

    color: #a0a0a0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.model-name a {
    color: #a0a0a0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}


/* Дефолт */
.logo-mobile {
  display: none; /* скрыт на десктопе */
}

.burger {
  display: none; /* по умолчанию скрыт */
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* --- 📱 Мобильная версия --- */
@media (max-width: 768px) {
  .logo-desktop {
    display: none; /* убираем большой логотип */
  }

  .logo-mobile {
    display: block;
    margin: 0 auto; /* центрируем */
  }

  .burger {
    display: block; /* показываем бургер */
    margin-right: auto; /* прижать влево */
  }

  .nav-container {
    justify-content: center; /* чтобы логотип был по центру */
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: hsl(240 20% 6%);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-search {
    display: none;
  }
}


.main-container {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 30vh;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    max-width: 1000px;
    line-height: 1.3;
}


.bg-gray-900\/30 {
    background-color: rgba(17, 24, 39, .3);
}

.bg-muted{background-color:hsl(var(--muted))}
.bg-muted\/20{background-color:hsl(var(--muted)/.2)}
.bg-gray-800\/80 {
    background-color: rgba(17, 24, 39, .3);
}
.p-4 {
    padding: 1rem;
}

.mb-3 {
    margin-bottom: .75rem;
}

.bg-gray-50 {
    --tw-bg-opacity: 1;
    /* background-color: rgb(17 24 39 / 0.3); */

}

.rounded-lg {
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.1rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #a0a0a0;
    margin-bottom: 3rem;
}

.last-updated {
    font-size: 0.75rem;
    color: #666666;
    text-align: center;
    margin-top: 1rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .last-updated {
        font-size: 0.7rem;
        margin-top: 0.75rem;
    }
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.2);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    transition: all 0.6s ease;
}

.stat-label {
    font-size: 0.875rem;
    color: #a0a0a0;
    margin-top: 0.25rem;
}

.hero-visual {
    width: 100%;
    max-width: 900px;
    height: 450px;
    /* background: rgba(255, 255, 255, 0.02); */
    border: none;
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

/* .hero-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
    animation: float-background 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
} */

/* Add gradient overlay to darken bottom
.hero-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0) 100%);
    pointer-events: none;
    z-index: 5;
} */

/* Model images positioned randomly on chart */
.model-image {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    z-index: 10;
    transition: transform 0.3s ease;
}

.model-image:hover {
    transform: scale(1.1);
}

.model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.02);
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
}

.dashboard-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

canvas {
    max-height: 400px;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.activity-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-item span {
    flex: 1;
    color: #ffffff;
}

.activity-item time {
    font-size: 0.875rem;
    color: #a0a0a0;
}

.table-section {
    margin-bottom: 4rem;
}

.table-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.scroll-hint {
    font-size: 0.75rem;
    color: #a0a0a0;
    font-style: italic;
    text-align: right; /* выравниваем текст вправо */
}


.leaderboard-table td.score,
.leaderboard-table td.context {
    text-align: center;
    color: #a0a0a0;
    /* font-family: 'Courier New', Courier, monospace; */
}


.table-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.table-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box input,
.filter-dropdown select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: #a0a0a0;
}

.search-box input:focus,
.filter-dropdown select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.table-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    overflow-x: auto; /* горизонтальный скролл */
    -webkit-overflow-scrolling: touch; 
}

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

/* Заголовки — прозрачные, без окраски, только текст и стрелки */
.leaderboard-table th {
    padding: 0.6rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer; /* для сортировки */
    position: relative;
    color: #e6edf3;
    font-weight: 600;
    user-select: none;
    background: transparent; /* <-- убираем фон */
    transition: background 0.2s;
}

/* Стили стрелки и состояний */
.leaderboard-table th {
  cursor: pointer;
  position: relative;
  user-select: none;
  min-height: 60px;
}

.leaderboard-table th .sort-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px; /* отступ между текстом и иконкой */
}

.leaderboard-table th .sort-svg {
  width: 14px;
  height: 14px;
  display: inline-block;
  transition: transform 0.18s ease, opacity 0.18s;
  opacity: 0.85;
  color: currentColor;
}

/* состояние отсортированного столбца */
.leaderboard-table th.sorted-asc,
.leaderboard-table th.sorted-desc {
  color: #ffffff;      /* делаем текст белым */
  font-weight: 600;
}

/* стрелка для сортировки — по умолчанию нейтрально (вертикальная) */
.leaderboard-table th .sort-svg:not(.rotated) {
  transform: rotate(0deg);
}

/* повёрнутая стрелка (например, для desc или asc — управляем из JS) */
.leaderboard-table th .sort-svg.rotated {
  transform: rotate(180deg);
}


/* Стили для ячеек */
.leaderboard-table td {
    padding: 0.5rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #d1d5db;
}

/* Первое место — подсветка только для tbody */
.leaderboard-table tbody tr:nth-child(1) {
  background: linear-gradient(to right, rgba(252, 211, 77, 0.15), rgba(252, 211, 77, 0));
  box-shadow: 0 0 8px rgba(252, 211, 77, 0.2);
  color: rgba(253, 230, 139, 0.9);
}

.leaderboard-table tbody tr:nth-child(1) td:first-child {
  border-left: 4px solid #fcd34d;
  color: rgba(253, 230, 139, 0.9);
  font-weight: 600;
}

/* Второе место */
.leaderboard-table tbody tr:nth-child(2) {
  background: linear-gradient(to right, rgba(192, 192, 192, 0.1), rgba(192, 192, 192, 0));
}
.leaderboard-table tbody tr:nth-child(2) td:first-child {
  border-left: 4px solid #d4d4d4;
  color: #c0c0c0;
  font-weight: 600;
}

/* Третье место */
.leaderboard-table tbody tr:nth-child(3) {
  background: linear-gradient(to right, rgba(205, 127, 50, 0.1), rgba(205, 127, 50, 0));
  color: rgba(254, 214, 169, 0.9);
}
.leaderboard-table tbody tr:nth-child(3) td:first-child {
  border-left: 4px solid #b87333;
  color: #cd7f32;
  font-weight: 600;
}





.leaderboard-table th {
    /* background: rgba(255, 255, 255, 0.03); */
    font-weight: 600;
    font-size: 0.775rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* Для колонок с ценой/вводом-выводом */
.leaderboard-table td.inputtext {
    white-space: nowrap;   /* запрещаем перенос текста */
    text-align: center;    /* если нужно, выравниваем по центру */
}


.leaderboard-table th:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.leaderboard-table th.sorted::after {
    content: '↑';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
}

.leaderboard-table th.sorted.desc::after {
    content: '↓';
}

.leaderboard-table td {
    font-size: 0.775rem;
}

.leaderboard-table tr {
    transition: all 0.3s ease;
}

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

.rank {
    font-weight: 700;
    color: #667eea;
    width: 60px;
}

.model-name {
    font-weight: 600;
    color: #ffffff;
}

.provider {
    color: #a0a0a0;
}

.score {
    text-align: right;
    font-weight: 500;
}

.score span {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.score.mmlu-col span {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.score.gsm8k-col span {
    background: rgba(118, 75, 162, 0.2);
    color: #764ba2;
}

.score.math-col span {
    background: rgba(240, 147, 251, 0.2);
    color: #f093fb;
}

.api-col span {
    color: #7289da;
    text-shadow: 0 0 5px rgba(114, 137, 218, 0.5),
                 0 0 10px rgba(114, 137, 218, 0.4),
                 0 0 20px rgba(114, 137, 218, 0.3);
    /* animation: pulse-glow2 3s ease-in-out infinite; */
    background: none;
}

@keyframes pulse-glow2 {
    0%, 100% {
        text-shadow: 0 0 5px rgba(114, 137, 218, 0.5),
                     0 0 10px rgba(114, 137, 218, 0.4),
                     0 0 20px rgba(114, 137, 218, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(114, 137, 218, 0.8),
                     0 0 20px rgba(114, 137, 218, 0.6),
                     0 0 30px rgba(114, 137, 218, 0.4);
    }
}




.score.humaneval-col span {
    background: rgba(131, 164, 212, 0.2);
    color: #83a4d2;
}

.score.mgsm-col span {
    background: rgba(194, 233, 251, 0.2);
    color: #c2e9fb;
}

.td.yand-col  {
    background: rgba(194, 233, 251, 0.2);
    color: #c2e9fb;
    justify-content: center;
}

.table-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.page-info {
    color: #a0a0a0;
    font-size: 0.875rem;
}

/* Darken the canvas container */
.animated-chart-container {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* background: rgba(0, 0, 0, 0.2); */
    border-radius: 16px;
}

#heroChart {
    flex: 1;
    width: 100% !important;
    height: 400px !important;
}

#pricingproviders {
    flex: 1;
    width: 90% !important; 
    height: 300px !important;
}
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
}

.chart-period {
    font-size: 0.875rem;
    color: #a0a0a0;
}

.chart-legend {
    display: none;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #a0a0a0;
    transition: all 0.3s ease;
}

.legend-item:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.gpt {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.legend-dot.claude {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.legend-dot.gemini {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

/* Animation for numbers */
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    transition: all 0.6s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.05);
    color: #667eea;
}

/* New section styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 4rem 0 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.benchmarks-section,
.context-analysis-section,
.trends-section {
    margin-bottom: 4rem;
}

.benchmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.benchmarks-grid22 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

/* 📱 На телефоне — по одной карточке в ряд */
@media (max-width: 640px) {
  .benchmarks-grid22 {
    grid-template-columns: 1fr;
    gap: 1rem; /* можно чуть меньше отступов на мобильных */
  }
}


.llm-rankings-section {
    margin: 4rem 0;
    padding: 2rem 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 3rem;
}

.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.ranking-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.ranking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.ranking-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.winner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.model-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.model-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.model-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.model-info p {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 0.5rem;
}

.score-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.runner-ups {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.runner-up {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.runner-up:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.runner-up span:first-child {
    font-weight: 700;
    color: #667eea;
}

.runner-up span:nth-child(2) {
    color: #ffffff;
    font-weight: 500;
}

.runner-score {
    font-size: 0.875rem;
    color: #a0a0a0;
    font-weight: 600;
}

/* New feature badges styles - smaller */
.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
    max-width: 1000px;
}

.badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid;
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  #costLegend, #qualityLegend {
    display: none !important;
  }
}



.badge.regular {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
}

.badge.regular:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.badge.special {
    background: linear-gradient(135deg, rgba(114, 137, 218, 0.2), rgba(114, 137, 218, 0.1));
    border-color: rgba(114, 137, 218, 0.3);
    color: #7289da;
}

.badge.special:hover {
    background: linear-gradient(135deg, rgba(114, 137, 218, 0.3), rgba(114, 137, 218, 0.2));
    border-color: rgba(114, 137, 218, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(114, 137, 218, 0.3);
}

.icon-svg {
    width: 12px;
    height: 12px;
    display: block;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text {
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Responsive adjustments for badges */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .feature-badges {
        gap: 0.4rem;
        margin: 0.75rem 0;
    }
    
    .badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .badge-icon {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.1rem;
    }
    
    .feature-badges {
        gap: 0.3rem;
        margin: 0.5rem 0;
    }
    
    .badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
}

/* Add subtle pulse animation for special badge */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(114, 137, 218, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(114, 137, 218, 0.6);
    }
}

.badge.special {
    animation: pulse-glow 3s ease-in-out infinite;
}

.badge.special:hover {
    animation: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Fix benchmark charts for mobile */
    .benchmarks-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .benchmarks-grid .dashboard-card {
        min-height: 400px;
        padding: 1rem;
    }
    
    .benchmarks-grid canvas {
        max-height: 350px;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Ensure labels are readable */
    .benchmarks-grid .dashboard-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Reduce padding for mobile */
    .dashboard-card {
        padding: 1rem;
    }
    
    /* Ensure proper chart container sizing */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 2rem 1rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-visual {
        height: 350px;
        padding: 1.5rem;
    }
    
    .chart-legend {
        gap: 1rem;
        justify-content: center;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .model-icon {
        font-size: 1.2rem;
    }

    .md\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-visual {
        height: 300px;
        padding: 1rem;
    }
    
    .chart-legend {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .model-icon {
        font-size: 1.2rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .benchmarks-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    }
}

/* Ensure proper viewport meta tag */
@viewport {
    width: device-width;
    initial-scale: 1;
}

/* Improve touch targets */
button, 
input, 
select {
    min-height: 34px;
}

/* Reduce hover effects on mobile */
@media (hover: none) {
    .dashboard-card:hover,
    .stat-card:hover,
    .ranking-card:hover {
        transform: none;
    }
}

/* Improve readability on small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.25rem;
    }

    .ranking-card {
        padding: 1rem;
    }

    .winner {
        padding: 0.75rem;
    }
}

#heroChart {
  position: relative;
}

.logo-icon {
  height: 40px; /* или подогнать под меню */
  width: auto;
  display: block;
}


.navbar {
  background-color: hsl(240 20% 6%);
  padding: 10px 20px;
}

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

.nav-links a {
  color: #ccc;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.logo-icon {
  height: 15px;
  width: auto;
}

.nav-search input {
  padding: 6px 10px;
  border-radius: 30px;
  border: none;
  outline: none;
  background-color: hsl(var(--foreground)/.1);
  color: #fff;
  font-size: 14px;
  border-color: rgba(114, 137, 218, 0.5);
  max-width:200px;
}

.nav-search input::placeholder {
  color: #888;

}
/* Контейнер вертикальный */
#providerCheckboxes {
    display: flex;
    flex-direction: column; /* Колонкой */
    gap: 5px;               /* Отступы между чекбоксами */
    max-height: 300px;      /* При желании, чтобы не росло бесконечно */
    overflow-y: auto;       /* Скролл, если много провайдеров */
}

/* Стили для каждой метки */
.custom-checkbox-vertical {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    position: relative;
    padding-left: 28px;
    user-select: none;
}

/* Скрываем дефолтный input */
.custom-checkbox-vertical input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

/* Кастомный квадрат чекбокса */
.custom-checkbox-vertical .checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #444;
    border-radius: 4px;
    transition: all 0.2s;
}

/* Активный чекбокс */
.custom-checkbox-vertical input:checked ~ .checkmark {
    background-color: #4CAF50;
}

/* Галочка */
.custom-checkbox-vertical .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox-vertical input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox-vertical .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Верхняя группа провайдеров */
th.provider-group {
    background-color: rgba(255, 255, 255, 0.05);
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Нижние ячейки-провайдеры */
thead tr:nth-child(2) th {
    background-color: rgba(255, 255, 255, 0.03);
    text-align: center;
    font-weight: 500;
    font-size: 0.75rem;
    color: #ffffff;
}
.leaderboard-table td.provider {
    text-align: center;
    vertical-align: middle;
}

.leaderboard-table td.provider svg {
    width: 20px;
    height: 20px;
}

.leaderboard-table td.provider .org-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start; /* выравниваем содержимое по левому краю */
  text-align: left; /* отменяем центрирование родителя */
  width: 100%;
}



.leaderboard-table td.yand-col, td.cloudru-col, td.mws-col, td.multi-col, td.vision-col, td.mixture-col, td.fine_tuning-col, td.onprem-col, td.func-col {
    text-align: center;
    vertical-align: middle;
}




.quick-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.quick-filters .filter-btn {
    padding: 0.3rem 0.75rem;
    border: 1px solid hsl(240 3.7% 17.9%);
    border-radius: 9999px;
    font-size: 0.75rem;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s ease;
    color:#fff;
}

.quick-filters .filter-btn:hover {
    /* background: rgba(0,0,0,0.05); */
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}


/* .leaderboard-table td.provider img.org-logo {

    max-height: 30px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    width:1rem;
} */


.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-top:.375rem;
    padding-bottom:.375rem;
    padding-right:.75rem;
    padding-left:.75rem;
    border: 1px solid hsl(240 3.7% 17.9%);
    border-radius: 9999px;
    background: #100101;
    font-size: 0.775rem;
    cursor: pointer;
    color: rgb(217, 217, 217);
    transition: all 0.2s ease;
    font-family: __Inter_e8ce0c, __Inter_Fallback_e8ce0c, sans-serif;
}

.filter-btn:hover {
    background: #141414;
}

.org-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 50%; 
}



/* Активная кнопка */
.filter-btn.active {
    background: hsl(239.26, 81.91%, 60.98%); /* зеленый фон */

    color: #fff;
}

/* 
.dropdown { position: absolute; background: white; border: 1px solid #ccc; padding: 8px; border-radius: 4px; z-index: 100; }
.dropdown.hidden { display: none; }
.dropdown div { margin-bottom: 4px; } */


.p-3 {

    padding:.75rem;
}

.px-3 {
    padding-left: .75rem;
    padding-right: .75rem;
}

.text-xs {
    font-size: .75rem;
    line-height: 1rem;
    color: #888686;
}

.border-dashed {
    border-style: dashed;
}

.rounded-md {
    border-radius: calc(var(--radius) - 2px);
}

.h-8 {
    height: 2rem;
}

.dark\:bg-background\/50:is(.dark *) {
    background-color: hsl(var(--background) / .5);
}

.bg-background\/50 {

    background-color: hsl(240 20% 6%);
    border: 1px solid hsl(240 3.7% 17.9%);

}

.transition-colors{
    /* background-color: rgba(255, 255, 255, 0.03); */
    color: #ffff;
}



/*.border {
border-width: 1px;
}

.rounded-lg {
border-radius: 0.5rem;
}
*/

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: .875rem;
    line-height: 1.25rem;
}

.svgfilter {

    width:.875rem;
    height:.875rem;
}

.font-semibold {

    font-size:.75rem;
    color: rgb(156 163 175/1);
    line-height: 1rem;
}

.textmain {

    font-size:14px;
}


/* dropdown rows styled as checkbox list */
.dropdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  cursor: pointer;
  gap: 12px;
  border-radius: 8px;
  transition: background .12s ease;
  user-select: none;
}
.dropdown-row:hover {
  background: rgba(255,255,255,0.02);
}

/* left group: checkbox + label */
.dropdown-row .left {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

/* custom check svg container */
.chk {
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:4px;
  background: transparent;
  color: #4ade80; /* green tick color */
  flex: 0 0 18px;
}
.chk.selected {
  background: rgba(74, 222, 128, 0.12);
}

/* label */
.dropdown-row .label {
  font-size:13px;
  color: #d1d5db;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* right colored dot */
.dot {
  width:10px;
  height:10px;
  border-radius:50%;
  flex:0 0 auto;
  margin-left:8px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.3) inset;
}

/* when item selected - label highlight */
.dropdown-row.selected .label {
  color: #fff;
  font-weight:600;
}

/* small helper for empty state */
.dropdown-empty {
  padding: 8px;
  color: #9aa4b2;
  font-size: 13px;
}


/* контейнер, чтобы абсолютные иконки позиционировались относительно canvas'а */
.hero-chart-wrap {
  position: relative;
}

/* модельные иконки поверх графика */
.hero-chart-wrap .model-image {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .18s ease, opacity .18s ease;
  cursor: pointer;
  will-change: transform, opacity, left, top;
}
.hero-chart-wrap .model-image:hover { transform: scale(1.08); z-index: 20; }


#heroChartWrap { position: relative; }
.model-image {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 160ms ease, opacity 160ms ease;
  transform-origin: center;
  cursor: pointer;
  pointer-events: auto;
  z-index: 12;
}

      
.text-center {
text-align: center;
}
.py-3 {
padding-top: .75rem;
padding-bottom: .75rem;
}
text-foreground\/60 {
color: hsl(var(--foreground)/.6);
}
.border-foreground\/10 {
border-color: hsl(var(--foreground)/.1);
}
.border-t {
border-top-width: 1px;
}

  .nav-link { color: #e6edf3; text-decoration:none; font-weight:600; display:inline-flex; align-items:center; gap:8px; }
  .nav-item { position: relative; display:inline-block; }

  .dropdown-toggle { cursor: pointer; user-select: none; }

  .caret { transition: transform .18s ease; color: #9aa4b2; margin-left:4px; }
  .nav-item.open .caret { transform: rotate(180deg); color: #fff; }

  .dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;               /* можно поставить right:0 чтобы выравнивать справа */
    min-width: 200px;
    background: hsl(240 20% 6%); /* фон панели, подберите ваш */
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 8px 30px rgba(2,6,23,0.6);
    z-index: 1200;
    display: none; /* скрыта по умолчанию */
  }
  .nav-item.open .dropdown-panel {
    display: block;
  }

  .dropdown-item {
    display:block;
    padding: 8px 10px;
    color: #d1d5db;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
  }
  .dropdown-item:hover, .dropdown-item:focus {
    background: rgba(255,255,255,0.03);
    color: #fff;
    outline: none;
  }

  /* адаптив */
  @media (max-width: 820px) {
    .nav-links { gap: 12px; }
    .dropdown-panel { min-width: 160px; }
  }

/* Небольшие правки для легенды и заголовка */
#chartHeader { margin-bottom: 16px; }

#costLegend > div {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 6px 0;
}

/* точка для легенды (если рисуешь через JS — эти стили помогут) */
.cost-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

/* текст в легенде — мелкий и в одну строку */
.cost-legend-label {
  font-size: 12px;
  color: #aaa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* адаптация: на маленьких экранах легенда под графиком */
@media (max-width: 820px) {
  #chartHeader { margin-bottom: 8px; }
  #legendContainerWrap {
    margin-top: 8px !important;
    grid-template-columns: 1fr !important;
    max-height: 200px;
  }
  #chartContainer { min-width: auto; height: 360px; }
}

/* selectPanel scrollbar & item */
#selectPanel #modelsList::-webkit-scrollbar { width: 8px; }
#selectPanel #modelsList::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius:6px; }

/* модельная строка */
.model-row { display:flex; align-items:center; gap:10px; padding:6px 4px; border-radius:8px; cursor:pointer; }
.model-row:hover { background: rgba(255,255,255,0.02); }

/* красивый чекбокс (custom) */
.model-checkbox {
  width:18px; height:18px; border-radius:4px; border:1px solid rgba(255,255,255,0.08);
  display:inline-flex; align-items:center; justify-content:center; background:transparent;
}
.model-checkbox.checked { background: linear-gradient(135deg,#34d399,#10b981); border-color: rgba(52,211,153,0.9); }

.model-label { color:#cbd5e1; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:210px; }


/* Легенда не должна начинаться выше заголовка */
#legendContainerWrap { margin-top: 0 !important; }

/* Скрываем кнопку "Выбрано" по умолчанию (чтобы быть уверенным) */
#selectedSummaryBtn { display: none; }

/* Небольшая корректировка панели */
#selectPanel { right: 0; top: 44px; }

/* Легенда - мелкий шрифт, одна строчка */
.cost-legend-label { font-size: 12px; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Адаптация под мобайл */
@media (max-width:820px) {
  #legendContainerWrap { grid-template-columns: 1fr !important; margin-top: 8px !important; }
  #chartContainer { height: 360px; }
}

#costEloChart {
  width: 100%;
  height: 500px; /* или больше */
}

/* панель позиционируется прямо под кнопкой (убираем большой margin-top) */
.nav-item.dropdown { position: relative; }

/* панель по умолчанию скрыта, затемнение/переходы */
.nav-item.dropdown .dropdown-panel {
  position: absolute;
  top: 100%;        /* прямо под toggle */
  left: 0;
  /* margin-top: 4px;  маленький отступ — можно 0 */
  display: none;
  opacity: 0;
  transform-origin: top center;
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;  /* выключаем когда скрыта */
  z-index: 1200;
}

/* показываем панель когда открыт или hover (hover — доп. эффект) */
.nav-item.dropdown.open .dropdown-panel,
.nav-item.dropdown:hover .dropdown-panel {
  display: block;
  opacity: 1;
  pointer-events: auto;  /* активна для кликов */
}

/* плавный поворот svg-стрелки */
.nav-item.dropdown .dropdown-toggle svg {
  transition: transform .18s ease;
  transform-origin: 50% 50%;
}
.nav-item.dropdown.open .dropdown-toggle svg,
.nav-item.dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}

/* небольшая хитрость: расширяем hit-area для toggle, чтобы уменьшить шанс вылететь */
.dropdown-toggle {
  position: relative;
  padding: 6px 8px; /* достаточно пространства вокруг стрелки */
}


/* Панель дропдауна: включаем внутренний скролл */
.nav-item.dropdown .dropdown-panel {
  /* позиционирование как у тебя (absolute) */
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 220px; /* при необходимости подправь */
  max-width: 420px;
  box-sizing: border-box;

  max-height: 70vh;  /* не выше 70% окна браузера */
  overflow-y: auto;



  /* ВАЖНО: скролл */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */

  /* вид / тень / фон */
  background: var(--dropdown-bg, rgba(10,10,12,0.92)); /* или твой цвет */
  border-radius: 10px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 8px 30px rgba(2,6,23,0.6);

  /* скрытие по умолчанию (как у тебя) */
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  transform-origin: top center;
  z-index: 1200;
}

/* показываем панель */
.nav-item.dropdown.open .dropdown-panel,
.nav-item.dropdown:hover .dropdown-panel {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* внутренний контейнер/элементы — чтобы не ломалось при скролле */
.dropdown-item {
  display: block;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

/* optional: стиль для "плавающей" полосы скролла (desktop) */
.nav-item.dropdown .dropdown-panel::-webkit-scrollbar {
  width: 10px;
}
.nav-item.dropdown .dropdown-panel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
}

.nav-search {
  position: relative; /* чтобы dropdown привязался именно к input */
  display: inline-block;
}

/* dropdown — позиционирование под инпутом; убираем right:0 чтобы не растягивался на всё */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px); /* прямо под input */
  left: 0;
  min-width: 100%;       /* равен ширине input */
  max-height: 400px;
  overflow-y: auto;
  background: rgba(26,26,26,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(2,6,23,0.6);
  z-index: 9999;
  display: none;
  max-width: 200px;
}

/* включаем отображение */
.search-dropdown.open {
  display: block;
}

/* остальное — как у тебя было */
.search-header {
  font-size: 12px;
  font-weight: 600;
  color: #9aa4b2;
  padding: 8px 12px;
  border-bottom: 1px solid #2a2a2a;
}
.search-item { display:flex; gap:10px; align-items:flex-start; padding:8px 12px; cursor:pointer; text-decoration:none; }
.search-item:hover { background: rgba(255,255,255,0.03); }
.search-item img { width:36px; height:36px; border-radius:6px; object-fit:cover; background:#111; flex-shrink:0; }
.search-item .content { flex:1; min-width:0; }
.search-item .top { display:flex; justify-content:space-between; gap:8px; align-items:flex-start; }
.search-item .name { font-size:13px; font-weight:600; color:#e6edf3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.search-item .org { font-size:12px; color:#9aa4b2; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.search-item .date { font-size:12px; color:#9aa4b2; white-space:nowrap; flex-shrink:0; }
.search-item .license { margin-top:6px; font-size:11px; color:#7a7a7a; }



.gap-2 {
gap: .5rem;
}
.items-center {
align-items: center;
}
.flex-wrap {
flex-wrap: wrap;
}
.flex {
display: flex;
}
*, :after, :before {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-rotate: 0;
--tw-skew-x: 0;
--tw-skew-y: 0;
--tw-scale-x: 1;
--tw-scale-y: 1;
--tw-pan-x: ;
--tw-pan-y: ;
--tw-pinch-zoom: ;
--tw-scroll-snap-strictness: proximity;
--tw-gradient-from-position: ;
--tw-gradient-via-position: ;
--tw-gradient-to-position: ;
--tw-ordinal: ;
--tw-slashed-zero: ;
--tw-numeric-figure: ;
--tw-numeric-spacing: ;
--tw-numeric-fraction: ;
--tw-ring-inset: ;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgba(59,130,246,.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
--tw-blur: ;
--tw-brightness: ;
--tw-contrast: ;
--tw-grayscale: ;
--tw-hue-rotate: ;
--tw-invert: ;
--tw-saturate: ;
--tw-sepia: ;
--tw-drop-shadow: ;
--tw-backdrop-blur: ;
--tw-backdrop-brightness: ;
--tw-backdrop-contrast: ;
--tw-backdrop-grayscale: ;
--tw-backdrop-hue-rotate: ;
--tw-backdrop-invert: ;
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia: ;
--tw-contain-size: ;
--tw-contain-layout: ;
--tw-contain-paint: ;
--tw-contain-style: ;
}
*, :after, :before {
box-sizing: border-box;
border: 0 solid #e5e7eb;
}
Таблица стилей агента пользователяaddress, article, aside, div, footer, header, hgroup, main, nav, search, section {
display: block;
}
*, :after, :before {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-rotate: 0;
--tw-skew-x: 0;
--tw-skew-y: 0;
--tw-scale-x: 1;
--tw-scale-y: 1;
--tw-pan-x: ;
--tw-pan-y: ;
--tw-pinch-zoom: ;
--tw-scroll-snap-strictness: proximity;
--tw-gradient-from-position: ;
--tw-gradient-via-position: ;
--tw-gradient-to-position: ;
--tw-ordinal: ;
--tw-slashed-zero: ;
--tw-numeric-figure: ;
--tw-numeric-spacing: ;
--tw-numeric-fraction: ;
--tw-ring-inset: ;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgba(59,130,246,.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
--tw-blur: ;
--tw-brightness: ;
--tw-contrast: ;
--tw-grayscale: ;
--tw-hue-rotate: ;
--tw-invert: ;
--tw-saturate: ;
--tw-sepia: ;
--tw-drop-shadow: ;
--tw-backdrop-blur: ;
--tw-backdrop-brightness: ;
--tw-backdrop-contrast: ;
--tw-backdrop-grayscale: ;
--tw-backdrop-hue-rotate: ;
--tw-backdrop-invert: ;
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia: ;
--tw-contain-size: ;
--tw-contain-layout: ;
--tw-contain-paint: ;
--tw-contain-style: ;
}
:after, :before {
--tw-content: "";
}
*, :after, :before {
box-sizing: border-box;
border: 0 solid #e5e7eb;
}
*, :after, :before {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-rotate: 0;
--tw-skew-x: 0;
--tw-skew-y: 0;
--tw-scale-x: 1;
--tw-scale-y: 1;
--tw-pan-x: ;
--tw-pan-y: ;
--tw-pinch-zoom: ;
--tw-scroll-snap-strictness: proximity;
--tw-gradient-from-position: ;
--tw-gradient-via-position: ;
--tw-gradient-to-position: ;
--tw-ordinal: ;
--tw-slashed-zero: ;
--tw-numeric-figure: ;
--tw-numeric-spacing: ;
--tw-numeric-fraction: ;
--tw-ring-inset: ;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgba(59,130,246,.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
--tw-blur: ;
--tw-brightness: ;
--tw-contrast: ;
--tw-grayscale: ;
--tw-hue-rotate: ;
--tw-invert: ;
--tw-saturate: ;
--tw-sepia: ;
--tw-drop-shadow: ;
--tw-backdrop-blur: ;
--tw-backdrop-brightness: ;
--tw-backdrop-contrast: ;
--tw-backdrop-grayscale: ;
--tw-backdrop-hue-rotate: ;
--tw-backdrop-invert: ;
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia: ;
--tw-contain-size: ;
--tw-contain-layout: ;
--tw-contain-paint: ;
--tw-contain-style: ;
}
.transition-colors {
transition-property: color,background-color,border-color,text-decoration-color,fill,stroke;
transition-timing-function: cubic-bezier(.4,0,.2,1);
transition-duration: .15s;
}
.text-sm {
font-size: 16px;
line-height: 1.25rem;
}
.py-1\.5 {
padding-top: .375rem;
padding-bottom: .375rem;
}
.px-3 {
padding-left: .75rem;
padding-right: .75rem;
}
.border-border\/50 {
border-color: hsl(var(--border)/.5);
}
.border {
border-width: 1px;
}
.rounded-full {
border-radius: 9999px;
}
.gap-1\.5 {
gap: .375rem;
}
.items-center {
align-items: center;
}
.inline-flex {
display: inline-flex;
}
[role=button], button {
cursor: pointer;
}
button, input:where([type=button]), input:where([type=reset]), input:where([type=submit]) {
-webkit-appearance: button;
background-color: transparent;
background-image: none;
}
button, select {
text-transform: none;
}
button, input, optgroup, select, textarea {
font-family: inherit;
font-feature-settings: inherit;
font-variation-settings: inherit;
font-size: 100%;
font-weight: inherit;
line-height: inherit;
letter-spacing: inherit;
color: inherit;
margin: 0;
padding: 0;
}
*, :after, :before {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-rotate: 0;
--tw-skew-x: 0;
--tw-skew-y: 0;
--tw-scale-x: 1;
--tw-scale-y: 1;
--tw-pan-x: ;
--tw-pan-y: ;
--tw-pinch-zoom: ;
--tw-scroll-snap-strictness: proximity;
--tw-gradient-from-position: ;
--tw-gradient-via-position: ;
--tw-gradient-to-position: ;
--tw-ordinal: ;
--tw-slashed-zero: ;
--tw-numeric-figure: ;
--tw-numeric-spacing: ;
--tw-numeric-fraction: ;
--tw-ring-inset: ;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgba(59,130,246,.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
--tw-blur: ;
--tw-brightness: ;
--tw-contrast: ;
--tw-grayscale: ;
--tw-hue-rotate: ;
--tw-invert: ;
--tw-saturate: ;
--tw-sepia: ;
--tw-drop-shadow: ;
--tw-backdrop-blur: ;
--tw-backdrop-brightness: ;
--tw-backdrop-contrast: ;
--tw-backdrop-grayscale: ;
--tw-backdrop-hue-rotate: ;
--tw-backdrop-invert: ;
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia: ;
--tw-contain-size: ;
--tw-contain-layout: ;
--tw-contain-paint: ;
--tw-contain-style: ;
}

.transition-colors {
transition-property: color,background-color,border-color,text-decoration-color,fill,stroke;
transition-timing-function: cubic-bezier(.4,0,.2,1);
transition-duration: .15s;
}
.text-sm {
font-size: .875rem;
line-height: 1.25rem;
}
.py-1\.5 {
padding-top: .375rem;
padding-bottom: .375rem;
}
.px-3 {
padding-left: .75rem;
padding-right: .75rem;
}
.border-border\/50 {
/* border-color: hsl(var(--border)/.5); */
border-radius:10px;
}
.border {
border-width: 1px;
}
.rounded-full {
border-radius: 9999px;
}
.gap-1\.5 {
gap: .375rem;
}
.items-center {
align-items: center;
}
.inline-flex {
display: inline-flex;
}

/* ==== Isolated dropdown namespace: .org-dd-* ==== */
/* большой z-index, явный фон/тень, защита от глобальных hidden */


.hidden {
  display: none;
}

.checkmark {
  color: green;
}

.dropdown-menu {
  position: absolute;   /* важно! */
  top: calc(100% + 6px); /* чуть ниже кнопки */
  left: 0;
  min-width: 140px;
  background-color: hsl(240 20% 6%);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  padding: 6px 0;
  z-index: 1000;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.dropdown-menu li {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 13px;
  color: #d1d5db;
}

.dropdown-menu li:hover {
  background-color: rgba(255,255,255,0.05);
}


.checkmark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
}



/* Стили для перекрытия ползунков и полосы */
#paramsWrapper .dropdown-menu input[type=range] {
  -webkit-appearance: none;
  background: transparent;
  pointer-events: all;
}
#paramsWrapper .dropdown-menu input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #4ade80;
  cursor: pointer;
  border: none;
  margin-top: -6px; /* центрирование по полосе */
}
#paramsWrapper .dropdown-menu input[type=range]::-webkit-slider-runnable-track {
  height: 4px;
  background: #666;
  border-radius: 2px;
}


.dropdown-wrapper input[type=range] {
  -webkit-appearance: none;
  background: transparent;
}
.dropdown-wrapper input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #4ade80;
  cursor: pointer;
  border: none;
  margin-top: -6px;
}
.dropdown-wrapper input[type=range]::-webkit-slider-runnable-track {
  height: 4px;
  background: #666;
  border-radius: 2px;
}

#paramsWrapper {
  position: relative; /* чтобы дропдаун позиционировался относительно кнопки */
}

.hidden-column {
  display: none !important;
}


.leaderboard-table th .sort-svg {
  width: 16px;
  height: 16px;
  margin-left: 6px;
  transition: transform 150ms ease;
  opacity: 0.8;
}

/* при rotated — поворачиваем svg на 180deg (или другой угол по дизайну) */
.leaderboard-table th .sort-svg.rotated {
  transform: rotate(180deg);
}

/* можно отдельно задать asc/desc стили, если нужно */
.leaderboard-table th .sort-svg.asc { transform: rotate(0deg); }
.leaderboard-table th .sort-svg.desc { transform: rotate(180deg); }

/* подсветка заголовка: уже делаем header.style.color = '#fff' в JS,
   но можно дать класс для дополнительных стилей */
.leaderboard-table th.sorted { font-weight: 600; }


.org-cell {
  display: flex;
  align-items: center;
  gap: 8px; /* отступ между логотипом и названием */
  justify-content: flex-start; /* элементы слева */
  text-align: left; /* на случай, если родитель перекрывает */
  width: 100%; /* чтобы занимало всю ширину родителя */
}


.org-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%; /* если логотип круглой формы */
  object-fit: cover;
}

.org-name {
  font-weight: 500;
  color: #f3f3f3;
}


.hero-title {
    font-size: clamp(2.2rem, 7vw, 4.3rem);
    font-weight: 900;
    /* background: linear-gradient(135deg, var(--text-primary), var(--primary-blue), var(--primary-blue-light)); */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: brightness(1) drop-shadow(0 0 10px rgba(0, 102, 255, 0.2));
    }
    to {
        filter: brightness(1.1) drop-shadow(0 0 20px rgba(0, 102, 255, 0.35));
    }
}

.title-line {
    display: block;
    animation: slideInUp 1s ease-out forwards;
    opacity: 0;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.info-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 6px;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: 1px solid #ccc;
    line-height: 1;
}

.tooltip-text {
    visibility: hidden;
    background-color: rgba(0,0,0,0.85);
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 200;
    bottom: 125%; /* над буквой i */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;  /* чтобы текст переносился */
    word-wrap: break-word; /* перенос слов если нужно */
    min-width: 300px;      /* увеличиваем максимальную ширину */
    pointer-events: none;
}


.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}


/* Стили для кнопки авторизации */
.auth-link {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white !important;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-link:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Мобильные стили для кнопки авторизации */
@media (max-width: 768px) {
  .auth-link {
    padding: 6px 12px;
    font-size: 0.9rem;
    gap: 4px;
    border-radius: 4px;
    z-index: 1001;
    position: relative;
  }
  
  .auth-link svg {
    width: 14px;
    height: 14px;
  }
  
  .navbar {
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
  
  .nav-container {
    padding: 0.5rem 1rem;
  }
  
  .nav-brand {
    margin-right: 20px;
  }
}
