/* Crypto price strip */
.cm-ticker {
  width: 100%;
  overflow-x: auto;
  background: rgba(11, 13, 19, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cm-ticker::-webkit-scrollbar {
  display: none;
}

.cm-ticker-row {
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: 0.85rem;
  min-height: 46px;
  padding: 0.55rem 1rem;
  color: #e5e7eb;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cm-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cm-ticker-name {
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.cm-ticker-price {
  color: #ff9a37;
  font-weight: 600;
}

.cm-ticker-change.is-up {
  color: #34d399;
}

.cm-ticker-change.is-down {
  color: #f87171;
}

.cm-ticker-sep {
  color: #374151;
}

/* Blog and news feeds */
.cm-feeds {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.cm-feed {
  overflow: hidden;
  font-family: "Space Grotesk", sans-serif;
  color: #fff;
  background: rgba(18, 20, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.cm-feed--blog:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 40px -12px rgba(59, 130, 246, 0.22);
  transform: translateY(-4px);
}

.cm-feed--news:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 40px -12px rgba(16, 185, 129, 0.22);
  transform: translateY(-4px);
}

.cm-feed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.9rem;
}

.cm-feed__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cm-feed__tile {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
}

.cm-feed__tile svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cm-feed--blog .cm-feed__tile {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.cm-feed--news .cm-feed__tile {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.cm-feed__title {
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cm-feed__kicker {
  margin: 0.15rem 0 0;
  color: #6b7280;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cm-feed__all,
.cm-feed a.cm-feed__all,
.cm-feed a.cm-feed__all:hover {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.3rem;
  color: #60a5fa;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.cm-feed--news a.cm-feed__all,
.cm-feed--news a.cm-feed__all:hover {
  color: #34d399;
}

.cm-feed a.cm-feed__all:hover {
  color: #93c5fd;
}

.cm-feed--news a.cm-feed__all:hover {
  color: #6ee7b7;
}

.cm-feed__all svg {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.2s ease;
}

.cm-feed a.cm-feed__all:hover svg {
  transform: translateX(3px);
}

.cm-feed__list {
  margin: 0;
  padding: 0 1rem 1rem;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cm-feed__list li + li {
  margin-top: 0.45rem;
}

.cm-feed__list li:first-child {
  margin-top: 0.75rem;
}

.cm-feed__item,
.cm-feed a.cm-feed__item,
.cm-feed a.cm-feed__item:hover {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  color: #d1d5db;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cm-feed--blog a.cm-feed__item:hover {
  color: #fff;
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.35);
}

.cm-feed--news a.cm-feed__item:hover {
  color: #fff;
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.35);
}

.cm-feed__item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-feed__item svg {
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  color: #4b5563;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cm-feed a.cm-feed__item:hover svg {
  opacity: 1;
  transform: translateX(2px);
}

.cm-feed--blog a.cm-feed__item:hover svg {
  color: #60a5fa;
}

.cm-feed--news a.cm-feed__item:hover svg {
  color: #34d399;
}

.cm-feed__alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 1rem 1rem;
  padding: 0.75rem 0.85rem;
  color: #fde68a;
  font-size: 0.84rem;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 0.75rem;
}

.cm-feed__alert svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  color: #facc15;
}

.cm-feed a:focus-visible,
.cm-boost a:focus-visible,
.cm-boost button:focus-visible {
  outline: 2px solid rgba(255, 154, 55, 0.72);
  outline-offset: 2px;
}

/* Offerwall slider */
.cm-boost {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  font-family: "Space Grotesk", sans-serif;
  color: #fff;
}

.cm-boost__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cm-boost__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cm-boost__tile {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 0.75rem;
}

.cm-boost__tile svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cm-boost__title {
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cm-boost__kicker {
  display: none;
  margin: 0.15rem 0 0;
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.3;
}

.cm-boost__tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
}

.cm-boost__count {
  display: none;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  color: #9ca3af;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
}

.cm-boost__count span {
  color: #34d399;
  font-weight: 600;
}

.cm-boost__all,
.cm-boost a.cm-boost__all,
.cm-boost a.cm-boost__all:hover {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.15rem;
  color: #34d399;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.cm-boost a.cm-boost__all:hover {
  color: #6ee7b7;
}

.cm-boost__all svg,
.cm-boost__nav svg,
.cm-boost__cta svg {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.2s ease;
}

.cm-boost a.cm-boost__all:hover svg,
.cm-boost a.cm-boost__cta:hover svg {
  transform: translateX(3px);
}

.cm-boost__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
  cursor: pointer;
}

.cm-boost__nav:hover:not(:disabled) {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.cm-boost__nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cm-boost__nav--prev svg {
  transform: rotate(180deg);
}

.cm-boost__viewport {
  overflow: hidden;
  border-radius: 1rem;
}

.cm-boost__track {
  display: flex;
  gap: 0.75rem;
  cursor: grab;
  transition: transform 0.5s ease;
  will-change: transform;
}

.cm-boost__slide {
  flex: 0 0 180px;
  height: 260px;
}

.cm-boost__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.85rem;
  overflow: hidden;
  background: rgba(18, 20, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.cm-boost__card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 40px -12px rgba(16, 185, 129, 0.25);
  transform: translateY(-4px);
}

.cm-boost__badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  padding: 0.2rem 0.45rem;
  color: #06070b;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(90deg, #ff9a37, #ff7d10);
  border-radius: 999px;
}

.cm-boost__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
}

.cm-boost__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cm-boost__name {
  margin: 0 0 0.35rem;
  overflow: hidden;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-boost__copy {
  flex: 1;
  margin: 0 0 0.75rem;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.cm-boost__copy strong {
  color: #ff9a37;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
}

.cm-boost__cta,
.cm-boost a.cm-boost__cta,
.cm-boost a.cm-boost__cta:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: auto;
  padding: 0.55rem 0.7rem;
  color: #06070b;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  background: linear-gradient(90deg, #ff9a37, #ff7d10);
  border-radius: 0.7rem;
  box-shadow: 0 10px 24px -14px rgba(255, 125, 16, 0.8);
}

.cm-boost a.cm-boost__cta:hover {
  color: #06070b;
  background: linear-gradient(90deg, #ffc070, #ff9a37);
}

.cm-boost__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.cm-boost__dot {
  position: relative;
  width: 1rem;
  height: 0.35rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.cm-boost__dot-base,
.cm-boost__dot-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cm-boost__dot-base {
  background: rgba(255, 255, 255, 0.16);
}

.cm-boost__dot-fill {
  background: #34d399;
  opacity: 0;
}

.cm-boost__dot.is-active .cm-boost__dot-base,
.cm-boost__dot.is-active .cm-boost__dot-fill {
  transform: scaleX(1);
}

.cm-boost__dot.is-active .cm-boost__dot-fill {
  opacity: 1;
}

@media (min-width: 640px) {
  .cm-boost__kicker,
  .cm-boost__count {
    display: block;
  }

  .cm-boost__count {
    display: flex;
  }

  .cm-boost__title {
    font-size: 1.45rem;
  }

  .cm-boost__track {
    gap: 1rem;
  }

  .cm-boost__slide {
    flex-basis: 200px;
    height: 280px;
  }

  .cm-boost__logo {
    height: 80px;
  }
}

@media (min-width: 768px) {
  .cm-feeds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cm-boost__slide {
    flex-basis: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cm-feed,
  .cm-boost__card,
  .cm-feed__all svg,
  .cm-boost__cta svg,
  .cm-boost__track,
  .cm-boost__dot-base,
  .cm-boost__dot-fill {
    transition: none;
  }

  .cm-feed--blog:hover,
  .cm-feed--news:hover,
  .cm-boost__card:hover {
    transform: none;
  }
}
