.neo-streak-nav {
  position: relative;
  color: #7eb6ff;
}

.neo-streak-nav__icon {
  display: grid;
  place-items: center;
}

.neo-streak-nav__badge,
.neo-streak-fab__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #2ecc71;
  color: #04140b;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.neo-streak-fab {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 1200;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, #5aa7ff, #2b6cdf 55%, #1a3f8a);
  box-shadow: 0 8px 24px rgba(43, 108, 223, 0.45);
}

.neo-streak-fab[hidden] {
  display: none !important;
}

.neo-streak-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(4, 8, 18, 0.72);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.neo-streak-overlay[hidden] {
  display: none !important;
}

.neo-streak-modal {
  position: relative;
  width: min(420px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border-radius: 22px;
  padding: 1.15rem 1.1rem 1.25rem;
  background: #151821;
  color: #f3f5fa;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.neo-streak-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.neo-streak-hero {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.neo-streak-hero__bolt {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.neo-streak-hero__num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.neo-streak-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 1rem;
  opacity: 0.72;
  font-size: 0.9rem;
}

.neo-streak-task__text {
  font-size: 0.92rem;
  opacity: 0.9;
  margin-bottom: 0.55rem;
}

.neo-streak-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.neo-streak-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #57d38c, #2ecc71);
}

.neo-streak-hint {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  opacity: 0.55;
}

.neo-streak-week {
  margin-top: 1.15rem;
}

.neo-streak-week__head {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  opacity: 0.85;
  text-align: center;
}

.neo-streak-week__nav {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0.7;
}

.neo-streak-week__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.neo-streak-day {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  opacity: 0.7;
}

.neo-streak-day i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  display: block;
}

.neo-streak-day.is-today i {
  border-style: solid;
  border-color: #2ecc71;
}

.neo-streak-day.is-done i {
  border-style: solid;
  border-color: #5aa7ff;
  background: rgba(90, 167, 255, 0.25);
}

.neo-streak-freezes {
  margin-top: 1.15rem;
}

.neo-streak-freezes__label {
  font-size: 0.88rem;
  opacity: 0.75;
  margin-bottom: 0.55rem;
}

.neo-streak-freezes__slots {
  display: flex;
  gap: 0.45rem;
}

.neo-streak-freeze {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.neo-streak-freeze--full {
  background: rgba(90, 167, 255, 0.2);
  color: #8ec5ff;
}

.neo-streak-freeze--plus,
.neo-streak-freeze--empty {
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.45);
}

.neo-streak-next {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.neo-streak-next__bolt {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
}

.neo-streak-next__text {
  font-size: 0.88rem;
}

.neo-streak-next__btn {
  white-space: nowrap;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  text-decoration: none;
  font-size: 0.82rem;
}

.neo-streak-modal__accent {
  height: 3px;
  margin: 1rem -1.1rem -1.25rem;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(90deg, transparent, #2ecc71, transparent);
}

@media (max-width: 640px) {
  .neo-streak-fab {
    bottom: 78px;
    right: 14px;
  }
}
