/* ── Client Counter Widget ── */

/* ── DESKTOP PILL ── */
.cc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 10px;
  background: rgba(197,248,42,0.08);
  border: 1px solid rgba(197,248,42,0.22);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
  margin-right: 12px;
  white-space: nowrap;
  user-select: none;
  text-align: left;
  font-family: inherit;
  text-decoration: none;
}
.cc-pill:hover {
  background: rgba(197,248,42,0.15);
  border-color: rgba(197,248,42,0.4);
  transform: translateY(-1px);
}
.cc-pill:active { transform: translateY(0); }

.cc-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5f82a;
  box-shadow: 0 0 0 0 rgba(197,248,42,0.6);
  animation: cc-pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes cc-pulse-dot {
  0%   { box-shadow: 0 0 0 0   rgba(197,248,42,0.7); }
  60%  { box-shadow: 0 0 0 5px rgba(197,248,42,0);   }
  100% { box-shadow: 0 0 0 0   rgba(197,248,42,0);   }
}

.cc-pill-text-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cc-pill-main {
  font-size: 13px;
  font-weight: 600;
  color: #c5f82a;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(197,248,42,0.45);
}

.cc-pill-date {
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.01em;
  text-align: right;
}

/* ── MOBILE PILL ── */
.cc-pill-mobile {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  background: rgba(197,248,42,0.08);
  border: 1px solid rgba(197,248,42,0.22);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
  margin-right: 8px;
  font-family: inherit;
}
.cc-pill-mobile:hover {
  background: rgba(197,248,42,0.15);
  border-color: rgba(197,248,42,0.4);
}
.cc-pill-mobile:active { transform: scale(0.97); }

.cc-pill-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c5f82a;
  box-shadow: 0 0 0 0 rgba(197,248,42,0.6);
  animation: cc-pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.cc-pill-compact-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.1;
}

.cc-pill-number {
  font-size: 12px;
  font-weight: 700;
  color: #c5f82a;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.cc-pill-sublabel {
  font-size: 9px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.01em;
}

/* Show mobile pill only on small screens (where burger is visible = below xl breakpoint) */
@media (max-width: 1279px) {
  .cc-pill-mobile { display: inline-flex; }
}

/* ── POPUP OVERLAY ── */
.cc-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: cc-fade-in 0.2s ease;
}
.cc-popup-overlay.cc-open { display: flex; }

@keyframes cc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── POPUP CARD — desktop modal ── */
.cc-popup-card {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 32px 36px 28px;
  width: 100%;
  max-width: 580px;
  position: relative;
  animation: cc-slide-up 0.25s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow:
    0 0 0 1px rgba(197,248,42,0.06),
    0 32px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(197,248,42,0.04);
}

@keyframes cc-slide-up {
  from { transform: translateY(28px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* ── POPUP CARD — mobile bottom-sheet ── */
@media (max-width: 767px) {
  .cc-popup-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .cc-popup-card {
    border-radius: 20px 20px 0 0;
    padding: 12px 20px 32px;
    max-width: 100%;
    animation: cc-slide-up-sheet 0.28s cubic-bezier(0.34,1.56,0.64,1);
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  @keyframes cc-slide-up-sheet {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }
}

/* Drag handle — only visible on mobile */
.cc-popup-handle {
  display: none;
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 0 auto 18px;
}
@media (max-width: 767px) {
  .cc-popup-handle { display: block; }
}

.cc-popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.cc-popup-close:hover { background: rgba(255,255,255,0.13); color: #fff; }
@media (max-width: 767px) {
  .cc-popup-close { top: 16px; right: 16px; width: 30px; height: 30px; font-size: 15px; }
}

.cc-popup-live-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}
@media (max-width: 767px) {
  .cc-popup-live-row { margin-bottom: 10px; }
}

.cc-popup-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5f82a;
  animation: cc-pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .cc-popup-live-dot { width: 6px; height: 6px; }
}

.cc-popup-live-label {
  font-size: 12px;
  font-weight: 600;
  color: #c5f82a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 767px) {
  .cc-popup-live-label { font-size: 11px; }
}

.cc-popup-headline {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 767px) {
  .cc-popup-headline { font-size: 44px; }
}

.cc-popup-headline-sub {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  margin-bottom: 22px;
}
@media (max-width: 767px) {
  .cc-popup-headline-sub { font-size: 15px; margin-bottom: 20px; }
}

/* ── CTA BUTTON (popup) ── */
.cc-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
  padding: 14px 28px;
  background: #c5f82a;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.15s;
  margin-bottom: 20px;
  text-decoration: none;
}
.cc-btn-cta:hover {
  background: #d4ff3a;
  box-shadow: 0 6px 28px rgba(197,248,42,0.35);
  transform: translateY(-2px);
}
.cc-btn-cta:active {
  background: #d4ff3a;
  transform: translateY(-1px);
}
@media (max-width: 767px) {
  .cc-btn-cta { font-size: 15px; padding: 14px 24px; margin-bottom: 16px; }
}

/* ── CHART SECTION ── */
.cc-chart-section { margin-bottom: 20px; }
.cc-chart-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
@media (max-width: 767px) {
  .cc-chart-section { margin-bottom: 18px; }
  .cc-chart-title { font-size: 10px; margin-bottom: 12px; }
}

.cc-chart-wrap {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 140px;
  padding-bottom: 36px;
  position: relative;
}
.cc-chart-wrap::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: calc(100% - 24px);
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100% 33.33%;
  pointer-events: none;
}
@media (max-width: 767px) {
  .cc-chart-wrap { height: 120px; gap: 4px; padding-bottom: 34px; }
}

.cc-chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}

.cc-chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #c5f82a 0%, rgba(197,248,42,0.55) 100%);
  transition: height 1s cubic-bezier(0.16,1,0.3,1);
  position: relative;
}
.cc-chart-bar.cc-is-max {
  background: linear-gradient(180deg, #d4ff3a 0%, #c5f82a 60%, rgba(197,248,42,0.6) 100%);
  box-shadow: 0 0 16px rgba(197,248,42,0.35), 0 0 4px rgba(197,248,42,0.5);
}
@media (max-width: 767px) {
  .cc-chart-bar { border-radius: 3px 3px 0 0; }
  .cc-chart-bar.cc-is-max { box-shadow: 0 0 14px rgba(197,248,42,0.35), 0 0 4px rgba(197,248,42,0.5); }
}

.cc-chart-label {
  position: absolute;
  bottom: 0;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1.1;
  transform: translateY(100%);
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
@media (max-width: 767px) {
  .cc-chart-label { font-size: 8px; padding-top: 3px; }
}

.cc-chart-label-value {
  font-size: 8px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .cc-chart-label-value { font-size: 7px; color: rgba(255,255,255,0.65); }
}

.cc-chart-label-period {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.01em;
}
@media (max-width: 767px) {
  .cc-chart-label-period { font-size: 8px; }
}

/* ── CAPTION ── */
.cc-popup-caption {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  letter-spacing: 0.01em;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
  margin-top: 4px;
  line-height: 1.5;
}
@media (max-width: 767px) {
  .cc-popup-caption { font-size: 11px; padding-top: 12px; }
}
