.cab-stars-bar {
  position: relative;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.09));
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  color: var(--text, #0d0d0d);
  overflow: visible;
}

.cab-stars-balance {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.cab-stars-balance__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 4px 10px rgba(124, 58, 237, 0.35));
  animation: cabStarFloat 2.4s ease-in-out infinite;
}

@keyframes cabStarFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg) scale(1); }
  50% { transform: translateY(-3px) rotate(4deg) scale(1.05); }
}

.cab-stars-balance__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cab-stars-balance__label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2, #6b6b7b);
}

.cab-stars-balance__value {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold, #e09000);
}

.cab-stars-tip {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  font-weight: 900;
  font-size: 0.78rem;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cab-stars-tip__bubble {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: min(300px, 78vw);
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  color: #1f1630;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  z-index: 80;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.cab-stars-tip.is-open .cab-stars-tip__bubble,
.cab-stars-tip:hover .cab-stars-tip__bubble,
.cab-stars-tip:focus-visible .cab-stars-tip__bubble {
  display: block;
}

.cab-stars-note {
  flex: 1 1 220px;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text2, #6b6b7b);
}

.cab-stars-tasks {
  margin: 0 0 18px;
  padding: 0;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.09));
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.cab-stars-tasks__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.cab-stars-tasks__head-text h3 {
  margin: 0 0 2px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text, #0d0d0d);
  font-family: var(--font-body, Inter, sans-serif);
}

.cab-stars-tasks__head-text p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text2, #6b6b7b);
}

.cab-stars-tasks__chev {
  color: #b45309;
  font-size: 1rem;
  font-weight: 900;
}

.cab-stars-list {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.cab-stars-task {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg2, #f2f3f5);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.06));
}

.cab-stars-task.is-done {
  opacity: 0.7;
}

.cab-stars-task__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text, #0d0d0d);
}

.cab-stars-task__hint {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: var(--text2, #6b6b7b);
}

.cab-stars-task__pts {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--gold, #e09000);
  white-space: nowrap;
}

.cab-stars-task__btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.cab-stars-more {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}

.cab-stars-tip__panel[hidden] { display: none !important; }

.cab-stars-tip__panel {
  flex: 1 1 100%;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  color: #1a1230;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
  .cab-stars-bar {
    gap: 6px 8px;
    margin: 0 0 8px;
    padding: 6px 8px;
    border-radius: 10px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.72);
  }

  .cab-stars-balance__icon { width: 22px; height: 22px; animation: none; filter: none; }
  .cab-stars-balance__label { display: none; }
  .cab-stars-balance__value { font-size: 0.95rem; }
  .cab-stars-note { display: none; }
  .cab-stars-tip { width: 22px; height: 22px; }
}
