/* ── HERO ── */
.idx-hero {
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.idx-hero__inner {
  max-width: 720px;
  padding: 56px 40px 40px;
}

.idx-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}

.idx-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,158,107,.4); }
  50%       { box-shadow: 0 0 0 5px rgba(45,158,107,0); }
}

.idx-hero__title {
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 14px;
}

.idx-hero__title span {
  color: var(--text-muted);
}

.idx-hero__lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 28px;
}

/* Search */
.idx-search-wrap {
  position: relative;
  max-width: 420px;
}

.idx-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-hint);
  pointer-events: none;
}

.idx-search {
  width: 100%;
  padding: 12px 44px 12px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.idx-search:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(26,26,26,.07);
}

.idx-search::placeholder { color: var(--text-hint); }

.idx-search-kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-hint);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  pointer-events: none;
}

/* Stats strip */
.idx-stats {
  display: flex;
  border-top: 1px solid var(--border);
}

.idx-stat {
  flex: 1;
  padding: 20px 40px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.idx-stat:last-child { border-right: none; }

.idx-stat__n {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--text);
  font-family: var(--font-mono);
}

.idx-stat__l {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── MAIN ── */
.idx-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 40px 60px;
}

/* No results */
.idx-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ── SECTION ── */
.idx-section {
  margin-bottom: 44px;
}

.idx-section__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.idx-section__icon {
  font-size: 18px;
  line-height: 1;
}

.idx-section__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.idx-section__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-hint);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 2px 8px;
}

/* ── GRID ── */
.idx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

/* ── CARDS ── */
.idx-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}

.idx-card--live {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.idx-card--live:hover {
  border-color: var(--text);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.idx-card--live:hover .idx-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

.idx-card--soon {
  opacity: .55;
}

.idx-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.idx-card__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.idx-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.idx-card__arrow {
  position: absolute;
  bottom: 14px;
  right: 14px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .15s, transform .15s;
}

/* ── BADGES ── */
.idx-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.idx-badge--live {
  background: var(--accent);
  color: var(--accent-text);
}

.idx-badge--soon {
  background: var(--bg-muted);
  color: var(--text-hint);
  border: 1px solid var(--border);
}

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .idx-hero__inner { padding: 36px 20px 28px; }
  .idx-hero__title { font-size: 36px; }
  .idx-stats { flex-wrap: wrap; }
  .idx-stat { padding: 16px 20px; min-width: 50%; }
  .idx-main { padding: 24px 20px 40px; }
  .idx-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .idx-search-kbd { display: none; }
}

@media (max-width: 480px) {
  .idx-grid { grid-template-columns: 1fr 1fr; }
  .idx-stat { min-width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── INDEX LANG SWITCHER ── */
.idx-lang-switcher { position: relative; }

.idx-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-mono);
  transition: border-color .15s;
}
.idx-lang-btn:hover { border-color: var(--border-strong); }

.idx-lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  z-index: 200;
  padding: 6px;
  width: 200px;
  max-height: 340px;
  overflow-y: auto;
}
.idx-lang-menu.open { display: block; }

.idx-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background .12s;
}
.idx-lang-option:hover { background: var(--bg-muted); }
.idx-lang-option.active { background: var(--accent); font-weight: 500; }


body {
  display: block !important;
}