/* UI fixes layered over the original admin-driven mini app bundle. */
:root {
  --ct-lime: #d6ff3f;
  --ct-dark: #07060c;
}

button {
  -webkit-tap-highlight-color: transparent;
}

/* Menu image cards: keep the old posters, remove duplicated labels/icons over them. */
button[class*="min-h-"][class*="overflow-hidden"] > div.relative.flex {
  display: none !important;
}

button[class*="min-h-"][class*="overflow-hidden"] > div.absolute.inset-0 {
  background: linear-gradient(180deg, rgba(8, 7, 13, 0.04), rgba(8, 7, 13, 0.2)) !important;
}

button[class*="min-h-"][class*="overflow-hidden"] > img {
  opacity: 0.96 !important;
  filter: saturate(1.08) contrast(1.08);
}

/* Remove the old dashboard status tiles from the menu. */
.ct-menu-metrics-hidden {
  display: none !important;
}

/* Compact coin chip used instead of a full-width info row. */
.ct-coin-chip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(214, 255, 63, 0.34);
  border-radius: 999px;
  background: rgba(214, 255, 63, 0.1);
  padding: 0 13px;
  color: var(--ct-lime);
  font-weight: 900;
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 12px 34px rgba(214,255,63,.08);
}

.ct-coin-chip svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Calendar readability: keep category/time/host as stable chips. */
.ct-event-card {
  position: relative;
}

.ct-event-card.ct-event-past {
  border-color: rgba(214, 255, 63, 0.28) !important;
  background: linear-gradient(135deg, #d6ff3f, #ecff9e) !important;
  color: #102015 !important;
}

.ct-event-card.ct-event-future {
  border-color: rgba(255,255,255,.1) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)) !important;
  opacity: .82;
  color: #fff !important;
}

.ct-event-past :is(p, h3, div, span) {
  color: #102015 !important;
}

.ct-event-future :is(p, h3, div, span) {
  color: rgba(255,255,255,.88) !important;
}

.ct-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ct-event-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  padding: 0 8px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.ct-event-past .ct-event-chip {
  background: rgba(16,32,21,.12);
  color: #102015 !important;
}

.ct-event-future .ct-event-chip {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7) !important;
}

.ct-event-card > div:first-child,
.ct-event-card > div:first-child * {
  color: var(--ct-lime) !important;
}

.ct-event-card svg,
.ct-event-card svg * {
  color: var(--ct-lime) !important;
  stroke: currentColor !important;
}

.ct-calendar-note {
  margin-top: 10px;
  border: 1px solid rgba(214,255,63,.22);
  border-radius: 16px;
  background: rgba(214,255,63,.07);
  padding: 10px 12px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.ct-calendar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.ct-calendar-actions button {
  min-height: 48px;
  border: 1px solid rgba(214,255,63,.28);
  border-radius: 16px;
  background: rgba(214,255,63,.1);
  color: var(--ct-lime);
  font-size: 12px;
  font-weight: 900;
}

.ct-records-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  background: rgba(0,0,0,.68);
  padding: 16px;
}

.ct-records-sheet {
  width: min(100%, 390px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background: #09080f;
  padding: 16px;
  box-shadow: 0 26px 80px rgba(0,0,0,.65);
}

.ct-records-sheet h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.ct-records-sheet p {
  margin-top: 4px;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 700;
}

.ct-record-item {
  margin-top: 10px;
  border: 1px solid rgba(214,255,63,.22);
  border-radius: 16px;
  background: rgba(214,255,63,.08);
  padding: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.ct-records-close {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border-radius: 16px;
  background: var(--ct-lime);
  color: #102015;
  font-weight: 900;
}

@media (max-width: 390px) {
  .ct-event-chip {
    font-size: 9px;
    padding-inline: 7px;
  }
}
