/**
 * VNET Secure PIN Vault - Homepage widget styles
 */
.spv-home-widget {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 4px 0;
}

.spv-home-widget-visual {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0c1e3d 0%, #2563eb 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.spv-home-widget-body {
  flex: 1;
  min-width: 0;
}

.spv-home-widget-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
}

.spv-home-widget-desc {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.spv-home-widget-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.spv-home-widget-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.spv-home-widget-badge i {
  font-size: 11px;
}

.spv-home-widget-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.spv-home-instructions-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.spv-home-instructions-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #f8fafc;
}

/* Modal */
.spv-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.spv-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: spvModalIn 0.2s ease;
}

@keyframes spvModalIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.spv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: #0c1e3d;
  color: #fff;
}

.spv-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.spv-modal-header h3 i {
  margin-right: 8px;
}

.spv-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.spv-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.spv-modal-body {
  padding: 22px;
  overflow-y: auto;
}

.spv-modal-footer {
  padding: 14px 22px;
  border-top: 1px solid #e5e7eb;
  text-align: right;
  background: #f9fafb;
}

.spv-instructions h4 {
  margin: 0 0 14px;
  font-size: 15px;
  color: #111827;
}

.spv-instructions ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
}

.spv-instructions li {
  margin-bottom: 8px;
}

.spv-instructions-note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #1e40af;
}

.spv-instructions-note i {
  margin-right: 6px;
}

@media (max-width: 576px) {
  .spv-home-widget {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .spv-home-widget-actions {
    justify-content: center;
  }
}
