/* ── Dashboard-specific styles ── */

/* ── Stat icon circle ── */
.stat-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-active {
  background: rgba(74, 222, 128, 0.06);
  border-color: rgba(74, 222, 128, 0.15);
}

/* ── License card ── */
.license-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.license-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.06),
      transparent);
}

.license-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ── License header (status + type) ── */
.license-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.license-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.status-activated {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.status-inactive {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

/* Status dot */
.dot-activated {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

.dot-inactive {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
}

.license-type {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── License key display ── */
.license-key-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.license-key-display code {
  font-family: 'Manrope', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e5e7eb;
  letter-spacing: 0.08em;
  user-select: all;
}

.license-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.license-copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.18);
}

/* ── License metadata ── */
.license-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.license-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.license-meta-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.license-meta-value {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 500;
}

/* ── Loading spinner ── */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.06);
  border-top: 3px solid #9ca3af;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ── Responsive: stack license meta vertically on mobile ── */
@media (max-width: 640px) {
  .license-key-display code {
    font-size: 0.78rem;
  }

  .license-meta {
    flex-direction: column;
    gap: 8px;
  }
}
