@keyframes rts-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.real-time-sales-counter-page {
  max-width: 1100px;
  margin: 0 auto;

  .rts-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(30, 41, 59, 0.25);
  }

  .rts-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .rts-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    color: #fff;
  }

  .rts-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .rts-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: rts-pulse 1.5s ease-in-out infinite;
  }

  .rts-subtitle {
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
    opacity: 0.9;
  }

  .rts-cards-row {
    margin-top: 0.5rem;
  }

  .rts-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    min-height: 140px;

    &:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    }
  }

  .rts-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
  }

  .rts-card-count .rts-card-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  }

  .rts-card-total .rts-card-icon {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  }

  .rts-card-last .rts-card-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  }

  .rts-card-body {
    flex: 1;
    min-width: 0;
  }

  .rts-card-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.35rem 0;
    font-weight: 500;
  }

  .rts-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .rts-card-value--price {
    font-size: 1.5rem;
    word-break: break-word;
  }

  .rts-card-value--time {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4b5563;
  }

  .rts-card-hint {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0.4rem 0 0 0;
  }

  .rts-footer {
    text-align: center;
    margin-top: 2rem;
    padding: 0.75rem;
  }

  .rts-refresh-text {
    font-size: 0.875rem;
    color: #9ca3af;
  }

  @media (max-width: 768px) {
    .rts-header {
      padding: 1.25rem 1.5rem;
    }

    .rts-title {
      font-size: 1.4rem;
    }

    .rts-card {
      flex-direction: column;
      text-align: center;
      align-items: center;
    }

    .rts-card-value {
      font-size: 1.5rem;
    }

    .rts-card-value--time {
      font-size: 1rem;
    }
  }
}

.rts-no-access {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 2rem;

  &-card {
    text-align: center;
    max-width: 380px;
    padding: 2.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
  }

  &-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: #6b7280;
  }

  &-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
  }

  &-text {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
  }
}
